Bài 1: Write a program to accept and add three numbers.
My Code |
Bài 2: For the following values, write a program to evaluate the expression:
z = a*b+(c/d)-e*f ;
a=10
b=7
c=15.75
d=4
e=2
f=5.6
My Code |
Bài 3: Write a program to evaluate the area and perimeter of the rectangle.
My Code
Final result:
|
Bài 4: Write a program to evaluate the volume of a cylinder.
My Code |
Final result:
Bài 5: Write a program to evaluate the net salary of an employee given the following constraints.
Basic salary : $ 12000
DA : 12% of Basic salary
HRA : $150
TA : $120
Others : $450
Tax cuts – a) PF :14% of Basic salary and b) IT: 15% of Basic salary
Net Salary = Basic Salary + DA + HRA + TA + Others – (PF + IT)
Basic salary : $ 12000
DA : 12% of Basic salary
HRA : $150
TA : $120
Others : $450
Tax cuts – a) PF :14% of Basic salary and b) IT: 15% of Basic salary
My Code |
Final result:
Bài học rút ra:
- Review lại các bài học trước và áp dụng vào những bài tập này
No comments:
Post a Comment