Design and create a fortune


Problem:

Design and create a fortune telling program that works as follows:

Generate a number between 0 and 2 and allow the user to choose that number, that number plus one or that number plus 2 (in other words one of three consecutive numbers starting from the randomly chosen number) .

Generate another number (0-2) and based on that number display three colors (of a possible 4 colors) from which to choose based on the number and color combination selected, tell the user their fortune.

 

Please show the code of the fortune program.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Design and create a fortune
Reference No:- TGS0892860

Expected delivery within 24 Hours