Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started