1.
Given
three numbers A, B, and C, write a program to write their values in an
ascending order. For example,
if A=12,
B=10 and C=15,
Your program should print out:
Smallest number = 10
Next highest
number = 12
Highest number = 15
2.
Write
a short program to calculate simple interest.
3.
Write
a short program to convert a lowercase character to uppercase.
4.
Write
a short program to find whether the given character is digit or a letter.
5.
A Program to check number is positive and how many digits number have?
6.
Write a c++ program that inputs the experience and
the age of a person. The salary of the person is 6000 if the person is
experienced and his age is more than 35, otherwise if the person is experienced
and his age is more than 28 but less than 35 then the salary should be 4800
otherwise for experienced person the salary should be 3000 and for the
inexperienced person, the salary should be 2000.
7.
A computer contest requires teams of 5 members each.
Write a program that asks for the number of players, and then gives the number
of teams and no of players left over.
8.
Write a program in c++ to accept monthly salary from
the user, find and display income tax with the help of the following rules:
MONTHLY
SALARY
INCOME TAX
9000 or More 40%
of the monthly salary
7500-8999
30% of the monthly salary
7499 or
less 20% of the monthly salary
9.
An electricity board charges according to the
following rules:
For the first 100 units- 40P per
unit (P- paise)
For the next 200 units-50P per unit
Beyond 300 units-60P per unit.
All users have to pay meter charge
also, which is Rs.50/-
10. Write a program to read the number of units
consumed and print out the charges.
Computech company has ninety-six employees who are
divided into four grades as per their basic pay as the following:
GRADE 1 Basic: Rs.10,000 p.m. or more
D.A. : 40% of Basic
H.R. : 30% of
Basic
GRADE 2 Basic : Rs. 5,000 p.m. or more but
less than Rs. 10,000
D.A. :40% of Basic
H.R. : 25% of
Basic
GRADE 3 Basic : Less than Rs 5,000 but
more than Rs 2,000
D.A. : 30% of
Basic
H.R. : 20% of
Basic
GRADE 4 Basic: Rs 2,000 p.m. or less
D.A. : 30% of
Basic
H.R. : 15% of
Basic
If the salary, which
is total of Basic, D.A. and H.R.A. is above Rs 50,000 per annum then income tax at the rate of 30% of the
annual salary exceeding Rs 50,000 is deducted on monthly basis at source.
Taking name of the employee and the basic (monthly) pay as inputs, a pay slip
for each employee is to be printed. Write a c++ programme to perform the job.
11. A Computerized ticket
counter of an underground metro station charges for each ride at the following
rate :
AGE
AMOUNT/HEAD
18 or above
Rs 5
5 or above but below 18 Rs
3
Accompanying kids below 5 Nil
Write a c++ programme, which takes
as input the number of people of various age groups and prints a ticket.
At the end of the journey, the
program states the number of passengers of different age groups who travelled
and the total amount received as collection of fares .