11) Write a program to get marks of any 5 subjects and to get total marks with percentage and division.
solution is here
12) Write a program to read annual salary of an employee and decide tax withheld as follos.
salary tax
<=100000 0%
upto 150000 15%
above 150000 25%
click to see solution
13)Write a program to input cost price and selling price and determine whether there is loss or profit
click to see solution
14)Write a program to read age of person and find out the category among following according to age.
category age
child 0 to 12
teenage 13 to 19
adult life 20 to 30
mature life 31 to 50
old age over 50
click to see solution
15) A company pays its employee on hourly basis.If an employee works for 8rs hours he gets 100/hr
, and 120/hr for additional hours.Write a program to read working hours of an employee and calculate total salary.
click to see solution
16)Write a program to display name of day on the basis of entered number
. for example, 2 for Monday. click to see solution
17) A company provides commission on the basis of total sales as follows.
sales<10000-------------------------------->no commission
sales >=10000 and <100000------------->5% commission
sales>100000 ---------------->10%commission
click to see solution
18)Write a program to get greatest value among three numbers using nested if.
click to see solution
19)A book store gives 10% discount to a buyer if the buyer buys books more than Rs 1000.Write a program to asking the cost of books and calculate discount amount.
click to see solution
click to next page for more programs' collection
solution is here
12) Write a program to read annual salary of an employee and decide tax withheld as follos.
salary tax
<=100000 0%
upto 150000 15%
above 150000 25%
click to see solution
13)Write a program to input cost price and selling price and determine whether there is loss or profit
click to see solution
14)Write a program to read age of person and find out the category among following according to age.
category age
child 0 to 12
teenage 13 to 19
adult life 20 to 30
mature life 31 to 50
old age over 50
click to see solution
15) A company pays its employee on hourly basis.If an employee works for 8rs hours he gets 100/hr
, and 120/hr for additional hours.Write a program to read working hours of an employee and calculate total salary.
click to see solution
16)Write a program to display name of day on the basis of entered number
. for example, 2 for Monday. click to see solution
17) A company provides commission on the basis of total sales as follows.
sales<10000-------------------------------->no commission
sales >=10000 and <100000------------->5% commission
sales>100000 ---------------->10%commission
click to see solution
18)Write a program to get greatest value among three numbers using nested if.
click to see solution
19)A book store gives 10% discount to a buyer if the buyer buys books more than Rs 1000.Write a program to asking the cost of books and calculate discount amount.
click to see solution
click to next page for more programs' collection
No comments:
Post a Comment