Question: Hey, I have an assignment from my Data Structures class. I need the output to be: [1] to set the student name [2] to set

Hey, I have an assignment from my Data Structures class. I need the output to be:

[1] to set the student name [2] to set the student address [3] to set the student GPA [4] to set the student student ID [5] to set the student major [6] to print student info [7] to exit

Then I need this output to repeat another 2 times. How can I code that? Its java

Also, to code the output above, I used

int a = 1; System.out.println("[" + a + "] to set the student name");

I repeated this code until

int g = 7

Please help. Thanks in advance

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!