Question: Create the java code for the problems below and submit your code to moodle by 9am. 1. Given two non-negative int values, tracked by parameters
Create the java code for the problems below and submit your code to moodle by 9am. 1. Given two non-negative int values, tracked by parameters num1 and num2. print "same ends" if they have the same last digit, such as with 27 and 57. 2. The boolean variable weekday is true if it is a weekday, and the boolean variable vacation is true if we are on vacation. We sleep in if it is not a weekday or if it a weekday and we're on vacation. Print "back to bed...zzz" if we sleep in. (Control logic comparisons will be useful
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
