Write program which uses while loops to input two integers

Assignment Help Programming Languages
Reference no: EM1372529

Q1) Write a program that uses a while loops to perform 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.
c) Output the sum of all even numbers between firstNum and secondNum.
d) Output all the numbers and their squares between 1 and 10.
e) Output the sum of the squares of all the odd numbers between firstNum and secondNum.
f) Output all the uppercase letters

Reference no: EM1372529

Questions Cloud

Purpose of need statement : What is the purpose of a need statement? What should it contain? What are some of the key factors that would help to determine whether or not an organization is ready to seek funding?
Calculation of breakeven units : Jesse, Corporation, located in Mesa, Arizona, manufactures high-end baby chairs. The company's cost accountant, Lisa, has been assigned through the CEO to determine how many baby chairs Jesse, needs to make and sell in order to break even.
What is the cheetahs kinetic energy : Through a hard sneeze, your eyes might shut for 0.70s. If you are driving a car at 100 km/h during such a sneeze, how far does the car move for the duration of that time.
Cultural and linguistic ties : Explain what you feel is the historic importance of China and India to the rest of Asia, and how that significance is reflected today. Are there cultural and linguistic ties between Asian countries?
Write program which uses while loops to input two integers : Write the program which uses while loops to perform the following steps: prompt the user to input two integers: firstNum and secondNum.(firstNum must be less than secondNum.
Changing patterns of social mobility in us : Assume you have the opportunity to do research on changing patterns of social mobility in the U.S. What specific question would you want to investigate
Question about break even : Administrators at a university are considering to offer a summer seminar. It costs $3000 to reserve a room, hire an instructor, and bring in the machine.
How might managers use this information : Suppose that macroeconomics forecasters predict that economy will be expanding in near future. How might managers use this information.
Explain using a diagram how a tax cut in period two affects : Explain using a diagram how a tax cut in period two affects consumption in both periods. Assume that average consumer does not believe that he/she or anyone in family will ever have to pay higher taxes in future to offset current cuts.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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