Question: Problem Statement: In continuation to the development of the FYP Automated System you are required to create an abstract class USER with data members, user_name

Problem Statement: In continuation to the development of the FYP Automated System you are required to create an abstract class USER with data members, user_name, password and user_role. Provide pure virtual functions with following prototype in this class:

  1. void Login()=0;
  2. void viewProfile()=0;

Following classes will be derived from the USER class:

  1. FYP Admin
  2. Supervisor
  3. Student
  4. Evaluator

FypAdmin class will have its data members designation and a pointer array to Project.Also it includes a member function to facilitate the coordinator/admin.

  1. void AssignProject(Project *proj[]);

The Student class will have data members: s_name, s_id and other relevant data members of a student.

The Supervisor and Evaluator classes will have basic information about them.

The Project class will have project-id, project-title, project-detail, two references (pointer) of student class (to represent the students who have chosen this particular project) and one reference pointer of the Supervisor class to create a project. Provide a parameterized ctor to initialize the data members of the class Project.

Project (int pid, string p-title,string p-desc,Supervisor *sup,Student *s1, Student *s2=null);

In the main function, allow the administrator assign new Projects.

Note: Bonus marks for UML diagram along the assignment solution.

/*Problem Statement: In continuation to the development of the FYP Automated System

you are required to create an abstract class USER with data members, user_name, password

and user_role. Provide pure virtual functions with following prototype in this class:

1. void Login()=0;

2. void viewProfile()=0;

Following classes will be derived from the USER class:

1. FYP Admin

2. Supervisor

3. Student

4. Evaluator

FypAdmin class will have its data members designation and a pointer array to Project.Also

it includes a member function to facilitate the coordinator/admin.

1.void AssignProject(Project *proj[]);

The Student class will have data members: s_name, s_id and other relevant data members of a student.

The Supervisor and Evaluator classes will have basic information about them.

The Project class will have project-id, project-title, project-detail,

two references (pointer) of student class (to represent the students who have chosen this particular project)

and one reference pointer of the Supervisor class to create a project. Provide a parameterized ctor to initialize

the data members of the class Project.

Project (int pid, string p-title,string p-desc,Supervisor *sup,Student *s1, Student *s2=null);

In the main function, allow the administrator assign new Projects.

Step by Step Solution

3.40 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Solution Userh pragma once class user protected string UserName string Password string RoleOfUser public virtual void login 0 virtual void profile 0 void input void WriteToFile ofstream OutFile OutFil... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!