Professional Documents
Culture Documents
Del Mundo, Harvey Jay U. - Activity5.1
Del Mundo, Harvey Jay U. - Activity5.1
Del Mundo, Harvey Jay U. - Activity5.1
del Mundo
CE3-6
CODE:
#include<stdio.h>
#include<conio.h>
main()
{
int BP, OT, HP, tax, GP;
clrscr();
GP = (BP+OT+HP);
tax = GP*0.05;
{
printf("\n\t The Gross Salary of an Employee is taxable of 5% and with the worth
of %d", tax);
}
else
{
printf("\n\t The Goss Salary of an Employee is NOT taxable");
}
}
OUTPUT:
Not Taxable:
Taxable:
2. Write a program that will send notification to Warehouse Manager when the
inventory of an item become less than 2. If the quantity of the item is greater than
2 then it will display a message of "It's sufficient! Number of items is <number>",
if not, it will send a notification "Need to purchase <name of the item>, quantity is
low!".
CODE:
#include<stdio.h>
#include<conio.h>
main()
{
int q;
char c[50];
clrscr();
if (q >=2 )
{
printf("\n\t Message: It's sufficient! Number of items is %d",
q);
}
else
{
printf("\n\t Need to purchase %s, quantity is low!", c);
}
OUTPUT:
Sufficient Quantity:
Need to purchase Quantity: