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
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 dane What's in your future . view List of Places 2. Search for Person LEARN YOUR PORTUNE 4. Quit the progran nter 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

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago