Question: in java plz Q2. Write a program that contains the following two methods: Grade 10 : 1. discount method: will receive an item's name and
Q2. Write a program that contains the following two methods: Grade 10 : 1. discount method: will receive an item's name and a price and based on the following table it will apply a discount and return the new price after the discount 1. discount method Note: price=price - price*discount item Discount "HP" 0.16 "Dell" (0.05 ( )Others 0.10 2. main method: will prompts the user to enter a name of an item and a price, and call the discount method and print the returned result. 2. main: discount method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
