You are on page 1of 2

ASSIGNMENT 01

Question 01:
Create a BMI calculator application that reads the user’s weight in pounds and height in inches
(or, if you prefer, the user’s weight in kilograms and height in meters), then calculates and
displays the user’s body mass index. Also, the application should display the following
information from the Department of Health and Human Services/National Institutes of Health so
the user can evaluate his/her BMI:
BMI Values
Underweight: less than 18.5
Normal: between 18.5 & 24.9
Overweight: between 25 & 29.9
Obese: 30 or greater
Formula for calculating BMI is as follow:

BMI = weight in kilograms


height in meters ∗ height in meters

Or

BMI = weight in pounds ∗ 703


height in inches ∗ height in inches

Question 02:

Create a C++ program to print formatted output as below. (Hint: use the tab and newline escape
sequences discussed in class)
Question 03:
Write a program that asks user to give number of students in the class. Maximum number of
students in a class can be 10. Then calculate average GPA of the class by asking GPA of each
student from the user and displays the Class Average.
Question 04:
A machine is purchased which will produce earning of Rs. 3000 per year while it lasts. The
machine costs Rs. 15000 and will have a salvage value of Rs. 3000 when it is condemned. If 11%
per annum can be earned on alternate investments, write a program to determine what will be the
minimum life of the machine to make it a more attractive investment compared to alternative
investment?
Question 05:
Write a C++ program to calculate the area of an ellipse having its axes (minor = 4cm, major = 6cm).

Submission Deadline & Instructions:

8th March, 2022. Submit all five source code files (Q1.cpp , Q2.cpp , Q3.cpp, Q4.cpp, Q5.cpp)
on your respective google classroom within the given deadline.
NOTE: LATE SUBMISSION IS NOT ALLOWED

You might also like