Program for number game, C/C++ Programming

- Create a program that uses at least two functions that will be called from your main. This program is a number game program that asks for parts of your phone and after manipulating it mathematically, eventually outputs your entire phone number. The directions for the game are:

1- Enter the first 3 digits of your phone number( not area code-user input)

2- Multiply by 80

3- Add 1 to the total

4- Multiplay by 250

5- Add the last 4 digits of your phone number (user input)

6- Add the last 4 digits of your phone number again

7- Substract 250 from total

8- Divide the number by 2

9- Show final results

10-  Remember to use cout statements after each math function so the user sees how the "trick" is progressing.

 

Posted Date: 3/6/2013 3:12:08 AM | Location : United States







Related Discussions:- Program for number game, Assignment Help, Ask Question on Program for number game, Get Answer, Expert's Help, Program for number game Discussions

Write discussion on Program for number game
Your posts are moderated
Related Questions
Car Rental System This system tracks cars in a rental company. Each car has a number (assume its plate number), type (small car, four wheel car), and status (rented, available). T


Hi is there any chance to get assignment for fresher tutor



Function Templates Function templates give you with the capability to write a one function that is a skeleton, or template, for a family of similar functions. In function ov

Question: a) Give two uses of NFS. b) Give one advantage of using NFS. c) Explain the following lines as they would be interpreted in the /etc/exports file i. /usr/local

write a static method with one integer parameter, x that returns the value of the polynomial 3x(2)- 7x + 2

A: this is a procedure during exception handling while the destructor is called for all local objects in the stack among the place where the exception was thrown & where this is ca

In this assignment you are required to develop a program that allows the creation, viewing and storage of information about ITECH7603 Students. In order to complete the task you ha