Menu

[Solved]Systemprint Object Type Student Initialized Student Student New Student Studentid P101 Nfi Q37197329

The system.print below:

//An object of the type Student is initialized
       Student student = newStudent(“StudentID:P101″,”nFirst Name:David”,”nLastName:Junior”,”nDOB:11/11/71″, “nCourse:APC”, “nEnrolmentDate:12/12/19n”);      
       Student student1 = newStudent(“nStudentID:P102″,”nFirst Name:Lara”,”nLastName:Croft”,”nDOB:11/11/71″, “nCourse:NNP”, “nEnrolmentDate:22/06/19n”);      
       Student student2 = newStudent(“nStudentID:P103″,”nFirst Name:Linda”,”nLastName:Asari”,”nDOB:14/08/80″, “nCourse:DAD”, “nEnrolmentDate:16/06/18n”));

Produces the output below in Notepad;

StudentID:P101
First Name:David
Last Name:Junior
DOB:11/11/71
Course:APC
Enrolment Date:12/12/19

StudentID:P102
First Name:Lara
Last Name:Croft
DOB:11/11/71
Course:NNP
Enrolment Date:22/06/19

StudentID:P103
First Name:Linda
Last Name:Asari
DOB:14/08/80
Course:DAD
Enrolment Date:16/06/18

Can you please show how to change it so the output is displayedas below in Notepad.

StudentID First Name Last Name DOB Course EnrolmentDate
P101    David   Junior 11/11/71 APC12/12/19
P102   Lara Croft 11/11/71 NNP 22/06/19
P103 Linda Asari 14/08/80 DAD 16/06/18

Expert Answer


Answer to The system.print below: //An object of the type Student is initialized Student student = new Student(“StudentID:P101”,”… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *