1. Create a new class for a shopping Cart 2. Create fields for the following: subtotal = 0 SalesTax =10% of the total Pr

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

1. Create a new class for a shopping Cart 2. Create fields for the following: subtotal = 0 SalesTax =10% of the total Pr

Post by answerhappygod »

1 Create A New Class For A Shopping Cart 2 Create Fields For The Following Subtotal 0 Salestax 10 Of The Total Pr 1
1 Create A New Class For A Shopping Cart 2 Create Fields For The Following Subtotal 0 Salestax 10 Of The Total Pr 1 (25.88 KiB) Viewed 30 times
1. Create a new class for a shopping Cart 2. Create fields for the following: subtotal = 0 SalesTax =10% of the total ProductQuantity = 0; shoppingCartName = yourname 3. Create Auree methods in the class: To allow the customer to add products (this should increment the ProductQuantity field). To allow the customer to delete products. This should deduct from the ProductQuantity field and should not deduct in ProductQuantity is 0 and print the quantity with Shopping Name 4. Create another method to print Subtotal, Shopping Cart Quantity, and SalesTax 5, Create another class with main method for entry point of your program Give user options to Show Subtotal Balance, Add Product, Delete Product from cart and Exit out of program Add some System.out.printin's in all methods above as well.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply