Write a Java program to do the following task: Assign your id number (example. 2014299123) to an integer variable id_num Using reminder operator % on the id_num get the last digit (3) and store it in...


Write a Java program to do the following task:<br>Assign your id number (example. 2014299123)<br>to an integer variable id_num<br>Using reminder operator % on the id_num get<br>the last digit (3) and store it in num<br>If the num is between 0 and 3 (both included),<br>display

Extracted text: Write a Java program to do the following task: Assign your id number (example. 2014299123) to an integer variable id_num Using reminder operator % on the id_num get the last digit (3) and store it in num If the num is between 0 and 3 (both included), display "You are in Group 1" Otherwise if the num is between 4 and 6 (both included), display "You are in Group 2" Otherwise (num is between 7 and 9 (both included), display "You are in Group 3" Save your file as Q2.Java

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here