Question: 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
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: P -JGRASP exec: Java LaptoparrayInteractive Enter number of laptop brands: Enter laptop brand 1: un Enter laptop price 1: 3000.00 Enter laptop brand 2: Sony Vaio Enter laptop price 29000.00 Enter laptop brand 3: Com Enter laptop price 3: 2800.00 Enter laptop brand 4: Macintosh Enter laptop price 4:6500.00 PE Branda 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
