User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Assembly section within the Software Development category of DaniWeb, a massive community of 428,203 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,217 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Assembly advertiser: Programming Forums
Views: 501 | Replies: 3
Join Date: Mar 2008
Posts: 4
Reputation: hassanawdah is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
hassanawdah hassanawdah is offline Offline
Newbie Poster

Can you help me to write this program?

  #1  
May 11th, 2008
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
AddThis Social Bookmark Button
Reply With Quote  

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Assembly Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Assembly Forum

All times are GMT -4. The time now is 3:15 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC