1. Apple Conflict by CodeChum Admin John is back and he wants Cody to compensate for the apple he took from him. Cody decided to give him some apples to ease the tension. Cody thought that John...

Java
1. Apple Conflict<br>by CodeChum Admin<br>John is back and he wants Cody to<br>compensate for the apple he took from him.<br>Cody decided to give him some apples to<br>ease the tension. Cody thought that John<br>shouldn't ask for too much. More than 10 is<br>too much while 5 and below is too few.<br>Input the number of apples John wants then<br>print

Extracted text: 1. Apple Conflict by CodeChum Admin John is back and he wants Cody to compensate for the apple he took from him. Cody decided to give him some apples to ease the tension. Cody thought that John shouldn't ask for too much. More than 10 is too much while 5 and below is too few. Input the number of apples John wants then print "No way, that's too much" if it reaches more than 10 and print "No, ask for more" if he asks for 5 or below. Print "Okay, sure" if it is neither. Input 1. Number of apples John wants Output The first line will contain a message prompt to input the number of apples. The second line will contain the response message. Enter the number of apples: 5 No, ask for more

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here