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 50-
75mph.
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 10mph or greater over the speed limit - display "Car may
get a speeding ticket.".
C. If the current speed is 35mph or less, display "Car may be too slow for safe
travel.".
Note: 3B does not replace 3A.
The C++ Code ideally should closely follow the Raptor code.
5 PT Extra Credit:
After Step 2, 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 3 to not display
messages for a patrol car. Tasks 1-3 must be valid to apply the XC points.
Hint - Enter 1 for true and 0 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.
 Create a program that reports car speed issues on a Texas

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!