Question: Java jgrasp . (a) Write a class that manages the inventory of TVs: each account should have a manufactur name, size of the TV, number
. (a) Write a class that manages the inventory of TVs: each account should have a manufactur name, size of the TV, number of TVs in stock, and the price of the TV. It should have constructor(s), getter and setter methods , toString method, a finalPrice() method, and an he finalPrice() method should accept a sales tax rate as a parameter and () method should receive the number of TVs return the final price = price + tax. The inventory bought and update the stock for that TV. (b) Write a driver to the class. It should read data from the keyboard and print before and after purchase information. PROGRAMS ATTACHED. Here is an example of the output Enter manufacturer name: sony Enter Price: $1000 Enter size of the TV: 60 Enter number of units in stock: 10 sony $1000.0 10 How many do you want to buy? 4 What is the tax rate? 10 Total price: $4400.0 We have 6 sony Tvs in stock 60 inches
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
