0% found this document useful (0 votes)
19 views3 pages

Assignment Final IP Lab 1

The document outlines the final term assignment for an Introduction to Programming Lab at American International University - Bangladesh. It requires students to create a 'student' class in C++ with specific private data members and public member functions for managing student information, attendance, and final marks. Students must submit their work by a deadline, with penalties for late submissions or similarities with other students' work.

Uploaded by

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

Assignment Final IP Lab 1

The document outlines the final term assignment for an Introduction to Programming Lab at American International University - Bangladesh. It requires students to create a 'student' class in C++ with specific private data members and public member functions for managing student information, attendance, and final marks. Students must submit their work by a deadline, with penalties for late submissions or similarities with other students' work.

Uploaded by

ayon.a273
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

American International University -Bangladesh (AIUB)

Final Term Assignment


Introduction To Programming Lab
Fall 2024-25

Read The Instructions Carefully:


1. Submit the .cpp file in the Microsoft Teams as [Link] (Example: [Link])
2. Come to the Hard copy on the Final Lab Exam day for Viva attendance.
3. If I found the similarity of the assignment with other students, or AI
generated content, or internet sources will get direct 0.
4. If any students do not submit their assignment on the given time, I will deduct 5
marks as penalty.

Question:
Make a class name student, that stores the information details of students. Including the
student name, student Id, student age, student attendance and student CGPA. The class
should have the following:

Private Data member:

● name (string) to store the student's name.


● Id (string) to store the student Id.
● age (int) to store the student's age.
● attendance (int) to store the student's attendance.
● cgpa (float) to store the student's CGPA.

Public member functions:

● addstudentinfo ( ) add the students all the attributes from the user.
● addattendence ( ) add the student individual attendance from the user, where the
program also checks that attendance values are > 0 and < equal to 5, if the
conditions are true display “ Take Permission from Dept. Head for Final Term
Exam ” also checks that attendance > equal 5 and attendance < equal 10, if it is
true display “Attendance Up to The Mark ” and call the another function named
Finalmarkscalculate ( )
● Finalmarkscalculate ( ) calculates the final term marks based on the user input
quiz, attendance and final exam mark and calculates the total marks and displays
the mark.
● validateinput( ) function validates the user input of age and CGPA, it should be
within the range of age > 5 and < 22, for CGPA it should be > 2.50 and < 4.00. For
re-enter the student information correctly call function addstudentinfo ( )
● display( ) function displays all the information of the students. (Name, ID, Age,
Attendance, CGPA)

In the main() function:

● Create an object of the student class.


● Make a menu for Student Management Systems
1. Add Student Information
2. Add Attendance
3. Final Mark Calculate
4. Display Student Information
5. Exit
● Call each of the functions inside the case.

Sample Outputs:

You might also like