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
E x p r e s sion and their types: An expression will be in form of mathematical expression with C++ syntax embedded with it. Expressions are of following types which m

A: Along with the C++ language, you can overload operators and functions. Overloading is the practice of supplying more than one definition for a provided function name in the same

MAT LAB programming Project Description: Just for who are PROFESSIONAL IN MATLAB i have simulation and i would like to simulate the equation in ,and test the all simulatio

C Program to check FACTORIAL   main() {             int i,j,m,fact,sum=0;           clrscr();           printf("ENTER THE NO.: ");           scanf("%d",&m);

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

The zipped folder int_collection.zip (downloaded from Blackboard) contains an abstract class AbstractIntCollection and two interfaces: IntList and IntStack. The abstract class cont


a c program to find the volume of sphere

c program for boardcolouring

B-tree: A B-tree is an also called balanced m-way tree. A node of the tree may have many records or key and pointers to children. It is also called as the balanced sort tree. It s