Question
Create a program that gets 5 students information from the user. Each students information is used to create an instance of Student class. Student Class
Create a program that gets 5 students information from the user. Each students information is used to create an instance of Student class. Student Class has the following attributes: o ID, first name, last name and email
Student class has the following methods Student constructor - accepts 4 parameters (ID, first name, last name and email) getInfro method accepts no parameter, returns strings that shows: ID, first name, last name and email separated by comma.
The student objects are then stored in a Studetn array
Loop through the array and print each student's info to the console screen.
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