0

(only C program) plz help in this

students of your class ride their vehicles to reach University, the distances from their homes and time taken to reach are recorded. University issued the guidelines mentioned speed limit of m Kmph for safe driving. On the basis of your class data you have to print whether your class is following university guidelines or not.

13th Dec 2020, 1:36 PM
Sumit Kumar
Sumit Kumar - avatar
3 Answers
+ 1
I think you can do this without the arrays, except you were told to save those data. But there's no input for student names, there's no point in saving the distance, times and speed without knowing which student's record it is. Did the task specify units for distance and time? is it in kM or miles, and hour or minute? this must be cleared first.
13th Dec 2020, 2:30 PM
Ipang
+ 2
The task ignores traffic jam possibility? time taken will be different between when traffic is fluid and when traffic is jammed right? Anyway, where is your code? don't tell me you haven't tried anything. ..
13th Dec 2020, 1:55 PM
Ipang
0
#include <stdio.h> output int main() { float dis[100], tim[100], speed[100]; int n, count=0, m; printf("Enter number of students of the class: "); scanf("%d",&n); printf("Enter the speed decided by the university in kmph: "); scanf("%d",&m); this is what i am able to do till now dont know what to approach for next and no traffic
13th Dec 2020, 2:08 PM
Sumit Kumar
Sumit Kumar - avatar