Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Help please, need a program in JAVA using ARRAYS and METHODS only! Thank you! Problem 03: Cookie Calculations (4 points) You work for a Cookie
Help please, need a program in JAVA using ARRAYS and METHODS only! Thank you!
Problem 03: Cookie Calculations (4 points) You work for a Cookie Company (no not the bad internet cookies, but the yummy edible kind!) This company produces different types of cookies: You are asked by your boss to write a program which can generate a weekly report for how many cookies were sold. The program should do the following Ask the user for how many different types of cookies are produced Ask the user for the names of each type of cookie. Ask the user for the total number of packages sold for each of the types of cookies. . The table should also include the total amount sold, as well as the names of the highest and lowest sold. Requirement: Your output should match mine as closely as possible Bonus Points: 1 extra point will be awarded for tables which are sorted Alphabetically. Look at the section in the textbook on sorting arrays. 1 extra point will be awarded for tables which are perfectly aligned no matter the length of the names of the cookies. (This also includes the correct number of hyphen (-) characters). HINT: Getting creative with printf will help to display the table with the correct spacing. Sample Output: How many types of cookies were produced?: 7 Enter the names of the cookies one per lineStep 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