Project #42780 - C++

Create a the world’s simplest calculator.  The program will add together all integers entered in by the user.  It will stop adding when the user enters in a zero and print out the total.



Q1)

 

Welcome to the calculator that only performs addition

Enter in all of the numbers that you want to add together

Enter in 0 for your last number

3

4

5

0

The total is: 12

 

-------------------------------------------------------------------------------------------------

Q2)

I can count by twos.  What would you like me to count up to?

22

 

0

2

4

6

8

10

12

14

16

18

20

22

 

--------------------------------------------------------------------------------

Q3)

Change the last program so that is also asks the user what they want to count by.

Create a program that counts by a number of the user’s choice.  Ask the user to enter the number that the program will count to.

 

 

What would you like be to count by?

5

What would you like me to count up to?

25

 

0

5

10

15

20

25

 

------------------------------------------------------------------------------------------

Q4)

 

Create a program that asks the user for an integer and then calls a function (that you write) which will return if the number is even or odd.

 

Example:

Enter in a number

12

12 is even

 

---------------------------------------------------------------------------------------------------------------------------

 

Please write the

 
 step ,explanation and clarification for each question

 

Subject Computer
Due By (Pacific Time) 10/08/2014 12:00 am
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy