•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Assembly section within the Software Development category of DaniWeb, a massive community of 396,965 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 2,911 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:
Views: 450 | Replies: 3
![]() |
| |
•
•
Join Date: Mar 2008
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
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
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
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
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.
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.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Assembly Marketplace
Similar Threads
- Please some one write this program (C++)
- How can I write this program. (C++)
- How can I write a program with 3 classes? (C)
- How to write a program using a stack (C++)
- how to write a program for power (C)
- Trying to write a program that you can enter #s and multiply at the end. (Java)
- write a program that simulates rooling a pair of dice. (Java)
Other Threads in the Assembly Forum
- Previous Thread: mc68k add integers
- Next Thread: C++ Multiplication in Assembly



Hybrid Mode