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

in java plz
in java plz Q2. Write a program that contains the following two

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!