السلام عليكم ..
كيفكم وشخبركم عساكم طيبين ..
طال عمركم انا طالب في جامعة الملك سعود قسم نظم المعلومات
وقبل يومين عطانا الدكتور بروجكت والمطلوب تسليمه يوم السبت القادم ان شاء الله
قريت السؤال .. لفيت يمين يسار .. البرنامج فيه فكرة جديدة ..
اذ ا ما عليكم امر تعطوني فكرة البرنامج فقط واذا جاء واحد كريم وحلّه لي مع الشرح الله يعطيه العافيه خخخخخخـ
In this project you will specify and implement an ADT for large integer arithmetic. Recall that the largest signed integer that a 32-bit computer system can store is 231 – 1 = 2147483647. In some application one is required to process integers larger than this value e.g. 123,456,789,123,456. The ADT that you will implement in this project could be used in such applications.
Assume that the following operations are to be performed on large positive integers only: (a) comparison – integers are compared to each other to check if one is greater than/less than the other. ( B) addition – integers are added and the result is returned. © subtraction – one integer is subtracted from the other and the result returned.
A possible solution is to divide the large integer into smaller blocks of integers, carry out the operations on each block separately and combine the results. For example, two large integers 123456789123456 and 23456891123851 can be divided into blocks and added to each other, block by block from right to left. The blocks could be represented as lists.
1
123 456 789 123 456
23 456 891 123 851
-----------------------------------------
...7 307
You are required to submit the following for grading in this project:
(a) Specification for various operations of ADT BigInt.
( B) Specification for various operations of ADT List that you will use to represent the big integers.
© Graphical representation of the BigInt showing the storage structure of the list used.
(d) A written statement explaining why you choose a particular storage structure (e.g. singly-linked, doubly-linked or circular structure) for the list.
(e) Java code implementing the ADT List.
(f) Java code implementing the ADT BigInt.
(g) A test class that uses ADT BigInt operations on some big integers.
ودمتمـ ..
