Create a program that gets 5 students information from the user. Each student’s
ID: 3918883 • Letter: C
Question
Create a program that gets 5 students information from the user.
Each student’s 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.
Explanation / Answer
Person()
{
first name = "";
last name = "";
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.