Question: 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

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 f you detect an error use the IO module to report bad input: lO.reportBadinput 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 imput
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
