Code:

#include <stdio.h>
#include <conio.h>
int main ()
{
#define p printf
#define s scanf
char choice,answer,ch1,ch2,ch3,ch4,ch5,tfname[20],tlname[20],fname[20],lname[20];
char section,subject,ch6,ch7,ch8,ch9,ch10;
char choice3,higher,middle,lower;
float position,workinghours,hourlyrate,overtimepay,grossincome,netincome;
float tax,sss,philhealth,td;
float undertime,overtime;
float cel,fahr,temp1,temp2;
int age,choice2,celcius,fahrenheit,positive,odd;
int no=0;
clrscr();
do
{
p("Final Exam in IT 121\n");
p("Prepared By:\n");
p("Name: Michael Lano\n");
p("Name: Lenelyn Tud\n");
p("==========================================\n");
p("[A] Age\n");
p("[N] Number\n");
p("[T] Temperature\n");
p("[R] Remarks\n");
p("[P] Payroll\n");
p("[E] Exit\n");
p("\nEnter Your Choice:");
s("%s",&choice);
ch1='a';
ch2='t';
ch3='n';
ch4='p';
ch5='r';
ch6='A';
ch7='T';
ch8='N';
ch9='P';
ch10='R';
clrscr();
if(choice==ch1 || choice==ch6)
{
p("Age\n");
p("Please Enter Your Age:");
s("%d",&age);
if(age>=18)
{
p("You Are Qualified");
}
else
{
p("You Are Not Qualified");
}
}
if(choice==ch2 || choice==ch7 )
{
p(" Temperature\n");
p("[1] Fahrenheit to Celcius\n");
p("[2] Celcius to Fahrenheit\n");
p("Enter Your Choice:");
s("%d",&choice2);
fahrenheit=1;
celcius=2;
if(choice2==fahrenheit)
{
p(" Fahrenheit to Celcius\n\n");
p("Enter Temperature in Fahrenheit:");
s("%f",&temp1);
cel=((temp1-32)*5)/9;
p("\n\n");
p("Equivalent in Celcius:%.2f\n",cel);
}
else if(choice2==celcius)
{
p(" Celcius To Fahrenheit\n");
p("Enter Temperature in Celcius:");
s("%f",&temp2);
fahr=((temp2*9)/5)+32;
p("Equivalent in Fahrenheit:%.2f\n",fahr);
}
}
if(choice==ch3 || choice==ch8)
{
p("Numbers\n");
p("[1] Positive & Negative\n");
p("[2] Odd & Even\n");
p("Enter Your Choice:");
s("%d", &choice2);
positive=1;
odd=2;
if(choice2==positive)
{
p("Positive & Negative\n");
p("Enter Number:");
s("%d", &no);
if(no>0)
{
p("Positive");
}
else if(no<0)
{
p("Negative");
}
else
{
p("Zero");
}
}
else if(choice2==odd)
{
p("ODD & EVEN\n");
p("Enter Number:");
s("%d",&no);
if ((no%2)==0)
{
p("Even");
}
else
{
p("ODD");
}
}
}
if(choice==ch4 || choice==ch9)
{
p("Positio\n");
p("[1]higher\n");
p("[2]Middle\n");
p("[3]lower\n");
p("Enter Your Choice:");
s("%d", &choice3);
higher=1;
middle=2;
lower=3;
if(choice3==higher)
{
p("Enter Your Name:");
s("%s %s",&fname,lname);
p("Enter Your Working Hours:");
s("%f", &workinghours);
p("Enter Hourly Rate:");
s("%f",&hourlyrate);
if(workinghours>40)
{
p("\n");
p("Name:%s %s\n",fname,lname);
p("Position:Higher\n");
p("Hourly Rate: %.0f\n",hourlyrate);
overtime=workinghours-40;
p("Overtime :%.0f\n",overtime);
p("Undertime : --zero--\n");
overtimepay=(workinghours-40)*(hourlyrate);
p("Overtime Pay:%.2f\n",overtimepay);
grossincome=(workinghours*hourlyrate)+overtimepay;
p("Gross Income:%.2f\n\n",grossincome);
tax=grossincome*.12;
p("Tax:%.2f\n\n",tax);
sss=grossincome*.08;
p("SSS:%.2f\n\n",sss);
philhealth=grossincome*.0125;
p("Philhealth:%.2f\n\n",philhealth);
td=tax+sss+philhealth;
p("Total Deduction:%.2f",td);
netincome=grossincome-td;
p("Net Income:%.2f\n\n",netincome);
}
else if (workinghours<=8)
{
p("\n");
p("Name:%s %s\n",fname,lname);
p("Position:Higher\n");
p("Hourly Rate: %.0f\n",hourlyrate);
p("Overtime :--zero--\n",overtime);
undertime=workinghours-8;
p("Undertime : %.0f\n",undertime);
p("Overtime Pay:--zero--\n",overtimepay);
grossincome=workinghours*hourlyrate;
tax=grossincome*.12;
p("TAX:%.2f\n\n",tax);
sss=grossincome*.08;
p("SSS:%.2f\n\n",sss);
philhealth=grossincome*.0125;
p("PHILHEALTH:%.2f\n\n",philhealth);
td=tax+sss+philhealth;
netincome=grossincome-td;
p("Total Deduction:%.2f\n\n",td);
p("Net Income:%.2f\n\n",netincome);
}
else
{
p("\n");
p("Name:%s %s\n",fname,lname);
p("Position:Higher\n");
p("Hourly Rate: %.0f\n",hourlyrate);
p("Overtime:--zero--\n");
p("Undertime ::--zero--\n");
p("Overtime Pay:--zero--\n");
grossincome=workinghours*hourlyrate;
tax=grossincome*.12;
p("TAX:%.2f\n\n",tax);
sss=grossincome*.08;
p("SSS:%.2f\n\n",sss);
philhealth=grossincome*.0125;
p("PHILHEALTH:%.2f\n\n",philhealth);
td=tax+sss+philhealth;
netincome=grossincome-td;
p("Total Deduction:%.2f\n\n",td);
p("Net Income:%.2f\n\n",netincome);
}
}
if(choice3==middle)
{
p("Enter Your Name:");
s("%s %s",&fname,lname);
p("Enter Your Working Hours:");
s("%f",&workinghours);
p("Enter Hourly Rate:");
s("%f",&hourlyrate);
if(workinghours>40)
{
p("\n");
p("Name:%s %s\n",fname,lname);
p("Position:Middle\n");
p("Hourly Rate: %.0f\n",hourlyrate);
overtime=workinghours-40;
p("Overtime :%.0f\n",overtime);
p("Undertime : --zero--\n");
overtimepay=(workinghours-40)*(hourlyrate);
p("Overtime Pay:%.2f\n",overtimepay);
grossincome=(workinghours*hourlyrate)+overtimepay;
p("Gross Income:%.2f\n\n",grossincome);
tax=grossincome*.12;
p("Tax:%.2f\n\n",tax);
sss=grossincome*.08;
p("SSS:%.2f\n\n",sss);
philhealth=grossincome*.0125;
p("Philhealth:%.2f\n\n",philhealth);
td=tax+sss+philhealth;
p("Total Deduction:%.2f",td);
netincome=grossincome-td;
p("Net Income:%.2f\n\n",netincome);
}
else if (workinghours<=8)
{
p("\n");
p("Name:%s %s\n",fname,lname);
p("Position:Middle\n");
p("Hourly Rate: %.0f\n",hourlyrate);
p("Overtime :--zero--\n",overtime);
undertime=workinghours-8;
p("Undertime : %.0f\n",undertime);
p("Overtime Pay:--zero--\n",overtimepay);
grossincome=workinghours*hourlyrate;
tax=grossincome*.12;
p("TAX:%.2f\n\n",tax);
sss=grossincome*.08;
p("SSS:%.2f\n\n",sss);
philhealth=grossincome*.0125;
p("PHILHEALTH:%.2f\n\n",philhealth);
td=tax+sss+philhealth;
netincome=grossincome-td;
p("Total Deduction:%.2f\n\n",td);
p("Net Income:%.2f\n\n",netincome);
}
else
{
p("\n");
p("Name:%s %s\n",fname,lname);
p("Position:Middle\n");
p("Hourly Rate: %.0f\n",hourlyrate);
p("Overtime:--zero--\n");
p("Undertime ::--zero--\n");
p("Overtime Pay:--zero--\n");
grossincome=workinghours*hourlyrate;
tax=grossincome*.12;
p("TAX:%.2f\n\n",tax);
sss=grossincome*.08;
p("SSS:%.2f\n\n",sss);
philhealth=grossincome*.0125;
p("PHILHEALTH:%.2f\n\n",philhealth);
td=tax+sss+philhealth;
netincome=grossincome-td;
p("Total Deduction:%.2f\n\n",td);
p("Net Income:%.2f\n\n",netincome);
}
}
if(choice3==lower)
{
p("Enter Your Name:");
s("%s %s",&fname,lname);
p("Enter Your Working Hours:");
s("%f",&workinghours);
p("Enter Hourly Rate:");
s("%f",&hourlyrate);
if(workinghours>40)
{
p("\n");
p("Name:%s %s\n",fname,lname);
p("Position:Middle\n");
p("Hourly Rate: %.0f\n",hourlyrate);
overtime=workinghours-40;
p("Overtime :%.0f\n",overtime);
p("Undertime : --zero--\n");
overtimepay=(workinghours-40)*(hourlyrate);
p("Overtime Pay:%.2f\n",overtimepay);
grossincome=(workinghours*hourlyrate)+overtimepay;
p("Gross Income:%.2f\n\n",grossincome);
tax=grossincome*.12;
p("Tax:%.2f\n\n",tax);
sss=grossincome*.08;
p("SSS:%.2f\n\n",sss);
philhealth=grossincome*.0125;
p("Philhealth:%.2f\n\n",philhealth);
td=tax+sss+philhealth;
p("Total Deduction:%.2f",td);
netincome=grossincome-td;
p("Net Income:%.2f\n\n",netincome);
}
else if (workinghours<=8)
{
p("\n");
p("Name:%s %s\n",fname,lname);
p("Position:Middle\n");
p("Hourly Rate: %.0f\n",hourlyrate);
p("Overtime :--zero--\n",overtime);
undertime=workinghours-8;
p("Undertime : %.0f\n",undertime);
p("Overtime Pay:--zero--\n",overtimepay);
grossincome=workinghours*hourlyrate;
tax=grossincome*.12;
p("TAX:%.2f\n\n",tax);
sss=grossincome*.08;
p("SSS:%.2f\n\n",sss);
philhealth=grossincome*.0125;
p("PHILHEALTH:%.2f\n\n",philhealth);
td=tax+sss+philhealth;
netincome=grossincome-td;
p("Total Deduction:%.2f\n\n",td);
p("Net Income:%.2f\n\n",netincome);
}
else
{
p("\n");
p("Name:%s %s\n",fname,lname);
p("Position:Middle\n");
p("Hourly Rate: %.0f\n",hourlyrate);
p("Overtime:--zero--\n");
p("Undertime ::--zero--\n");
p("Overtime Pay:--zero--\n");
grossincome=workinghours*hourlyrate;
tax=grossincome*.12;
p("TAX:%.2f\n\n",tax);
sss=grossincome*.08;
p("SSS:%.2f\n\n",sss);
philhealth=grossincome*.0125;
p("PHILHEALTH:%.2f\n\n",philhealth);
td=tax+sss+philhealth;
netincome=grossincome-td;
p("Total Deduction:%.2f\n\n",td);
p("Net Income:%.2f\n\n",netincome);
}
}
if(choice==ch5 || choice==ch10)
{
p("REMARKS\n");
p("Enter Your Name:");
s("%s %s\n",&fname,lname);
p("Enter Your Section:");
s("%s %s\n",§ion);
p("Enter Your Subject:");
s("%s",&subject);
p("Enter Your Teacher:");
s("%s %s\n", &tfname,tlname);
p("Enter Grade:");
s("%f",&subject);
clrscr();
p("------------------------------------\n");
}
else
{
p("1");
}
}
else
{
p("2\n");
}
p("\nWould you like to try again?[Y/N]:");
answer=getch();
clrscr();
}
while(answer=='y' || answer=='Y');
exit();
getch();
}

i did not finish on part of remarks