Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem You are to write a fortune telling game program that fills random parts of speech into a fortune template to create funny fortunes. (The

image text in transcribed
Problem You are to write a fortune telling game program that fills random parts of speech into a fortune template to create funny fortunes. (The parts of speech will be read from files into class-level arrays.) The user can also view a list of places they may visit in the future and search to see if a particular person will be in their future. The user will be shown the following menu choices Fortune Telling dame What's in your future . view List of Places 2. Search for a Person LEARN YOUR FORTUINe t 4. Quit the progras enter your choicer Program 6: Part 1- Driver & Stubs Create a C++ project and solution named LastnameProgram6-7 Before the beginning of the main function Include all necessary header files, namespace, etc. Write prototypes for all user defined functions In the main function Call a function to read the data from the text files into the arrays Display the menu Read in the user's choice Use a switch statement to call functions in response to choices 1, 2, or 3 Use a while or do while loop to continue to display the menu until the user chooses to quit (choice 4). Error Checking: Ensure the user enters a valid menu choice. User Defined Functions (Stubs) Declare an appropriately named function to read in the data Declare appropriately named functions for choices 1, 2, and 3 Within each function body, simply display a message that control has reached the function. Zip & Submit 1. Zip your top level LastnameProgram6-7 solution folder -Driver & Stubs Only!-to the Program 6 link on Canvas

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions

Question

=+7 What is the overall cost of the international assignment?

Answered: 1 week ago