Week 6 Assignment Need the following java program Test Cases (5 points): Create a list of test cases for each assigned exercise. Refer to Developing Test Cases in the Getting Started Module for instructions on how to develop a full set of test cases. Exception handling should be used on all numeric input. Exercise 1. (15 points): The Café Noir Coffee Shop wants some market research on its customers. When a customer places an order, a clerk asks for the customer’s zip code (US zip codes only) and age. The clerk enters that data was well as the number of items the customer orders. The program operates continuously until the clerk enters a 0 for zip code at the end of the day. • When the clerk enters an invalid zip code (more than 5 digits) or an invalid age (less than 10 or more than 110), the program reprompts the clerk continuously. • When the clerk enters less than 1 or more than 12 items, the program reprompts the clerk two more times. If the clerk enters a high value on the third attempt, the program accepts the high value, but if the clerk enters a negative value on the third attempt, an error message is displayed and the order is not counted. At the end of the program, display a count of the number of items ordered by customers from the same zip code as the coffee shop (54984), and a count from other zip codes. Also display the average customer age as well as counts of the number of items ordered by customers under 30 and by customers 30 and older. Exercise 2. (10 points): Write a program that contains public methods named add(), subtract(), multiply(), and divide(). Each of the methods accepts two numeric arguments and returns a number that represents the result of the appropriate arithmetic operation. Design a main() method that prompts the user for two numbers, tries each of the methods, and displays the results of each arithmetic operation.

Looking for solution of this Assignment?

WHY CHOOSE US?

We deliver quality original papers

Our experts write quality original papers using academic databases.We dont use AI in our work. We refund your money if AI is detected  

Free revisions

We offer our clients multiple free revisions just to ensure you get what you want.

Discounted prices

All our prices are discounted which makes it affordable to you. Use code FIRST15 to get your discount

100% originality

We deliver papers that are written from scratch to deliver 100% originality. Our papers are free from plagiarism and NO similarity.We have ZERO TOLERANCE TO USE OF AI

On-time delivery

We will deliver your paper on time even on short notice or  short deadline, overnight essay or even an urgent essay