3/02/2011
last week nye class..
QUESTIONS :
1) Solve the question below
Solve the working
a) 5 * 2 % 3 + 25 / 5
b) a = 5 , b = 6
!(( a < 3 ) & & ( a = = 3 ) | | ( b > 9 ))
2) Identify the syntex error in the following program
include<iostream.h>
mai()
{
float allowance=300.00,salary;
cout<<''Input Salary=";
cin>salary;
Tsalary=Sallary+Allowance;
cout<<"salary is="<<salary;
}
3) Write a program that will calculate the monthly salary for an employee that where
Saturday and Sunday are considered as non-working days.
Saturday and Sunday are considered as non-working days.
4) Write a program that calculates the average of 5 numbers that can be input by user.
5) Write a program that will calculate the area of rectangular, triangle and circle.
No comments:
Post a Comment