Question: java (Algorithm programming) Q4. (7 marks) CLO 1 Translate the following steps into a Java program. 1. Get the maximum speed allowed and save it
java (Algorithm programming)
Q4. (7 marks) CLO 1 Translate the following steps into a Java program. 1. Get the maximum speed allowed and save it into maxSpeed 2. Get the minimum speed allowed and save it into minSpeed 3. Get the car speed and save it into carSpeed 4. If the car speed is more the maximum speed, then i) Display Over speeding" ii) Display Reported to the police" 5. Otherwise if speed more than minimum speed i) Display Good driving 6. Otherwise i) Display "Speed up 7. Display Safe trip 4/5
Step by Step Solution
There are 3 Steps involved in it
To translate the given steps into a Java program we can follow these steps java import java util Sca... View full answer
Get step-by-step solutions from verified subject matter experts
