Program that uses for loop prompt user to input two integers

Assignment Help Programming Languages
Reference no: EM1352652

Q1) Write a program that uses for loop to preform the following steps:

A. Prompt the user to input two integers: firstnum and secondnum. (firstnum must be less than secondnum)

B. Output all the odd numbers between firstnum and secondnum inclusive.

C. Output the sum of all the even numbers between firstnum and secondnum inclusive.

D. Output all the numbers and their squares between firstnum and secondnum inclusive.

E. Output the sum of the squares of all the odd numbers between firstnum and secondnum inclusive

f. output all the uppercase letters

Reference no: EM1352652

Questions Cloud

Social-cognitive theory : How would social-cognitive theory describe low self-esteem in the words of its own theoretical model?
Differentiate among weekday and weekend prices : As weekend prices skyrocket more people will play golf during the week and eventually the weekend prices will drop and weekday prices. Differentiate among weekday and weekend prices.
Exceptional use of organizational structure : Paper on the successful or unsuccessful application of organizational behavior concepts in any organization.
Ethical behavior is essential to profitability : Discuss why do many business managers feel that ethical behavior is essential to profitability and survival of their firm?
Program that uses for loop prompt user to input two integers : Write a program that uses for loop to preform the following steps: Prompt the user to input two integers: firstnum and secondnum.
What is the radius of the resulting path : A car of mass = 1200 traveling at 65 enters a banked turn covered with ice. The road is banked at an angle , and there is no friction between the road and the car's tires. What is the radius of the turn if = 20 (assuming the car continues in unifo..
What will happen to marketplace for debit-card transaction : What will happen to the marketplace for debit-card transactions and Visa's profits in the long-run. Use graphs to support your analysis and briefly explain your graphs.
Cultures influences the expression : Explain how each of the cultures influences the expression of these emotions.
Organizational behavior - analysis : Explain what does your theory state? Defend your theory with examples taken from your readings.

Reviews

Write a Review

Programming Languages Questions & Answers

  Compute the product xy

Given two integers X and Y compute the product XY (multiplication), the quotient X=Y (integer division), and the modulus X (mod Y) (remainder).

  Write pseudocode to accept candy name

Write a pseudocode for the following: A programm to accept a candy name (for exmple, "chocolate-covered blueberries'), price per pound, and number of pounds sold.

  Explain relationship between xbrl and semantic web

How do HTML 5, RDF (Resource Description Framework), and OWL (Web Ontology Language) relate to the semantic web? Explain the relationship between XBRL and the semantic web.

  Write pseudocode

Write pseudocode that represents the abstract functions of the enqueue and dequeue operations. Define and explain any supplementary information needed by your pseudocode.

  Program to inputs encrypted four-digit integer

Write separate program to inputs encrypted four-digit integer and decrypts it to form the original number. thanks in advance for ur help.

  Writing code in client program to enter score

Write down code in a client program to perform the following: prompt user to enter score and set score data member for player1.

  Build a student record managing system application

Build a student record managing system application

  Program to compute perimeter and area of rectangle

Write a program that asks for length L and the width W of a rectangle, then compute perimeter and area of the rectangle.

  Program to compute percentage and final grade for students

Write a program which will permit teacher to compute percentage and final grade for students in a class.

  Design interactive program using prewritten methods

Design an interactive program that does the following, using the prewritten methods whenever they are appropriate. Prompt the user for and read a library card number, which must be between 1000 and 9999.

  Create math sorting game using visual basic studio

using visual basic studio 2010, Create math sorting game. Random number between 1 and 99 will be generated and displayed to the user.

  Code to sum of all the elements of the array

Write some code that places the sum of all the elements of the array x into total. Declare any variables that you need.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd