Professional Documents
Culture Documents
#include <windows.h>
using namespace std;
int main()
string
address,baranggay,streetnumber,streetnam
e,city,postal,contact,email;
string
emname,elname,efname,gender,civilstatus,
month,day,year;
//case d
{
char again;
//case a
string ename;
float hwork;
float tax = 0.12;
float sss = 0.104,sssdeduct;
float philhealth =
0.025,philhealthdeduct;
int sec;
int min;
int hour;
double farenheit;
double celcius;
double inch;
float grosspay;
double cm;
float deduction;
char selectUnitConv;
float totalsalary;
char selectPay;
char selectTimeConv;
//case b
string
sno,slastname,sfirstname,final,remarks;
int selectConv;
int secConv;
int prelim,midterm,finals;
float average,equivalent;
string username,result,password;
cout<<"Username: ";
//case c
cin>>username;
cout<<"Password: ";
Sleep(1000);
cin>>password;
system("cls");
break;
}
system("cls");
cout<<"Success\n";
else
{
Sleep(1000);
cout<<"Error\n";
system("cls");
Sleep(500);
system("cls");
else
{
cout<<"Error\n";
Sleep(500);
system("cls");
}
}
char choice;
cout<<"[A]Payroll\n";
while(1==1)
{
cout<<"[B]Student Record\n";
cout<<"[C]Employee Record\n";
cout<<"Username: ";
cin>>username;
cout<<"Password: ";
cin>>password;
if(username =="username" && password
== "password")
{
system("cls");
cout<<"Success\n";
cout<<"[D]Conversion\n";
cout<<"[E]Exit\n";
cout<<"Enter your Choice: ";
cin>>choice;
switch(choice)
{
case 'a' :
{
";
cin>>again;
system("cls");
if(again=='y')
{
return main();
cin>>hwork;
}
grosspay = hwork * 56;
sssdeduct = grosspay * sss;
if(again=='n')
{
system("exit");
philhealthdeduct = grosspay *
philhealth;
deduction = philhealthdeduct +
sssdeduct;
break;
}
case 'b':
{
system("cls");
equivalent = 2.75;
cin>>sfirstname;
remarks ="PASSED";
}
if((average>=79)&&(average<=81))
cin>>prelim;
equivalent = 2.50;
remarks ="PASSED";
cin>>midterm;
if((average>=82)&&(average<=85))
cin>>finals;
{
equivalent = 2.25;
average = (prelim*0.30)+
(midterm*0.30)+(finals*0.40);
remarks ="PASSED";
}
if((average>=86)&&(average<=88))
equivalent = 2.0;
equivalent = 5.0;
remarks = "FAILED";
remarks ="PASSED";
}
if((average>=89)&&(average<=91))
if(average == 75)
equivalent = 1.75;
equivalent = 3.0;
remarks ="PASSED";
remarks ="PASSED";
}
if((average>=92)&&(average<=94))
{
if((average>=76)&&(average<=78))
{
equivalent =1.5;
remarks ="PASSED";
}
if((average>=96)&&(average<=95))
cout<<"Equivalent:
"<<equivalent<<endl;
cout<<"Remarks:
"<<remarks<<endl;
{
equivalent =1.25;
remarks ="PASSED";
cin>>again;
if((average>=97)&&(average<=100))
{
system("cls");
if(again=='y')
equivalent = 1.0;
remarks ="PASSED";
}
return main();
}
if(again=='n')
{
system("exit");
cout<<"StudentNumber\tLastname\tFirstna
me\tPrelim\tMidterm\tFinals"<<endl;
cout<<"\t"<<sno;
break;
}
cout<<"\t"<<slastname;
cout<<"\t"<<sfirstname;
cout<<"\t";
cout<<"\t"<<prelim;
cout<<"\t"<<midterm;
case 'c':
cout<<"\t"<<finals;
cout<<"\n";
cout<<"Average:
"<<average<<endl;
{
system("cls");
cout<<"Personal Information\n";
cout<<"Employee Last Name: ";
cin>>elname;
cin>>streetname;
cin>>efname;
cin>>baranggay;
cout<<"City/Municipality: ";
cin>>emname;
cin>>city;
cout<<"Gender: ";
cin>>gender;
cin>>postal;
cin>>civilstatus;
cin>>contact;
cout<<"Date of Birth"<<endl;
cout<<"Month: ";
cin>>email;
cin>>month;
cout<<"Day: ";
system("cls");
cin>>day;
cout<<"Year: ";
cout<<"Personal Information\n";
cin>>year;
cout<<"Surname: "<<elname<<endl;
cout<<"First Name: "<<efname<<endl;
cout<<"Middle Name:
"<<emname<<endl;
system("cls");
cout<<"Contact Details\n";
cout<<"Address (No Space
Allowed)\n(Capital Letter first in every
accepting information)\n";
cout<<"Enter House/Building/Street
Number: ";
cin>>streetnumber;
cout<<"Street Name: ";
cout<<"Gender: "<<gender<<endl;
cout<<"Civil Status: "<<civilstatus<<endl;
cout<<"Date of Birth: "<<month<<"
"<<day<<" "<<year;
cout<<"\n\n";
cout<<"Contact Details\n";
cout<<"Address: "<<streetnumber<<"
"<<streetname<<" "<<baranggay<<"
"<<city<<endl;
cout<<"Postal Code: "<<postal<<endl;
cout<<"\n \n \t \t \t CONVERTION
PROGRAM" <<endl;
cout<<"Contact Number:
"<<contact<<endl;
Sleep(1000);
system("cls");
cout<<"Email Address:
"<<email<<endl<<endl;
int choose1;
char choose;
cout<<"Do you want to try again??[y]/[n] :
";
cin>>again;
system("cls");
if(again=='y')
<< endl;
return main();
if(again=='n')
break;
}
switch(choose1) { //SWITCH IN
CASE 'D'
case 1:
}
case 'd':
system("cls");
int inch;
int heightInches;
case 2: {
// CASE '2'
FAHRENHEIGHT DEGREE
char choose;
float f,c;
char choose;
system("cls");
//
c = (f-32)/1.8; {
THE PROGRAM
//COMPUTATING
cout<<"\nCELSIUS DEGREE =
"<<c<<endl;}
system("cls");
float degree,c;
char choose;
cout << "\ntry again? y/n ? : ";
cin >> choose;
case 'e':
{
system("cls");
break;
Sleep(1000);
system("cls");
default:{
char choose;
Sleep(1000);
system("cls");
cout<<"System will Terminate in
3\n";
Sleep(1000);
system("cls");
cout<<"System will Terminate in
2\n";
Sleep(1000);
system("cls");
cout<<"System will Terminate in
1\n";
Sleep(1000);
system("cls");
system("exit");
}
}
}
}