Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please show all detailed steps in the program and make sure the program runs properly. I have included the functions.h file and the magicIn.txt file

Please show all detailed steps in the program and make sure the program runs properly. I have included the functions.h file and the magicIn.txt file that needs to be used. image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
CSCI 1410 PA 2 Outline (10 points) Read the problem set for PA 2 below. Create an outline in plain English. Place this outline in either //line comments or/*block/comments. For the PA2, you will place the C++ code under the corresponding lines of code. Place these comments in a file called main.cpp. Also provide a functions.h which gives the function prototypes and a file called functions.cpp which gives a brief description of each function and an outline in plain English (in comments) for the algorithm to complete that function. When complete zip those 3 files (and ONLY those three files) into a file formatted like lastnameFirstinitialPA2.zip (e.g. lastnamePA2.zip) Example: *NAME: first lastname CLASS: CSCI1410 DESCRIPTION: STATUS: Not running, just an outline CSCI 1410-PA 2 -Magic Eight Ball (40 points) Have you ever wanted to predict the future? Well the Magic Eight Ball does just that. The original game was a softball sized "8-balr. You would ask a question, shake it up and look at the result. There are 20 responses...10 positive, 5 negative, and 5 are vague. For this project, we want to recreate this, but give the ability to read in a set of responses, and add additional responses, and print out all of the responses in alphabetical order. Of course, we have to give seemingly accurate responses, which we will do by giving a random response. Program Details: You should have a menu with five lettered options. You should accept both capital and lower case letters in your menu options. The menu should do the task, then return to the menu (except in the case of exit). Any incorrect responses should get an error message, followed by a reprint of the menu. a. b. c. d. e. Read responses from a file Play Magic Eight Ball Print out responses and categories alphabetically Write responses to a file Exit Each menu item must be implemented using a function or sets of functions with appropriate input parameters and return values. Functions will have a prototype in a file called functions.h and defined in a file called functions.cpp. Also, you will have a struct that keeps track of the response and whether it is positive, negative, or vague. That struct will also be in the functions.h file Implementation Detail 1: Remember you will need to #include "functions-h" into both your main and functions.cpp but do not include cpp files cpp

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

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions

Question

Presentation Aids Practicing Your Speech?

Answered: 1 week ago