Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ code...According to the option A, B, C and D(quit) .. edit the given code ... Program Assignment: Write a program with several functions and

C++ code...According to the option A, B, C and D(quit) .. edit the given code ...

image text in transcribed

image text in transcribed

Program Assignment: Write a program with several functions and types of loops. See Chapter 3 Program Guide setup found in content! Output: Your Name Main Menu A. Minimum B. Guess a Random number between 1 and 100 C. Temperatures D. Quit Enter Choice (A, B, C, D): 1. Option A: Write a function that accepts 2 numbers from the main and displays the lower of the 2 number in the minimum functions. This function just needs a simple if else structure. 2. Option B: The second function asks the user to guess a random number. The user is allowed 10 guesses. Must use a for loop. The top of the function needs: int guess, answer, x; unsigned seed =time(0); srand(seed); answer =(1+rand()%100); //answer will have a random number between 1100 3. Option C: The third function uses the while count controlled loop: user enter a given number of temperatures. You are to display several stats. See Temperature function Guide in content. See Guide below: Hot: Temperatures >=85 Pleasant: Temperatures 6084 Cold: Temperatures

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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