Question: You are to create a program in Java that will keep track of purchases at a Pittsburgh Steeler online site. The Items that are available

You are to create a program in Java that will keep track of purchases at a Pittsburgh Steeler online site. The Items that are available for sale are: Item Code Item Name Price 1111Steeler Football $ 29.002222Steeler Mug $ 15.003333Steeler backpack $ 98.004444Steeler keychain $ 10.005555Steeler Glasses $ 59.006666Steeler Tote $ 198.007777Steeler Terrible towel $ 12.008888Steeler hat $ 39.009999Steeler sunglasses $ 139.001010Steeler air bud case $ 15.001212Steeler Poster $ 50.001313Steeler chair $ 40.00You must create a file containing the data above and read the data into your code The user may purchase as many items as they like, and you must keep track of all purchases. Your program must meet the following specifications You must create a new user defined class All data is to be a member of the class, therefore there are to be NO parameters passed between the methods All of the methods are to be part of the class Create a Method to read in the list of items available for sale ( see list above )Create a Method to read in the shipment information ( name and address )Create a Method to prompt the user for items to purchase, along with the quantity of the item. You will allow the user to enter as many items as they like to purchase. You do not need to account for the user entering the same item twice Create a method to calculate the amount for each item purchased and store this information ( item price times the quantity )Create a method to calculate the following: o Total before tax of all the purchases o Tax on all purchases (7%times the total purchase ) o Shipping amount ( if the Total before tax is less than $ 100,the shipping amount is $ 20,if the Total is greater than or equal to $ 100,the shipping is zero ) o Final amount due ( total before tax +tax +shipping )Create a Method using one dialog box to print the invoice: o Name and address o All items purchased ( including item number, name, price, quantity, total for this item ) o Total before tax o Tax o Shipping o Final amount due Additionally, you MUST use formatting for all decimal values ( there is a sample program stored with this assignment that shows how to format your decimals )Before trying to format your data, you should first make sure your program is calculating everything correctly. You do not have to do user input error checking on this assignment. We will get to that on a future assignment. What to turn in: Create a word document with your name and date at the top Next copy your code to the word document Next copy a screen shot of the final output. Possible design ideas: You could create parallel arrays to read in the item information You could also create another set of parallel arrays to keep track of the user purchases. To begin this program, I would do the following: Create the class with the required data as members and all of the methods also as members Create all methods within the class ( make then just print a message saying the method was executed, as the code in the first assignment did...this is called a stub )Create all the calls to to the methods in the main Java Method.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!