Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this assignment, you will create a Java program. The program prompts users for a student ID and assignment a group for the student. The
In this assignment, you will create a Java program. The program prompts users for a student ID and assignment a group for the student. The program exits when a 0 is given. I. General Requirements General 1) The program will keep prompting user to input a student ID (integer) until a 0 is given. 2) The program will randomly assign the student to a group from 1 to 10. It will print a message "Student XXXX is assigned to group YY. where XXXX is the student ID input and YY is the group number. 3) After a 0 is given, the program prints "Goodbye!" and exits. 4) You may use any systems or tools to create and run your program. 5) You should use Math.random() for random number generation. 6) You must follow the guidelines in the programming guideline document. 7) A sample run will look like this: Enter a student ID (enter to quit): 2744 Student 2744 is assigned to group 7 Enter a student ID (enter to quit): 3944 Student 3944 is assigned to group 6 Enter a student ID (enter to quit): 11 Student 11 is assigned to group 3 Enter a student ID (enter o to quit): 0 Good bye
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started