Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Function 1 : Begin the program by calling a welcome function. Use the template you created in the previous lab This function generates an opening

Function 1: Begin the program by calling a "welcome" function. Use the template you created in the previous lab
This function generates an opening screen that welcomes the user and
explains (briefly) the purpose of the program and any directions you think the user needs.
Function 2: Next, call a function that asks the user to enter a series of positive numbers.
Validate the user's input (assure that the input is positive). An error message is to be displayed if the user enters a negative number and you do not want to count it as a valid entry. (Section 5.3 in the text reviews a very common & useful input validation technique.) The program should not continue until a valid entry is entered. USE A LOOP FOR THIS.
The user will enter a zero to signal they have no more data to input. (Make sure this is explained to the user.)
This function returns the number of valid entries (the number of positive numbers entered). There's multiple example programs in Revel dealing with functions that return a value - review them as needed.
Function 3: Now, call a function that accepts the number of positive numbers entered by the user (from previous step)
This function will simply display a message stating one of the following:
"10 or fewer positive numbers were entered" or
"More than 10 positive numbers were entered."
Display a message indicating that the program has ended.
Ensure that your program runs correctly before submitting. Submit the .cpp on Canvas for credit.
image text in transcribed

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

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

More Books

Students also viewed these Databases questions

Question

What is one of the skills required for independent learning?Explain

Answered: 1 week ago