c++575Take home Lab 12: Magic 8 Ball/Zoltar fortune teller Objectives To learn to code, compile and run a program that utilizes functions and an array of structure to generate random string fortunes/predictions and a lucky lotto number Assignment Plan and code a top-down modular program utilizing an ARRAY OF STRUCTURE using at least 4 functions (called from the main() section or from another function) to solve the problem. Input 1. User input: ask if they would like to type in (or mentally ask) a question and hit the return to key to get a response. 2. Array Input: fill the string array with ‘responses/predictions’ (such as “Outlook hazy, try later” and “You will meet a tall stranger, he/she will no longer be a strangerl”) Have ten or more wise and witty or rude (just not too rude) responses you want to populate the array with. Also each record should have a lucky lotto number as an integer (so you’ll need an array of structures). You can read them in from a file, cin from the console or you can assign the array values from inside the program, such as: Zoltar[0] = “Outlook Hazy”; Output With whatever mystery and authority you can muster, display a random ‘fortune’ on the screen and the lucky number and ask the player if they want another turn. Turn into Canvas Top down design structure chart, input file of string ‘fortunes’, program listing with sufficient pseudocode comments (or flow chart/pseudocode) and program output of several fortunes randomly revealed to the player. Show transcribed image text Take home Lab 12: Magic 8 Ball/Zoltar fortune teller Objectives To learn to code, compile and run a program that utilizes functions and an array of structure to generate random string fortunes/predictions and a lucky lotto number Assignment Plan and code a top-down modular program utilizing an ARRAY OF STRUCTURE using at least 4 functions (called from the main() section or from another function) to solve the problem. Input 1. User input: ask if they would like to type in (or mentally ask) a question and hit the return to key to get a response. 2. Array Input: fill the string array with ‘responses/predictions’ (such as “Outlook hazy, try later” and “You will meet a tall stranger, he/she will no longer be a strangerl”) Have ten or more wise and witty or rude (just not too rude) responses you want to populate the array with. Also each record should have a lucky lotto number as an integer (so you’ll need an array of structures). You can read them in from a file, cin from the console or you can assign the array values from inside the program, such as: Zoltar[0] = “Outlook Hazy”; Output With whatever mystery and authority you can muster, display a random ‘fortune’ on the screen and the lucky number and ask the player if they want another turn. Turn into Canvas Top down design structure chart, input file of string ‘fortunes’, program listing with sufficient pseudocode comments (or flow chart/pseudocode) and program output of several fortunes randomly revealed to the player.
Expert Answer
Answer to Take home Lab 12: Magic 8 Ball/Zoltar fortune teller Objectives To learn to code, compile and run a program that utilize…