Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4:02 PM Touch to return to call 15:58 all T-Mobile Wi-Fi Done Assignment.pdf Functions Assignment Instructions MAGIC 8 BALL: This program will ask the user

image text in transcribed
4:02 PM Touch to return to call 15:58 all T-Mobile Wi-Fi Done Assignment.pdf Functions Assignment Instructions MAGIC 8 BALL: This program will ask the user to enter a yeso question and it will then print out an appropriate yes or no response. Hint: You will have to read in the question into a string variable, but you don't really need it. Your program will generate a random number from 0 to 7 (depends on how many responses you want to have in your program) and it will print out a response based on the random number bs /Necessary for rando #include tine> //Necessary for random saber using namespace std /Setup prototypes here1111 pronptusert) return //Add you, THREE finctlens here (pr taser, getrandon, and printresponse) Add a comment block in your program 1 Add the three prototype lines 2. Add the functions at the bottom of the program. My suegestion is to write one at a time. First write the promptuserO function. Hint Totest it out comment out the lines that call the getrandomo and the printresponse) functions Contine by adding the getrandom) and printresponse) functions . Add necessary comments O for each function): 1. promptuseri) a Does not retum a b. Does not have anguments

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

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago