Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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 total

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

Microsoft Visual Basic 2008 Comprehensive Concepts And Techniques

Authors: Gary B. Shelly, Corinne Hoisington

1st Edition

1423927168, 978-1423927167

More Books

Students also viewed these Databases questions