Answered step by step
Verified Expert Solution
Link Copied!

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 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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions

Question

69 Needs assessment and analysis.

Answered: 1 week ago