Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions