Re-write the following program them after fixing the errors? Show the output and draw the flow diagram?
اللي يقدر يحل هدا السؤال لو سمجتوووووووو .هدا السؤال موووووجود في اخر سلايد في الباب الرابع
أنا حاولت ما قدرت اكمل الحل 10 error (يا حبيبي)
double fee(int speed) {
double money;
if (speed > 160)
money = 300.00;
else if (speed > 140)
money = 200.00;
else
money = 100.00;
return (money);
}
int main(void) {
double money;
double speed;
printf("What is the speed of the car:"); scanf("%d", &speed);
printf("Speed = %d, Ticket = %f\n", speed, fee(speed));
}