Computing.Net > Forums > Programming > SOS, HomeWork : Linked Lists in C !

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

SOS, HomeWork : Linked Lists in C !

Reply to Message Icon

Name: 4xMpL
Date: January 1, 2009 at 03:06:04 Pacific
OS: Windows Vista
CPU/Ram: AMD 1.7Ghz/ 1GB
Product: Hewlett-packard / 6715S
Subcategory: C/C++
Comment:

/*** Happy New Year ***/
Salut Tout le Monde, Hello Everybody !
well, excuse me, i had this Home Work and i
strembled Much doing it, Please help me for
doing it fully and with comments.
i need someone help me in it immediatly,
seriously, PLEASE !!!
here it is :

" To enable users to manipulate the natural
numbers,
the computer offers a variety of types to
represent
and stored in memory as type int.
Unfortunately, all
types have proposed a limited capacity (eg
int = 64 bits) which
limit the maximum number handled.
To resolve this problem, we propose to
represent
natural numbers as lists linear chainées each
number is stored in a list of links. Each
link is
stored a figure representing a number of
representative:

Exemple X = 523462

"Head of the list" -> 2 -> 6 -> 4 -> 3 -> 2 -
> 5 -> NULL .

It is clear that this model can represent the
natural numbers, whatever their size.
Writing in C, a program that:
1. Read a string representing a natural
number from the keyboard and turn it into an
LLC as the previous model,
2. Multiply the number represented in the LLC
by ten (10)
3. Divide the number represented in the LLC
by ten (10)
4. Compare two numbers represented as llcs
(result =,> or <)
5. Add a number represented in the LLC to
another.

Example for The Desired Excution

Give a number:
For Example: 93667578465277709513532461261
What would you do:
1: Multiply by 10
2: Divide by 103: Compare with another number
4: Add a number
Choice? 1
The number is: 936675784652777095135324612610
Choice? 4
Give the number to add: 637
The number is:
936675784652777095135324612613247
Choice? ... Etc. "
Please help me Seriously and Imediatly, My
Prayers for EveryOne want to Help me even
with single a Word .



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: SOS, HomeWork : Linked Lists in C !

prob with Linked list in C www.computing.net/answers/programming/prob-with-linked-list-in-c/481.html

Linked Lists in C www.computing.net/answers/programming/linked-lists-in-c/11729.html

Linked List in C problem in Vista www.computing.net/answers/programming/linked-list-in-c-problem-in-vista/19940.html