473,509 Members | 2,946 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Data Structures

4 New Member
I have ask this questions before. but I still need some help. Can someone help me to see if I on track.

1. Write a pseudocode algorithm for dialing a phone number.

here are my pseudocode statements:

Statement 1: enter number to dial
Statement 2: 510637890
Statement 3: phone answer

IF enter ten number is true THEN
dial phone number
ELSE
do not dial phone number
ENDIF
Oct 8 '08 #1
6 3100
donbock
2,426 Recognized Expert Top Contributor
What is your question?
Oct 8 '08 #2
boxfish
469 Recognized Expert Contributor
What is your question?
Ditto. I don't see how your program is going to dial a phone number. It's not actually going to call anyone, right?
Edit:
Sorry, I see you're not actually supposed to write a program that does this. Are there any more specifications? Do you have to look at the piece of paper you wrote the number down on and dial each number individually? Do you have to pick up the phone and say hello? Is it a rotary telephone? Is there anything more to it than
1 dial phone number
2 put phone to ear
Oct 9 '08 #3
donbock
2,426 Recognized Expert Top Contributor
Is this meant to be pseudocode for how you place a phone call manually? If so, think through how you do it every day ...
What actions do you perform?
What are your decision points (things you wait for, places where you select different actions)?
What are the failure modes (what can go wrong, and how do you react)?
What is the criteria for success?
Oct 9 '08 #4
weaknessforcats
9,208 Recognized Expert Moderator Expert
There are more thane 3 steps to dialing a phione number:

1) pick up handset (or flip open the cell phone)
2) Is there a dial tone?
If NO do step x etc...
If YES do step y etc...

Other things to think about:
1) do you get a ring tone
2) was there an error reply, like number not in service
3) was the line busy
What do you do now?
4) there a voice mail answer
What do you do now?

etc...
Oct 9 '08 #5
lanfordc
4 New Member
Okay, I will try this again.

1) pick up handset (or flip open the cell phone)
2) Is there a dial tone?
If NO do step 4.
If YES do step 3
3) Enter 10 digit phone number (5101001234)
4) hang handset up (or close cell phone) repeat step 1.

There are more thane 3 steps to dialing a phione number:

1) pick up handset (or flip open the cell phone)
2) Is there a dial tone?
If NO do step 4.
If YES do step 3
3) enter 10 ditig phone
4) hang handset up(or close celll phone ) repete step 1.

Other things to think about:
1) do you get a ring tone
2) was there an error reply, like number not in service
3) was the line busy
What do you do now?
4) there a voice mail answer
What do you do now?

etc...
Oct 9 '08 #6
lanfordc
4 New Member
What is your question?
How write a pseudocode algorithm for dialing a phone number?

Can you give a name of a good book that can help with this data structures class. The book I hve is Data Structures (a Pseudocode Approach with C)
authors are Richard F. Gilberg and Behrouz A Forouzan.
Oct 9 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
478
by: hzy_104 | last post by:
Please recommend book on data structures for searching(c++)?
1
1580
by: Amit | last post by:
Hello, Can any of you recommend a really good book on data structures and more so, if it relates to STL data structures, and how they are used to build far more complex data structures. ...
5
2248
by: el_roachmeister | last post by:
For being a good web programmer, is a course on data structures important? It seems php already has built-in functions for what they teach in a data structures course. On the other hand all...
4
3834
by: Thomas Paul Diffenbach | last post by:
Can anyone point me to an open source library of /statically allocated/ data structures? I'm writing some code that would benefit from trees, preferably self balancing, but on an embedded system...
10
4749
by: Bart Goeman | last post by:
Hi, I have a question about how to put redundant information in data structures, initialized at compile time. This is often necessary for performance reasons and can't be done at run time (data...
13
5210
by: Leszek Taratuta | last post by:
Hello, I have several drop-down lists on my ASP.NET page. I need to keep data sources of these lists in Session State. What would be the most effective method to serialize this kind of data...
3
2292
by: osp | last post by:
hi to every one.... i just started out with c++ and i think i am doing well.i use Robert Laffore to study. which book should i use for data structures ? please help. thank you with regards ...
11
3731
by: efrat | last post by:
Hello, I'm planning to use Python in order to teach a DSA (data structures and algorithms) course in an academic institute. If you could help out with the following questions, I'd sure...
29
6315
by: Mik0b0 | last post by:
Hallo to everyone. This fall I am going to start data structures as a part of C language course. The problem is I could not find any satisfying tutorial about structures in C. There are plenty of...
4
2038
by: jehugaleahsa | last post by:
Hello: When developing data structures for C#, there is an obvious performance hit when utilizing primitive types. For instance, a recent hash table implementation I wrote works exceedingly fast...
0
7234
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7136
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7412
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7069
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5652
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
441
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.