Program 1:
{
int fnum = Convert.ToInt32([Link]);
int snum = Convert.ToInt32([Link]);
int tnum = Convert.ToInt32([Link]);
decimal total = fnum + snum + tnum;
[Link] = [Link]();
decimal average = total / 3;
[Link] = [Link]();
Program 2:
{
int price = [Link]([Link]);
decimal quantity = [Link];
decimal cost = price * quantity;
[Link] = [Link]();
decimal tax = price / 100;
[Link] = [Link]();
decimal actualcost = cost + tax ;
[Link] = [Link]();
Program 3:
{
Decimal salary = [Link]([Link]);
Decimal DA = salary / 100 * 30 ;
[Link] = [Link]();
Decimal HRA = salary / 100 * 12;
[Link] = [Link]();
Decimal PF = salary / 100 * 10;
[Link] = [Link]();
Decimal gross = salary + DA + HRA ;
[Link] = [Link]();
Decimal netpay = gross - PF ;
[Link] = [Link]();
}
{
[Link]();
}
{
[Link] = " ";
[Link] = " ";
[Link] = " ";
[Link] = " ";
[Link] = " ";
[Link] = " ";
Program 4:
{
[Link]();
if ([Link] == "FAMS")
{
[Link]("Accounting");
[Link]("Economics");
[Link]("Arabic");
[Link]("Hausa");
}
else
{
[Link]("computer science");
[Link]("cyber security");
[Link]("information technology");
[Link]("information system");
[Link]("software engineering");
}
}