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
write a program to calculate the cuboid

#question.to determine the area of a triangle,rectangle and trapezium

Debug the following program to calculate N! #include using namespace std; main() {             int N, factorial=1;             cout             cin >> N;

Program of Binary tree: Btree::Btree(int O) : itemsInContainer(0) {     finishInit(O); }   Btree::~Btree(void) {     if( root != 0 )         delete roo

#include void func(int num, b=5) { auto int total=0; static int sum=0; for ( int i=num; i>0 ; i--) total+=i; sum+=total; cout

Can a copy constructor admit an object of the similar class as parameter, rather than reference of the object?

steric in square

Different implementations of OOP Object-oriented programming is not mainly concerned with the details of the program operation. Instead, it deals with the overall design of the

Explain the Function Prototype? The Functions must be declared before they are used, ANSI C provides for the new function declaration syntax called as the function prototype,

#include #include #include #include #include class Employee { private: char *Name; //Set them as pointers... int IdNumber; char *Department; char *Position; public: voi