Question: (a) Write a program in C to create a text file named bmi.txt and store the data from the following table. Matric No 20187 20202

(a) Write a program in C to create a text file named bmi.txt and store the data from the following table. Matric No 20187 20202 20359 20498 20573 20617 Height (m) 1.77 1.83 1.55 1.68 1.60 1.59 Weight (kg) 76.9 81.2 43.0 57.5 70.3 62.8 (b) Write a program in C to read the data from the file bmi.txt and calculate the Body Mass Index (BMI) value for each student. BMI = Weight / Height Print your result in the following format: Matric No Height (m) Weight (kg) BMI
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
