Page 105 - Modular_V1.1_Flipbook
P. 105
PROJECT WORK
Project 1 Inter-Disciplinary
Write a C++ program to convert the temperature given in Degree Celsius to Fahrenheit.
Project 2
Write a C++ program to take a number as input from the user and print a square of same
number of stars as shown:
* * * * * *
* *
* *
* *
* *
* *
* * * * * *
Project 3 Experiential Learning
Write a C++ program to take the age and basic salary of an employee as input from the user and
calculate the gross salary on the basis of the following criteria:
If the age of an employee is greater than 18 and less than 45 years, then the HRA will be
5% and DA will be 10%.
If the age of an employee is greater than 45 years and less than 55 years, then the HRA
will be 7% and DA will be 12%.
If the user enters age greater than 55 years, then the message “Invalid Details” will be
printed.
The final out will be as shown:
Hint:
if(age > 18 && age < 45)
{
HRA = bsalary * 5/100;
DA = bsalary * 10/100;
GrossSalary = bsalary + DA + HRA;
}
Project work 103

