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
programme for time table in c++

Define the Increment and Decrement Operators in c language? C offers two special operators -and ++ called decrement and increment operators respectively and these are unary ope

Declaration of Variables: Variables are declared as follows: int a; float b;   Assigning value to variables: int a = 100; Declaring and assigning is called ini

Aim: To implement a program for following string operations: Length of String. String Concatenation. Substring (provide start index and length) Find character a

Is there any difficulty with the following : char*a=NULL; char& p = *a;? A: The result is indeterminate. You must never do this. A reference has to always refer to some object.

(Random Numbers) Write statements that assign random integers to the variable n in the following ranges: a) 1 ≤ n ≤2 b) 1 ≤ n ≤100 c) 0 ≤ n ≤9 d) 1000 ≤ n ≤1112 e)



Write a program that finds the minimum total number of shelves, including the initial one required for this loading process.

Program is to check whether the string entered is a palindrome or not: Program is to check whether the string entered is a palindrome or not invoke function from main int p