Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please be sure to validate your data; use proper form and structure of a program; and provide professional looking output. Write a program that lets
Please be sure to validate your data; use proper form and structure of a program; and provide professional looking output.
Write a program that lets a maker of ice cream keep track of sales for five different flavors of ice cream: vanilla, butter pecan, superman, chocolate fudge, strawberry. The program must use arrays to store the names of the types of ice cream, and the number of scoops sold. The user is to enter the number of scoops sold for each flavor for the month. Once the data has been entered, the program should produce a report that displays the number of scoops sold for each flavor, the total scoops sold, the names of the bestselling flavors and the name of the worst selling flavors. If two types of ice cream both sold the same number of best or worst selling, then you have to display both eg If superman and strawberry both sold zero scoops, then you will have to list superman and strawberry as the worst selling.
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