You are on page 1of 1

OOP Assignment 1

Instructions:
1. Attempt all questions by yourself
2. Do not plagiarize, both donor and acceptor gets zero marks, copying from Wikipedia as it is
without referencing is plagiarism too.
3. Submit codes along with outputs in printed form.
4. Deadline October, 11, 2019.

Q1) Make a C++ program of student information using structures (one having name, father’s
name and age, second structure should have CGPA, semester GPA and a function to update GPA
and the third should have information regarding course’s name and course‘s attendance and
course GPA, the program will have three structures which are to be nested into one another, in
main function you should be able to store and retrieve information of 5 students, update GPA of
every semester and update CGPA. Order of nesting may be according to your convenience

Q2) Write a code for an automated banking machine. Machine asks user for name initial balance
and password. Afterwards, it asks whether the user wants to deposit an amount or withdraw
some amount, if the entered amount is greater than the initial balance, the machine says invalid
request. Afterwards, it displays the final balance and displays a thank you statement. You have to
use class that has individual function for each task.

Q3) Design a class for saving data of employee, the class should have multiple constructors
(constructor overloading) for initializing objects with different parameters.
The employee class should have different functions for saving and updating bio-data,
educational background, and current status like experience, Salary, position & travel history.
The employee class should have a function which asks user what do he likes to see about
employee (.i.e., Bio-data, current status....) and only show the respective data.
Create two objects of interns and shows their educational background, five employees and show
their experience to help decide which two should be called for promotions interviews and print
data of all employees who left the organization

You might also like