Question: use repl.it (c solution) Write a working C program to calculate fines for speeding. The program will do the following: A user is prompted to

use repl.it (c solution) Write a working C program to calculate finesuse repl.it (c solution)

Write a working C program to calculate fines for speeding. The program will do the following: A user is prompted to enter a positive number representing a vehicle's speed. Use the variable speed to store entered data. The program will then determine the fine based on the following: 0 Fine is: $0 if between 0 - 80km/h o Fine is: $30 + $2.50 * (speed - 80) if speed is between 81 - 100km/h o Fine is: $100 + $5 * (speed - 100) if speed is above 100km/h If speeding fine is equal to zero (0) the following message is displayed on the screen: o Nothing to pay! If speeding fine is greater than zero (0), display a message with the speeding fine on the screen

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!