Question
Complete a programming challenge (other than programming challenge 1) from the end of chapter 11. Remember to include commenting and formatting (e.g. indenting) consistent with
Complete a programming challenge (other than programming challenge 1) from the end of chapter 11. Remember to include commenting and formatting (e.g. indenting) consistent with the chapter examples.
Q-1 Write a class named TestScores. The Class Constructor should accept an array of test scores as its argument. The class should have a method that returns the average of the test scores. If any test score in the array is negative or greater than 100, the class should throw an IllegalArgumentException. Demonstrate class in a Program.
Complete the Pseudocode (refresh from chapter 1) and the UML diagram (refresh from chapter 6) for a programming challenge (other than programming challenge 1) from the end of chapter 12.
Q-2 Joe's automotive perform the following routine maintance services:
oil change - $26.00
lube job - $18.00
Radiator flush - $30.00
Transmission flush - $80.00
Inspection - $15.00
Tire rotation - $20.00
Joe also perform other nonroutine service and charges for parts and for labor ($20 per hours). Create a GUI application that displays the total for a customer's visit to Joe's.
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