Create a class named purchase each purchase contains an


Create a class named Purchase. Each Purchase contains an invoice number, amount of sale, and amount of sales tax. Include set methods for the invoice number and sale amount. Within the set () method for the sale amount, calculate the sales tax as 5% of the sale amount. Also include a display method that displays a purchase's details. Save the file as Password.java

Create an application that declares a Purchase object and prompts the user for purchase details. The user cannot proceed until a number is between 1000 and 8000 is entered. An cannot proceed until the user enters a nonnegative value for sale amount. After a valid Purchase object has been created, display the object's invoice number, sale amount, and sales tax. Save the file as CreatePurchase.java

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Create a class named purchase each purchase contains an
Reference No:- TGS0586635

Expected delivery within 24 Hours