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:
- void Login()=0;
- void viewProfile()=0;
Following classes will be derived from the USER class:
- FYP Admin
- Supervisor
- Student
- 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.
- 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
Step: 1
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...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started