Question: JAVA CODING Exercise 1 (20 Points): Logical Operators The baby chimps at the Houston Zoo spend most of the day playing. In particular, they play

JAVA CODING

JAVA CODING Exercise 1 (20 Points): Logical Operators The baby chimps at

Exercise 1 (20 Points): Logical Operators The baby chimps at the Houston Zoo spend most of the day playing. In particular, they play if the temperature is between 65 and 90 (inclusive). Between 9AM to 10 AM, 1PM to 2 PM, and 5PM to 6PM, they retreat indoors for the zoo provided tasty food. They tend to sleep between 10 PM and 5 AM Using the above logic, write a java program such that with a user provided temperature and hour (time), display appropriate message (if the chimps will play or are having a sumptuous meal or are fast asleep). Exercise 2 DIY (30 Points): Normally you answer all calls on your smartphone. In the morning you only answer if it is your mom calling. Between 4 PM and 5 PM, you need to take your dog for a walk and cannot answer calls. If you are asleep, you do not answer any calls. Using the above logic, write a java program such with a user provided hour (time) of day, the program returns if you can answer the call. Exercise 3 DIY (40 Points): Given four ints, a b c, and d, return true if two or more of them have the same rightmost digit. The ints are non-negative. (Note: the % "mod" operator provides the remainder, e.g. 12 % 10 is 2)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!