Question: Question 2 You are assigned by a computer shop to write a program that allows the user to insert the available brands and their prices.

Question 2 You are assigned by a computer shop to write a program that allows the user to insert the available brands and their prices. Then, it calculates 10% discount from the price for each brand. A table should be created to display all brands, prices, and prices after discount in a table. This information should be kept in THREE different arrays. The size of arrays is determined by the user's input. Refer to the sample run below. Sample run: ---- GRASP exec: java LaptopArrayInteractive Enter number of laptop brands: 4 Enter laptop brand 1: Asus Enter laptop price 1: 3000.00 Enter laptop brand 2: Sony Vaio Enter laptop price 2: 4000.00 Enter laptop brand 3: Compaq Enter laptop price 3: 2500.00 Enter laptop brand 4: Macintosh Enter laptop price 4: 6500.00 Brands Price After Discount Asus 3000.00 Sony Vaio 4000.00 Compaq 2500.00 Macintosh 6500.00 2700.00 3600.00 2250.00 5850.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
