0% found this document useful (0 votes)
29 views2 pages

Lab 4

The document describes a test class that enters student information like name, ID, status, courses, and grades into a StudentChart class array. It prompts the user to enter the number of students and then loops to collect data for each student, calculating their average grade.

Uploaded by

mo2419270
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views2 pages

Lab 4

The document describes a test class that enters student information like name, ID, status, courses, and grades into a StudentChart class array. It prompts the user to enter the number of students and then loops to collect data for each student, calculating their average grade.

Uploaded by

mo2419270
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Advanced Programming(0303204)

Lab04
Write a test class that enters students information (Graduate, Undergraduate) , you code should first
ask the user to enter the number of students in the department and then enters students objects in the
array in the StudentChart class.

The following is an example of the code output.

Enter Number of student in the department

Enter Student name

Mohammad Salah

Enter Student ID

876543

Enter Student status, enter g/u

How many courses the student register

Enter Students course#(0-4)

Enter Students grade in course:1

90

Enter Students course

Enter Students grade in course:2

90

Enter Students course

Enter Students grade in course:3

90
Mohammad Salah with id:876543 has avrage= 90.0

Enter Student name

Mariam Morad

Enter Student ID

5678954

Enter Student status, enter g/u

How many courses the student register

Enter Students course

Enter Students grade in course:1

89

Enter Students course

Enter Students grade in course:2

90

Enter Students course

Enter Students grade in course:3

98

Enter Students course

Enter Students grade in course:4

90

Mariam Morad with id:5678954 has avrage= 91.75

You might also like