0% found this document useful (0 votes)
114 views10 pages

Debre Markos University: Institute of Technology

This document describes a C++ program for a computer laboratory management system at Debre Markos University. The program allows users to input student information including name, ID, department, computer number, and issue or problem. It displays collected student comments and information for administrators. The program uses structures and functions to input, search, display, and delete student data. It provides different interfaces for teachers, lab assistants, and students to view computer status information or report issues.

Uploaded by

Dawit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
0% found this document useful (0 votes)
114 views10 pages

Debre Markos University: Institute of Technology

This document describes a C++ program for a computer laboratory management system at Debre Markos University. The program allows users to input student information including name, ID, department, computer number, and issue or problem. It displays collected student comments and information for administrators. The program uses structures and functions to input, search, display, and delete student data. It provides different interfaces for teachers, lab assistants, and students to view computer status information or report issues.

Uploaded by

Dawit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
You are on page 1/ 10

Debre Markos University

Institute of Technology
Department of Information Technology

C++ Group Assignment 1.

Group Members ID_NUM


1. Dawit Mekuria ................................... TER_1314/10
2. Dessalew Nigussei ............................. TER_1315/10
3. Efrem Milkias .....................................TER_1316/10
4. Ewnetie Kifile .................................... TER_1317/10
5. Esrael Abebe ...................................... TER_1311/10
6. Fikre Unknown ................................. TER_1300/10

2011 E.C

Computer Laboratory Managent System


Genral Discription.
This source code is an implementation of our OOSAD project and it basically
delivers computer laboratory management system in Debre Markos University.
The scope for the source code is based on Information Technology computer
laboratories and its functions are - getting users’ (in our case, students’)
information, saving it and sending it to top level management of the University. The
system first accepts student’s name, id, computer number and asks for their issues
or problems faced while using the lab. Then it saves the information and instantly
sends the information or comments collected from the users or students to the
higher authority who is concerned in the issue.(this (the sending part) functionality
is actually assumption because it requires other advanced methods to involve it in
the system)
Workings of the System
The source code is based on computer laboratory management system which more
or less includes functions , pointers and object oriented programming concepts like
structure.
By accessing this source code we can be able to perform different tasks like
1. Input a problem in the computer laboratoy.
2. Display every problem report as a whole.
3. View references in order to organize parts of a computer: for example, if a
person or a lab assistant comes in to the lab and saw a mouse being unpluged
and put randomly, then with out westing any extra time he would go and
view references(the integrated information about the mouse serial number
and where it shoud be placed and which is the correct system unit it should
be pluged in and other informations) and plug it easily.
4. Delete the recorded problems and all other informaion.
Flow Chart of the whole program

Start

What are the main content of the system?

1. Headers, structures and functions used


-Unique headers used
 #include <iomanip> :- to set spaceses.
Others unique functions
 System(“cls”) :-
this function is included so that the system can be easy touse and to minimiz
disorganization or mess during the processes of the system;
Structures
 Student{};
Members in structure
 string Name;
 char ID[15];
 string Dept;
 string Date;
 int Computer_No;
 string Opinion;
Functions
 input();
 search();
 searchname();
 searchid();
 displayall();
 editName();
 deleteFile();
 quit();
 Menu();
 void Menu_without_clearSCR();
Source Code

#include <iostream>
#include <string>
#include <iomanip>
using namespace std;
string divider1 = "------------------------------------------------------------------------";
string divider2 =
"******************************************************************
******";
struct Student
{
string Name;
char ID[15];
string Dept;
string Date;
int Computer_No;
string Opinion;
};

int Student_Comment()
{
Student stud;
cin.ignore();
cout << "Enter your name: ";
getline(cin,stud.Name);
cout << "Enter ID: ";
cin.getline(stud.ID, 15);
cout<<"Enter your department: ";
getline(cin,stud.Dept);
cout << "Enter current date: ";
getline(cin, stud.Date);
cout << "Enter computer number:";
cin>>stud.Computer_No;
cin.ignore();
cout << "What is your issue related to the lab: ";//as an
assumption, just at this point the info input will be sent to the top manager as a
notification
getline(cin,stud.Opinion);
while(stud.Opinion.empty()==true)
{
cout << "...nothing entred..." << endl;
cout << "Feel free to enter your idea!"<< endl;
getline(cin,stud.Opinion);
}
cout <<divider2 << endl;
cout << "\tYour Comment has been successfully saved!"<<
endl;
cout << "\tThank you for your comment!!"<< endl;
cout << "\t\t--> We will try to address your issues as soon as
possible!" << endl;
cout <<divider2 << endl;

void Teacher()
{
int T_choice;
do{
cout << divider2<<endl;
cout << setw(30) <<"Welcome!" << endl;
cout << "What would you like to know about 2nd year students' IT lab? " <<
endl;
cout << "\t1. View how many computers function efficiently." << endl;
cout << "\t2. View how many doesn't function well." << endl;
cout << "\t3. View the total number of computers." << endl;
cout << "Your Choise Please(1-3): ";
cin >> T_choice;
cout << divider2 << endl;
if ((T_choice < 1 ) || (T_choice > 3))
{
cout << "Re-enter your choice:\n";
}
}while((T_choice < 1 ) || (T_choice > 3));
switch(T_choice)
{
case 1:
cout << "Based on our statistics, at the current time,\n there are --> 25
desktop computers which work efficiently. "<<endl;
cout << divider2 <<endl;
break;
case 2:
cout << "Based on our statistics, at the current time,\n there are --> 7
desktop computers which doesn't work efficiently. "<<endl;
cout << divider2 <<endl;
break;
case 3:
cout << "Based on our statistics, at the current time,\n there are --> 35
desktop computers in the lab."<<endl;
cout << divider2 <<endl;
break;
default:
cout << "Invalid Choise.";
}
}
void Lab_assistant_or_student()
{
int L_choice;
do{
cout << divider2<<endl;
cout << setw(30) <<"Welcome!" << endl;
cout << "What would you like to know about 2nd year students' IT lab? " <<
endl;
cout << "\t1. View how many computers function efficiently." << endl;
cout << "\t2. View how many doesn't function well." << endl;
cout << "\t3. View the total number of computers." << endl;
cout << "Your Choise Please(1-3): ";
cin >> L_choice;
cout << divider2 << endl;
if((L_choice<1)||(L_choice>3))
{
cout << "Re-enter your choice\n";
}
}while((L_choice<1)||(L_choice>3));
switch(L_choice)
{
case 1:
cout << "Based on our statistics, at the current time,\n there are --> 25
desktop computers which work efficiently. "<<endl;
cout << divider2 <<endl;
break;
case 2:
cout << "Based on our statistics, at the current time,\n there are --> 7
desktop computers which doesn't work efficiently. "<<endl;
cout << divider2 <<endl;
break;
case 3:
cout << "Based on our statistics, at the current time,\n there are --> 35
desktop computers in the lab."<<endl;
cout << divider2 <<endl;
break;
default:
cout << "Invalid Choise.";
}

int main()
{
int profession;
char subchoise;
string pas="dmu";
cout << "Enter Password(hint- dmu): "<<endl;
cin >> pas;
while(pas!="dmu")
{
cout << "Incorrect password!" << endl;
cout << "See hint and try agin"<<endl;
cout << "Enter Password(hint- dmu): ";
cin >> pas;
}
cout <<setw(33) <<"*WELCOME!*"<< endl;
cout << setw(40) <<"DEBRE MARKOS UNIVERSITY " << endl;
cout << setw(47) <<"COMPUTER LABORATORY MANAGEMENT
STSTEM" <<endl;
cout << divider1 << endl;
do{
cout << "Choose and enter number please. " << endl;
cout << "\t\t1. Teacher" << endl;
cout << "\t\t2. Lab Assistant" << endl;
cout << "\t\t3. Student" << endl;
cout << "\t\t4. Exit" << endl;
cout << "Your choise(1-4)? ";
cin >> profession;
while ((profession < 1) || (profession > 5) )
{
cout << "Please Choose from (1-4): ";
cin >> profession;
}

if(profession == 1)
{
Teacher();
}
else if(profession == 2)
{
Lab_assistant_or_student();
}
else if(profession == 3)
{
cout << "------What would you like to do------" << endl;
cout << "\tA.View Information on computer in IT lab."<< endl;
cout << "\tB.Report a Problem."<< endl;
cout << "Your Choise(A/B):"<< endl;
cin >> subchoise;
if((subchoise == 'A')||(subchoise =='a'))
{
Lab_assistant_or_student();
}
else if((subchoise == 'B')||(subchoise =='b') )
{
Student_Comment();
}
else
{
cout << "Invalid choise.";
}
}
else if(profession == 4)
{
cout << endl;
cout <<setw(50) << "Thank you for your time!"<<endl;
cout << setw(44) <<"Program Exit!";
exit(1);
}
}while(profession == 1 || 2 || 3);
}

}
}
Outputs
 Screen 1
 Screen 2
 Screen 3
 Screen 4
 Screen 5

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy