1. Write a program that converts Celsius temperature to Fahrenheit temperature. The program should ask the user to enter the temperature in Celsius. Then your program will calculate the value and display the Fahrenheit temperature. Use the formula below

2. A car's miles-per-gallon is calculated with the formula

MPG = Total miles driven / Gallons of gas used

Now ask the user to enter the total miles he/she drove and the number of gallons of gas was used to cover the distance and compute per gallon distance the can cover.

3. Write algorithm, pseudocode and draw flowcharts for age distribution problem. The program should display a message indicating whether the person is an infant, a child, a teenager or an adult. The following are the guidelines.

  • If a person is 1 year old or less, an infant
  • If a person older than 1 but younger than 13, a child
  • If a person at least 13 years old, but less than 20, a teenager
  • If a person is at least 20 years old, then an adult

4. Ask a user for height in inches and weight in the pound, then calculate body mass index (BMI),

BMI = weight X 703/height2

Then write a program to classify BMI,

  • If BMI is 18.4 and below, "Underweight"
  • BMI in between 18.5 - 24.9, "Optimal"
  • BMI in between 25.0 - 29.9, "Overweight"
  • BMI above 30.0, "Obese"
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.