Question: Create a program that reports car speed issues on a Texas highway. This program can be coded in many valid ways. MPH = Miles Per
Create a program that reports car speed issues on a Texas highway. This program can
be coded in many valid ways. MPH Miles Per Hour
Create a variable to store a speed limit Prompt for this value expecting a range of
Create a variable to store your current speed. Prompt for this value.
Program the following conditions.
A If the current speed is greater than the speed limit display "Car is currently
speeding.".
B If the current speed is or greater over the speed limit display "Car may
get a speeding ticket.".
C If the current speed is or less, display "Car may be too slow for safe
travel.".
Note: B does not replace A
The C Code ideally should closely follow the Raptor code.
PT Extra Credit:
After Step create a bool variable to store if the car is a patrol car. Prompt for this
e If true, display "Car is authorized at any speed" and refactor step to not display
messages for a patrol car. Tasks must be valid to apply the XC points.
Hint Enter for true and for false when prompting for a bool.
Deliverable is a Raptor Flowchart and a CPP program. I recommend doing the Raptor file
first If doing the Extra Credit the Raptor file must do the Extra Credit as well.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
