C Programming
Budget: $10 – $30 USD
(a) Construct a new file io.c using code block Write a program that will print the following output C Programming is fun.
. in your program, it should have a comment
. Screenshot the output displayed in the command prompt.
(b) Construct a C program average .c to find an average of five numbers. The average should be displayed up to two decimal places. Screenshot the output displayed in the command prompt.
(c) Ahmad has a weight of 60kg and height of 1.68m. Given an equation to find Body Mass Index (BMI) is BMI = Weight in kg (Height in m)2. An ideal BMI is in the 18.5 to 24.9 range. According to this statement, answer the followings:
i. Write an algorithm to compute Ahmad's BMI.
ii. illustrate a flowchart to compute Ahmad's BMI. if his BMI is ideal, output 'Your BMI is ideal, else, output 'Your BMI is not ideal'.
iii. Write a C program to compute Ahmad's BMI. If his BMI is ideal, output 'Your BMI is ideal, else, ,output 'Your BMI is not ideal'.
. in your program, it should have a comment
. Screenshot the output displayed in the command prompt.
(b) Construct a C program average .c to find an average of five numbers. The average should be displayed up to two decimal places. Screenshot the output displayed in the command prompt.
(c) Ahmad has a weight of 60kg and height of 1.68m. Given an equation to find Body Mass Index (BMI) is BMI = Weight in kg (Height in m)2. An ideal BMI is in the 18.5 to 24.9 range. According to this statement, answer the followings:
i. Write an algorithm to compute Ahmad's BMI.
ii. illustrate a flowchart to compute Ahmad's BMI. if his BMI is ideal, output 'Your BMI is ideal, else, output 'Your BMI is not ideal'.
iii. Write a C program to compute Ahmad's BMI. If his BMI is ideal, output 'Your BMI is ideal, else, ,output 'Your BMI is not ideal'.