Question: please solve with java 1. Apply nested if for the following problem. Normally, when your phone rings, you answer, except in the morning (7am -
1. Apply nested if for the following problem. Normally, when your phone rings, you answer, except in the morning (7am - 12pm) you only answer if it is your mom calling. In all cases, if you are asleep, you do not answer. Get user input on the time, display "Answer the phone" or "Do not answer the phone" based on the description. Hint: Use nested if. Get upper input on - is it mom - asleep time determined by go to bed time wake up time Use 24 hour clock to make your if-else easier. Copy/Paste your code here. Also upload the java file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
