Welcome
I have small project but I can't understand it.
I hope from the members help me in this.
thank you
--------------------------------------------------------
Q:
Problem:
You’re writing code for an embedded processor for automobile safety. In the final system the car speed will be detected automatically, but in your sample program you will ask the user to input a code indicating the speed. Your system will then display a safety message.

You must have three functions/procedures:

1. A main control procedure.

2. A procedure asking the user to input code indicating speed (km/h) or the exit code.
A or a: 0 – 30
B or b: 31- 75
C or c: 76- 120
D or d: 120+
E or e: exit

3. A procedure which will display a message based on the code obtained above.
For A: Beware of people and cars. Obey lane rules. Park legally.
For B: Watch out for red light or stop sign at next intersection.
For C: Go 10km/h slower and arrive safely only about 3 minutes later.
For D: Don’t kill someone.
For E: Drive safely, goodbye

Recommended Answers

All 3 Replies

Thank you Mr.Salem
I want to say to you I try many times but I can't solve.
if you can help me I want that.

I'm not asking you to post the whole answer, just an honest attempt at trying to solve it yourself.

Then we can help you with what's really bugging you and not as it would seem at the moment, looking for a free pass.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.