Project Falcon
Develop a console application that will tell the user’s fortune based on data received from the user.
For each of the below, you will select your own value for each condition. The table will give the conditions and an example for each. Don't steal our examples—be creative!
The user's number of years until retirement will be based on whether the user's age is odd or even.
| (condition) If the user's age is… | (example) then the user will retire in… | | ----------------------------------- | ----------------------------------------- | | odd | 14 years | | even | 12 years |
The location of the user's vacation home will be based on how many siblings the user has. If the user enters a number less than zero, give the user a bad location!
| (condition) If the user's number of siblings is… | (example) then the user's vacation home will be in… | | -------------------------------------------------- | ----------------------------------------------------- | | 0 | Boca Raton, FL | | 1 | Nassau, Bahamas | | 2 | Ponta Negra,Brazil | | 3 | Portland, Oregon | | greater than three | Baton Rouge, LA | | less than zero | Chernobyl, Ukraine |
The user's mode of transportation will be determined by the user's favorite color.
| (condition) If the user's favorite color is… | (example) then the user's mode of transportation will be… | | ---------------------------------------------- | ----------------------------------------------------------- | | red | Maserati | | orange | stallion | | yellow | chariot | | green | taxi | | blue | rickshaw | | indigo | motor scooter | | violet | flying saucer |
The user's bank balance at retirement will be based on the user's birth month. If the user enters something other than 1-12 for birth month, the user's balance will be $0.00.
| (condition) If the user's birth month is… | (example) The user's balance will be… | | ------------------------------------------- | --------------------------------------- | | 1-4 | $256,000.76 | | 5-8 | $3,687,105.42 | | 9-12 | $86.23 | | anything else | $0.00 |
Display the user's fortune in this format:
[First Name] [Last Name] will retire in [# of years] with [bank balance] in the bank, a vacation home in [location], and travel by [mode of transportation].
Your program should be able to process input whether a user enters capital or lowercase letters.
String, check for "Quit", then "parse the string to an int" (google it!) to convert the user input string to an int.while or do/while loops and use them to check whether a user typed "Help" for favorite color, printing the list of colors each time the user types "Help". What is your favorite ROYGBIV color? Help The ROYGBIV colors are red, orange, yellow, green, blue, indigo, violet. Help The ROYGBIV colors are red, orange, yellow, green, blue, indigo, violet. Blue