Write a complete program for a university registration system. Your program task
ID: 3844543 • Letter: W
Question
Write a complete program for a university registration system. Your program task is to ask the user for the course ID number, the faculty name and his/her rank, and the maximum class size allowed and generate a class list according to the following rules:
• Your program will select the actual class size randomly. The size is selected randomly and must be between half of the maximum and the maximum inclusive. So if the class maximum size is 30, then your actual class size is between 15-30 inclusive.
• Students names are then obtained from an existing enrollment list provided for you. The minimum set of classes in your program must include the following, however, you will be needing more classes to complete the project.
• A Student class. Each student will have a name and a unique ID. The ID must be selected randomly
• A Faculty class. Each faculty will have a name, a rank (Professor, Associate Professor Assistant Professor). There must be a menu driven item for the user to select the faculty ranking.
As an example o Enter a faculty name: o Select The faculty rank Enter 1 for Professor Enter 2 for Associate Professor Enter 3 for Assistant Professor • A Course class that has the course ID Number, Room assigned, and class start and end time • A Registrar class, which will include a main method
Explanation / Answer
The question is incomplete. Still i am making the classes on as much is given. I am just posting the classes.Because no other information is given. And next time please give the language you want it coded in. I am doing it in c++ right now.
SOURCE CODE:
#include <iostream>
#include<string.h>
#include<stdlib.h>
#include<conio.h>
#include<time.h>
using namespace std;
int num[50],coun=0;
class student{
char name[50];
int id,i=0;
student()
{
srand(time(NULL));
aman:
id=rand()%10000+100;
while(i<coun)
{
if(id==num[i]) goto aman;
}
num[coun]=id;
coun++;
}
};
class faculty()
{
char name[50];
int rank;
faculty()
{
rank=0;
}
public:
void init(int a)
{
if(a>0 && a<3 ) rank=a;
else cout<<"Wrong choice";
}
};
class course{
int id;
char room[5];
float start_time,end_time;
};
void main()
{
clrscr();
getch();
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.