Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 PAZ, 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-ball".You would ask a question, shake it up and look at the result. There are 20 responses. 10 positive, 5 negative, and S 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 giving a random response. Program Details: will do by 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 ext, Any incorrect responses should get an error messege,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 eeps track of the response and whether it is a file called functions.cpp. Also, you will have a struct that k 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.cpp and functions.cpp but do not include cpp files Implementation Detail 2: You should have an "duplicate guard" in your functions.h like: #ifndef FUNCTIONS H #de fine FUNCTIONS H //your code here #endif Page 1 of 4

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

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions