Question: 1 2 : 4 0 C . II 4 1 make sure you get the same output. Part II Exercise 1 Further, modify the program

12:40C
.II
41
make sure you get the same output.
Part II
Exercise 1
Further, modify the program to categorize the sale amounts into the following buckets and display the count of sale amounts in each bucket:
Below 50
50 to 100
Above 100
Sample run 1:
Enter sale amount 1: 50
Enter sale amount 2: 55
Enter sale amount 3: 65
Enter sale amount 4: 75
Enter sale amount 5: 0
The average sale amount for the 4 items is 61.25.
The total sales amount for the 4 items is 245.
Sale amounts in each bucket:
Below 50: 0
50 to 100: 4
Above 100: 0
Sample run 2
Enter sale amount 1: 40
Enter sale amount 2: 60
Enter sale amount 3: 25
Enter sale amount 4: 120
Enter sale amount 5: 0
The average sale amount for the 4 items is 61.25.
The total sales amount for the 4 items is 245.
Sale amounts in each bucket:
Below 50: 2
50 to 100: 1
Above 100: 1
AA
d2l.udst.edu.qa
1 2 : 4 0 C . II 4 1 make sure you get the same

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!