Question: I want to check my code with your perpect code PLASE USE JAVA 2. Buying Apples Write a program that computes and displays the result
I want to check my code with your perpect code
PLASE USE JAVA

2. Buying Apples Write a program that computes and displays the result of how much a certain number of pounds of apple cost. Write your code in a file called BuyingApples,java, your class must have this exact name with B and A capitalized. You must use the IO module to read inputs and to output your answer. If you detect an error use the IO module to report bad input: lO.reportBadinputo Example 1: java BuyingApples Enter cost per LB: 3.5 Enter number of pounds: 5.0 RESULT: 17.5 Example 2: java BuyingApples Enter cost per LB: -3.5 Enter number of pounds: 5.0 User entered bad input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
