1. Ramesh’s basic salary is input through the keyboard.
His dearness allowance is 40% of basic salary, and
house rent allowance is 20% of basic salary. Write a
program to calculate his gross salary.
2. If the marks obtained by a student in five different
subjects, division and roll no are input through the
keyboard, find out the aggregate marks obtained by
the student. Assume that the maximum marks that
can be obtained by a student in each subject is 100.
3. A software company named Web solve has 1000
employees. The Company decided to give bonus to
all of its employees as per the following experience.
Calculate the bonus amount for the employee.
Experience Bonus
<=7 years 10% of basic
8-10 years 20% of basic
11-15 years 30% of basic
>15years 40% of basic
4. At a school math competition, the final round
involved adding two matrices representing the points
scored by two teams in a series of challenges. Matrix
A showed the points Team Alpha scored in the first 3
rounds, and Matrix B showed the points scored by
Team [Link] students were tasked with adding the
matrices to determine which team had the highest
overall score. The sum of the matrices revealed the
final outcome, and the team with the higher total
points was crowned the champion.
5. Mr. Ramesh is an employee who is working in a private
company. He has invested some amount in N different
shares. Apply PSF and write a modular C program to
read the amount invested in each share as well as the
current profit or loss in percentage for each share.
Calculate the total amount invested by Ramesh, total
amount he is getting now if he sells all the N shares,
total profit or loss.
6. Write a program to play a game using guess number
where user should take input as guess number and
guess count, guess limit and out of guesses will leads to
end of game and successful guess leads to win game.
7. A library charges a fine for every book returned late.
For first 5 days the fine is 50 paise, for 6-10 days fine
is one rupee and above 10 days fine is 5 rupees. If
you return the book after 30 days your membership
will be cancelled. Write a C program to accept the
number of days the member is late to return the book
and display the fine or the appropriate message.