1. [url removed, login to view] compiles
Code modified so the application ends only when the user enters “n” or “N” by using a not operator (!) with the equalsIgnoreCase method.
Code modified so it provides a discount of 25 percent when the subtotal is greater
than or equal to $500.
Program displays the number of invoices, the average invoice amount, and the average discount amount when the user ends the program
Insure that running ModifiedInvoiceApp produces proper results.
2. [url removed, login to view] compiles
Uses += on scoreCount and scoreTotal fields.
Uses Math class methods to track minimum and maximum scores.
Displays minimum and maximum scores at end.
Changed scoreTotal to int.
CastscoreCount andscoreTotal todouble before calculating average as double.
Used NumberFormat to round displayed average to one decimal place.
3. [url removed, login to view] compiles.
Type “R” with subtotal >= $250 and < $500 get 25% discount.
Type “R” with subtotal > $500 get 30% discount.
Type “C” always get 20% discount.
Added new Type “T” with subtotal < $500 get 40% discount.
Added new Type “T” with subtotal >= $500 get 50% discount.
Types other than “C”, “R” or “T” get no discount.
Introduce static method getDiscountPercentwith customer type and subtotal parameters.
Move discount calculations to static method.
Invoke static method to calculate discounts.
4. [url removed, login to view] compiles.
Application accepts only r and c customer type codes.
Display error message on invalid code and request re-entry.
static getValidCustomerType method performs validation.
getValidCustomerType has Scanner parameter.
getValidCustomerType returns valid customer code.
try-catch block for subtotal entry with error message and continue statement in main.
static getValidSubtotal method performs validation.
getValidSubtotal has Scanner parameter.
getValidSubtotal returns valid subtotal.
getValidSubtotal limits valid subtotal to range > 0 and <= 10000.
getValidSubtotal prevents exception in main.
Discard multiple entries when asked to continue.
how screenshot of error in step 1.
Show screenshot of the IDE windows in step 5.
Show screenshot of the IDE windows in step 6.
Show screenshot of the IDE windows in step 7.
Show screenshot of the IDE windows in step 10.