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

(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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!