Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

This Python code is a basic simulator of a speed camera. It starts by asking the user to enter the speed of the car. It then checks whether the entered speed exceeds the speed limit of 80 km/h. If the speed is above this limit, the program calculates the fine based on the difference between the measured speed and the speed limit. The fine is made up of a fixed fee of 39.85 plus an additional fee of 7 times the difference between the measured speed and 80 km/h. The result is rounded to two decimal places and displayed on the screen. If the speed is within the limit, the program informs you that the vehicle is within the speed limit.

About

Basic knowledge test, developed in the second semester of Engineering.Application of the following topics: Output and Input command; Variables; Simple, compound, aligned and IF/ELIF/ELSE conditional structure; Arithmetic operators, assignment operator and relational operators.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages