Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I would like help with exercise 3 please. This is for my intro to C++ course. Task 2: Working with counter-controlled while loops (25 pts)
I would like help with exercise 3 please. This is for my intro to C++ course.
Task 2: Working with counter-controlled while loops (25 pts) Exercise 1.Write an algorithm (pseudocode) to read a set of sales data items from the standard input and calculate and output their total and their average. Prompt user to enter number of data items. Assume the sales data items entered by user are always valid. Exercise 2. Create a test data set to verify your algorithm. How many cases are needed? (Hint: need a case for valid input, a case for invalid input, and edge cases) Write your test data set below for submission to the EOL dropbex upon completion of your lab. Number ofList data items tems Expected output Case 1 Exercise 3. Wrie a C++ program that implements your flowchart. Use a do-while loop for input validation and a for loop to calculate the totalStep 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