Question: Create an application that declares a Purchase object and prompts the user for purchase details. When you prompt for an invoice number, do not let
Create an application that declares a Purchase object and prompts the user for purchase details. When you prompt for an invoice number, do not let the user proceed until a number between 1,000 and 8,000 has been entered. When you prompt for a sale amount, do not proceed until the user has entered a nonnegative value. After a validPurchaseobject has been created, display the object's invoice number, sale amount, and sales tax. Save the file asCreatePurchase.java.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
