Exercise 1. Write an algorithm (pseudocode) to read a set ofsales data items from standard input and calculate and output theirtotal and their average. Prompt user to enter number of data items.Exercise 2. Create a test data set to verify your algorithm. Howmany cases are needed? Explain. Write your test data set below forsubmission to the EOL dropbox upon completion of your lab. Numberof items List data items Expected output Case 1: Exercise 3. Createa flowchart for your algorithm on Raptor and verify it using yourtest data. Copy and paste your flowchart below for submission tothe EOL dropbox upon completion of your lab. Exercise 4. Write aC++ program that implements your flowchart. Use a do-while loop forinput validation and a for loop to calculate the total (You mayskip this exercise until we cover for and do-while loops)