Question: Font Paragraph John Wants to create a program in java that allows user to enter the name and number of lemons they have (max 2
Font Paragraph John Wants to create a program in java that allows user to enter the name and number of lemons they have (max 2 owners). They should then ask the name and number of lemons each have such as John 8 (on the same line). If the information not given on correct format (name number) the program should keep promoting the user. (Note: Should be done by using your own method) Sample Run: Enter the name and number of lemons for first owner: John 8 Enter the name and number of lemons for second owner: Sam 10 10 Wrong Format!! Enter the number of grapes on the table: Sam 10 ****Continuing** John has 5 lemons i.e. [(8-3)-5, subtracting 3 lemons form first and
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
