Answered step by step
Verified Expert Solution
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 : 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 : 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 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 : 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:
or fewer positive numbers were entered" or
"More than 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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started