Question: Sample Input and Output: Test Case 1 : Please input truck 1 ' s mass: 4 4 2 5 Please input truck 2 ' s

Sample Input and Output:
Test Case 1:
Please input truck 1's mass:
4425
Please input truck 2's mass:
3906
Please input truck 2's velocity:
21.2
Please input the collision's velocity:
18.4
Please input the speed limit in kmh :
50
Please input the Last name, first name and driver license number for the driver of truck 1:
Doe, Jane, 12345
Jane Doe, Driver license number: 12345, was over the speed limit by 54.94kmh. They have
been fined $549.40
Test Case 2:
Please input truck 1's mass:
4425
Please input truck 2's mass:
3906
Please input truck 2's velocity:
21.2
Please input the collision's velocity:
18.4
Please input the speed limit in kmh :
110
Please input the Last name, first name and driver license number for the driver of truck 1:
Smith, John, 12345678
John Smith, Driver license number: 12345678, was not speeding!
 Sample Input and Output: Test Case 1: Please input truck 1's

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!