1 answer

Write a program with java editor is about the student system, you need to write some...

Question:

Write a program with java editor is about the student system, you need to write some simple and uncomplicated student information, then use 2D-Aarraylist to edit some simple code, and then when the user chooses the command, it must be casually selected, according to the user. The request to execute the command, for example when the user selects (student, id, gpa, etc.) wants to remove it.
Have any questions to ask me, because my homework is not required to add some code according to my idea, thank you


Answers

here is the answer........

package student; import java.util.*;  public class Student {   public static void main(String[] args) {    int i, q, z, c, b;    int x=0;    String[] name = new String[30];    int[] age = new int[30];    String[] course = new String[30];    String[] year = new String[30];    String[] section = new String[30];    int menuChoice;     Scanner input = new Scanner (System.in);     start:    do{         System.out.println("\t\t\tStudent Record Menu");        System.out.println("\t\t1. Add Student\t2. View Students\t3. Search Student\t4. Exit");        System.out.println("Enter a choice: ");        menuChoice = input.nextInt();         if (menuChoice==1)        {            for (z=x; z<=29; z++)            {                System.out.println("Full name:");                name [z] = input.nextLine();                System.out.println("Age:");                age [z] = input.nextInt();                System.out.println("Course:");                course [z] = input.next();                System.out.println("Year:");                year [z] = input.next();                System.out.println("Section:");                section [z] = input.next();                x++;                continue start;            }        }                else if (menuChoice==2)                {                    for (i=0; i<x; i++)                    {                        System.out.println(name[i] + age [i] + course [i] + year [i] + section [i]);                    }                }     } while (menuChoice<4);  } }
.

Similar Solved Questions

1 answer
True or False
True or False? If the inverse function of f exists, and the graph of f has a y-intercept, the y-intercept of f is an x-intercept of f^-1...
2 answers
Word form for 3,041,604,760.15?
Word form for 3,041,604,760.15?...
1 answer
One of the problems for an assignment in Business Statistics
It is very common for television series to draw a large audience for special events such as cliff-hanging story lines. Suppose that on one of these occasions,the special show drew viewers from 38.2% of all US TV households. Suppose that three TV households are randomly selected. What is the probabil...
1 answer
Question 2 (based on 15.13) Suppose you are a risk-averse decision maker with a utility function...
Question 2 (based on 15.13) Suppose you are a risk-averse decision maker with a utility function given by U(1)=1-101-2, where I denotes your monetary payoff from an investment in thousands. You are considering an investment that will give you a payoff of $10,000 (thus I 10) with probability 0.7 and ...
1 answer
4- ㅢ1 points OSCoIPhys2016 2.3.WA 010. My Notes You walk for 6.44 km with at a...
4- ㅢ1 points OSCoIPhys2016 2.3.WA 010. My Notes You walk for 6.44 km with at a constant velocity of 2.58 m/s due west, turn around, and then walk with an average velocity of 0.425 m/s due east. From your starting point to your destination, your overall average velocity is 1.27 m/s due west. D...
1 answer
Use the References to access important values if needed for this qu How many protons, neutrons...
Use the References to access important values if needed for this qu How many protons, neutrons and electrons are there in a neutral atom of the isotope represented by: zGa protons: neutrons: electrons:...
1 answer
Question 12 Suppose that the number of customers who enter a post office in a 32-minute...
Question 12 Suppose that the number of customers who enter a post office in a 32-minute period is a Poisson random variable and that P(X = 0) = 0.14. Determine the (a) mean and (b) variance of X. Round your answers to two decimal places (e.g 98.76)...
1 answer
The following financial statements and additional information are reported. 2018 IKIBAN INC. Comparative Balance Sheets June...
The following financial statements and additional information are reported. 2018 IKIBAN INC. Comparative Balance Sheets June 30, 2019 and 2018 2010 Assets Cash $ 82,700 Accounts receivable, net 77,000 Inventory 71, 808 Prepaid expenses 5,200 Total current assets 236,700 Equipment 132,000 Accum. depr...
1 answer
3. (25%) Implement the following 3 functions W,X,Y on a PLA with 4 product terms (Use...
3. (25%) Implement the following 3 functions W,X,Y on a PLA with 4 product terms (Use common terms to optimize the design to obtain 4 or less terms) W(A, B, C) = X(A, B, C) = Y(A, B, C) = m(0, 1,4,5) m(3,4,5) m(0, 1, 2, 3)...
1 answer
Alsup Consulting sometimes performs services for which it receives payment at the conclusion of the engagement,...
Alsup Consulting sometimes performs services for which it receives payment at the conclusion of the engagement, up to six months after services commence. Alsup recognizes service revenue for financial reporting purposes when the services are performed. For tax purposes, revenue is reported when fees...
1 answer
6. The emission spectrum of Na(NaNNa [Ne]3s) is a doublet. [8 points) (a) What are the...
6. The emission spectrum of Na(NaNNa [Ne]3s) is a doublet. [8 points) (a) What are the term symbols for excited states?...
1 answer
Javier is a senior project manager that is managing the next major software release for the...
Javier is a senior project manager that is managing the next major software release for the company’s gaming system. The project has fallen behind schedule and Javier has asked you if he could use a couple of your software engineers over the next two weeks to catch up. Your project is on time ...
1 answer
4cK + N2+ 4H20—>N,H4 + 2Cl2+ 40H In the above reaction, the oxidation state of nitrogen...
4cK + N2+ 4H20—>N,H4 + 2Cl2+ 40H In the above reaction, the oxidation state of nitrogen changes from to - How many electrons are transferred in the reaction? Cd + C10+ 2H+ --Cd2+ + C103+H20 In the above reaction, the oxidation state of cadmium changes from - to - How many electrons are tran...
1 answer
The beam is fabricated from four boards nailed together as shown. Determine the shear stress at...
The beam is fabricated from four boards nailed together as shown. Determine the shear stress at points A and B on the web of the beam located at section a-a. Also, determine the spacing of the nails along the sides and the top of the beam if the shear force of each nail along the sides is 197 lb and...
1 answer
What are the sulfur oxidation numbers in #"thiosulfuric acid"#, #H_2S_2O_3#?
What are the sulfur oxidation numbers in #"thiosulfuric acid"#, #H_2S_2O_3#?...
1 answer
What cause genital herpes?
What cause genital herpes?...
1 answer
Marin Inc. sells portable computer equipment with a two-year warranty contract that requires the corporation to...
Marin Inc. sells portable computer equipment with a two-year warranty contract that requires the corporation to replace defective parts and provide the necessary repair labour. During 2020, the corporation sells for cash 382 computers at a unit price of $2,380. Ignore any cost of goods sold. Based o...
1 answer
How do you find the limit #x^2/(e^x-x-1)# as #x->0#?
How do you find the limit #x^2/(e^x-x-1)# as #x->0#?...
1 answer
Need help with question 2 1. In Part C of this lab, which of the following...
need help with question 2 1. In Part C of this lab, which of the following pieces of glassware is used to accurately deliver 10.00 ml of acetic acid into your Erlenmeyer flask? O a. Volumetric pipet. b. Disposable pipet. c. Graduated cylinder. 2. What is the purpose of a titration thief? a. To hold...