Professional Documents
Culture Documents
25 Functions Program
25 Functions Program
Assignment
#include<iostream>
#include<conio.h>
#include<string>
void Industry(void)//1
void Management_Of_IT_Department(void)//2
cout << " * Server Management \n * Computer Management \n * Networking " << endl;
void Servers_List(void)//3
cout << " * Cloud Server \n * Mail Server \n * Printer Server " << endl;
cout << " * FireWall \n * ADC ( Active Domain Controller ) \n * Cameras Server " << endl << "\n";
void Server_Management(void)//4
cout << " Monitoring for any new or recurring issues " << endl;
cout << " To give the access on users " << endl;
cout << " To Take action at a time on all users" << endl << "\n";
void Computer_Management(void)//5
cout << " To arrange the Computers for Users " << endl;
cout << " To give the id and password for using Computer on Domain side " << endl;
cout << " To give some access regarding query " << endl << "\n";
cout << " Enter Your First Name " << endl;
cout << " Enter Your Last Name " << endl;
cout << " Enter your contact Number " << endl;
cout << " Waiting For Message " << endl << "\n";
void Networking(void)//6
string IP_Add;
cout << " All Equipment run in Network Class (B) " << endl;
cout << " To Provide Network for organization " << endl;
cout << " Enter the IP Address or Host Name of any Equipment " << endl;
cout << " Now you have a access on this Device" << endl << "\n";
void Website_Access(void)//7
cout << " Websites Access Form " << endl << "\n";
cout << " Enter Your First Name " << endl;
cout << " Enter Your Last Name " << endl;
cout << " Enter your contact Number " << endl;
cout << " Enter Your Department Name " << endl;
cout << " Signature of Your Head of Department " << endl;
}
void Cloud_Server_Access(void)//8
string name,zahid;
int password;
cout << " Enter your Password: "; cin >> password;
cout << "\n Incorrect UserName & Details, Try again." << endl;
cout << " After 2 more times, you don't have access " << endl << "\n";
void Cloud_Server_Details(void)//9
cout << " Last Backup Date is 27-Jan-2020 " << endl;
cout << " Total user are 2300 " << endl;
cout << " All users are available in Class B " << endl;
cout << " IP addresses Start from 172.16.0.0 to 172.16.255.255 " << endl;
cout << " Admin allow to server access Only five (5) users " << endl;
cout << " Zahid Masood \n Muhammad Jamil \n Ali Raza \n Muhammad Zahid" << endl << "\n";
}
void Mail_Server(void)//10
cout << " Total User on Mail Server " << endl;
cout << " 1675 user mail is up to date " << endl;
cout << "Incoming mail server port 993 (SSL required)" << endl;
cout << "Outgoing (SMTP) mail server port 587 (SSL/TLS required)" << endl << "\n";
void Printer_Server(void)//11
cout << " Total Printer are 689 " << endl;
cout << " Allow to users to take Print " << endl;
cout << " Printer server IP address : 172.16.0.112" << endl << "\n";
cout << " Now wait for 2 minutes ..............----------------" << "\n" << endl;
void Firewall(void)//12
cout << "Eliminate the occurrence of unwanted network" << endl << "\n";
void Cameras_Server(void)//13
cout << " IP Addresses Start from 172.16.1.1 to 172.16.50.255" << endl << "\n";
void Users_List(void)//14
cout << " How many Users are Resign " << endl;
cout << " Enter Resign User Number " << endl;
cout << " Now Current Users are this : " << C_User << "\n";
void Laptops_List(void)//15
cout << " Add New Laptops in List " << endl;
cin >> Laptops;
if (New_L>1118)
cout << " The List has been Updated, Now Laptops are : " << New_L << endl << "\n";
else
cout << " This List wasn't updated " << endl << "\n";
void Computers_List(void)//16
cout << " Add New Computers in List " << endl;
if (New_C>586)
cout << " The List has been Updated, Now Computers are : " << New_C << endl << "\n";
else
cout << " This List wasn't updated " << endl << "\n";
void Projector_List(void)//17
cout << " Add New Projector in List " << endl;
if (New_P>135)
cout << " The List has been Updated, Now Projector are : " << New_P << endl << "\n";
else
cout << " This List wasn't updated " << endl << "\n";
void Router_List(void)//18
cout << " How many users are connected on Router " << endl;
cout << " The Network speed in giga " << endl;
else
cout << " The Network speed is slow " << endl << "\n";
cout << " Add New Router in List " << endl;
if (New_R>486)
cout << " The List has been Updated, Now Router are : " << New_R << endl << "\n";
else
cout << " This List wasn't updated " << endl << "\n";
void Switch_List(void)//19
char choice = 1;
cout << " Switch List " << endl;
cout << " Two Types Switch We use \n 1 : D-Link , \n 2 : Cisco " << endl;
cout << " Total Cisco Switch List is : 88 " << endl;
cout << " Total D-Link Switch List is : 24 " << endl;
cout << " Press 1 For Cisco Switch " << endl;
cout << " Press 2 For D-Link Switch " << endl;
switch (choice)
case '1':
cout << " Add New Cisco Switch in List " << endl;
New_S = 88 + Switch;
if (New_S>88)
cout << " The List has been Updated, Now Switch are : " << New_S << endl <<
"\n";
else
cout << " This List wasn't updated " << endl << "\n";
break;
case '2':
cout << " Add New D-Link Switch in List " << endl;
New_S = 24 + Switch;
if (New_S>24)
cout << " The List has been Updated, Now Switch are : " << New_S << endl <<
"\n";
else
cout << " This List wasn't updated " << endl << "\n";
break;
}
void Equipment_form(void)//20
string;
int Price;
cout << " Enter Your Department Name " << endl;
cout << " Enter Your Budge Amount " << endl;
cout << " Enter your Equipment Name " << endl;
cout << " Enter your Equipment Price " << endl;
cout << " Signature of Your Head of Department && CEO " << endl;
void Calculator(void)//21
{
cout << "Calculator" << endl << "\n";
void Addition(void)//22
int Add, a, b;
cout << "Enter the number for addition " << endl;
cin >> a;
cin >> b;
Add = a + b;
cout << " Answer : " << Add << endl << "\n";
void Subtraction(void)//23
int sub, a, b;
cout << " Enter the number for Subtraction " << endl;
cin >> a;
cin >> b;
sub = a - b;
cout << " Answer : " << sub << endl << "\n";
void Division(void)//24
int Div, a, b;
cout << " Enter the Number for Division " << endl;
cout << "Enter the Number " << endl;
cin >> a;
cin >> b;
Div = a / b;
cout << " Answer : " << Div << endl << "\n";
void Multiplication(void)//25
int multi, a, b;
cin >> a;
cin >> b;
multi = a*b;
cout << " Answer : " << multi << endl << "\n";
int main()
pointA:
char choice;
cout << " Enter '1' For Industry " << endl;
cout << " Enter '2' For Management of IT Department " << endl;
cout << " Enter '3' For Server list " << endl;
cout << " Enter '4' For Server Management " << endl;
cout << " Enter '5' For Computer management " << endl;
cout << " Enter '6' For Netwroking " << endl;
cout << " Enter '7' For Website Access " << endl;
cout << " Enter '8' For Cloud Server Access " << endl;
cout << " Enter '9' For Cloud Server Details " << endl;
cout << " Enter '10' For Mail Server " << endl;
cout << " Enter '11' For Printer Server " << endl;
cout << " Enter '12' For Firewall " << endl;
cout << " Enter '13' For Cameras_Server " << endl;
cout << " Enter '14' For Find Current Users List " << endl;
cout << " Enter '15' For Laptops List " << endl;
cout << " Enter '16' For Computers List " << endl;
cout << " Enter '17' For Projectors List " << endl;
cout << " Enter '18' For Router List " << endl;
cout << " Enter '19' For Switch List " << endl;
cout << " Enter '20' For Equipment Form " << endl;
cout << " Enter '21' For Simple Calculator " << endl;
cout << " Enter '22' For Addition " << endl;
cout << " Enter '23' For Subtraction " << endl;
cout << " Enter '24' For Division " << endl;
cout << " Enter '25' For Multiplication " << endl << "\n";
switch (choice)
case 1 :
Industry();
break;
case 2 :
Management_Of_IT_Department();
break;
case 3 :
Servers_List();
break;
case 4 :
Server_Management();
break;
case 5 :
Computer_Management();
break;
case 6 :
Networking();
break;
case 7 :
Website_Access();
break;
case 8 :
Cloud_Server_Access();
break;
case 9 :
Cloud_Server_Details();
break;
case 10 :
Mail_Server();
break;
case 11 :
Printer_Server();
break;
case 12 :
Firewall();
break;
case 13 :
Cameras_Server();
break;
case 14 :
Users_List();
break;
case 15 :
Laptops_List();
break;
case 16 :
Computers_List();
break;
case 17 :
Projector_List();
break;
case 18 :
Router_List();
break;
case 19 :
Switch_List();
break;
case 20 :
Equipment_form();
break;
case 21 :
Calculator();
break;
case 22 :
Addition();
break;
case 23 :
Subtraction();
break;
case 24 :
Division();
break;
case 25 :
Multiplication();
break;
_getch();
goto pointA;