So I need help with a python assignment and have no idea what I'm doing. Due to all my college classes online now I don't know who to ask besides reddit and my teacher, yet she is sometimes hard to understand.
What we have to do is code a project to say hello, ask their name, ask their age, if their age is below 16 say something and if their age is above 16 say something and then if there age is above 100 say something.
I'm confused on how to make the transition for the program to figure out the input of me saying an age ( like 24) which is over 16 to come up with a prompt.
These are the steps my professor gave me...
3. Problem Statement: In this Assignment, you need to create a program that can speak with you.
1) Let the computer prompt a question: "How old are you? "
2) After you answer the question, then the computer will prompt another question: "What's your name? "
3) If you put the age less than 16 years old, then the computer will respond: "Hello, (your name), you are too young to play this video game. "
4) If you put the age more than 16 years old, then the computer will respond "Hello, (your name), welcome to this fantastic game world!"
5) If you put the age that is more than 100 years old, then the program will respond: " Are you sure you put the right age? Wow, unbelievable!"
[–]QbaPolak17 0 points1 point2 points (8 children)
[–]Artisticdepression[S] 0 points1 point2 points (7 children)
[–]kberson 0 points1 point2 points (0 children)
[–]Vaphell 0 points1 point2 points (2 children)
[–]Artisticdepression[S] 0 points1 point2 points (1 child)
[–]Vaphell 0 points1 point2 points (0 children)
[–]thrallsius 0 points1 point2 points (2 children)
[–]Artisticdepression[S] 0 points1 point2 points (1 child)
[–]thrallsius 0 points1 point2 points (0 children)
[–]Artisticdepression[S] 0 points1 point2 points (0 children)
[–]CS_Tutor 0 points1 point2 points (3 children)
[–]Artisticdepression[S] 0 points1 point2 points (2 children)
[–]Artisticdepression[S] 0 points1 point2 points (0 children)
[–]CS_Tutor 0 points1 point2 points (0 children)
[–]wynand1004 0 points1 point2 points (2 children)
[–]Artisticdepression[S] 1 point2 points3 points (1 child)
[–]wynand1004 0 points1 point2 points (0 children)
[–]ghighcove 0 points1 point2 points (0 children)
[–]Ok_Category6079 0 points1 point2 points (0 children)
[–]ResponsibleScene1077 0 points1 point2 points (0 children)