I want to make this cool program that can guess your age need assistance

HI this is not for school just for fun it would be cool to make this work
I want to impress my friends haha. Can you who ever reads this help I thought of the idea but I need help thanks for the help. can you try to do this and then show me the code how you did it thanks this is what i have so far but not even close


I want to make this program that will guess your age
1)I want the user to pick a number 1-10
2)the number that the user choose must then be multiplied by 2.
3)then added by 5,
4)then multiplied by 50

5)then ask the user " have you had your birthday yet?"
if user type yes add total amount so far by 1766
if user type no add total amount so far by 1765

6)ask user what year they where you born
once user type year, subtract total so far by the year they where born to get the final product that says :
"The first number is the first num you choose and the other two num is your age:"



#include <iostream>

using namespace std;

int main()
{

{ double amount,num,one,two,three,four,five,six,seven,eight,nine,ten,bday;
cout << "Hello Pick a Number 1-10 And ill guess your Age!" << endl;
cin >> amount;

cout<<endl;
cout << "1" << endl;
cout << "2" << endl;
cout << "3" << endl;
cout <<"4" << endl;
cout <<"5" << endl;
cout << "6" << endl;
cout << "7" << endl;
cout <<"8" << endl;
cout <<"9" << endl;
cout <<"10" << endl;
cout <<"?"<<endl;cin >> num;








cout << endl;

if(num==2)
{
two= amount*2;

}

{
if
(two =amount+5);
}

{

if
(two = amount*50);


}

cout << "if you had a b-day already select 1 if not 2"
cin>> bday;
cout >>"1";endl;
cout >>"2"; endl;

}


return 0;

}

Last edited on
6)ask user what year they where you born

It won't be a guessing game anymore.

Maybe do a yes/no game.
> Are under 50?
> Yes
Possible age range: 1 - 50

> Are 25 or under?
> Yes
Possible age range: 1 - 25

> Are 13 or under?
> No
Possible age range: 13 - 25

> Are you over 19 or over?
> No
Possible age range: 13 - 19

etc..
what ever you just wrote has nothing to do with what im tring to do but thanks
Topic archived. No new replies allowed.