هاي
شباب بنات وصبيان
أبي مساعدتكم بأسرع وقت ممكن بليييييييييييييز لحد يخليني لأن حدي متوهقه وماعندي وقت كلش
آنا طالبين مني مشروع عشان آخذ شهاده م جامعه كامبريج البريطانيه
والمشروع عباره عن تصميم آله حاسبه
simple octal calculator
وهو عباره عن آله حاسبه تحول ناتج العمليات (+-*\) إلى أرقام عشريه وأرقام ثمانيه أوالعكس
فإذا تقدرون تساعوني باأكواد وتساعدوني بواجهه البرنامج يعني شكل آله الحاسبه
أدري إني طولت عليكم بس لحد يلومني من الخوف إلي فيني ولأن ماعندي وقت كلش
وإذا تبون السؤال هذا إهوه
You r to disign and create avery simple octal calculator using a high-level language of
ur
choice. an octal calculator can only use the digits 0 to 7. this calculator will allow the user to add, subtract, multiply or divide these numbers. In the case of division, the result should be truncated to whole number. this is equivalent to integer division. the result is to be displayed in octal.
To do this u r adivised to follow these steps.
a) Design an interface that will allow the user to input two unsigned octalnumbers and will display them in two boxes. the user should then be able to choose addition, subtraction, multiplication or division. there should be box to show the result of the calculation. the user should also be able to clear all the boxes. (No processing is required at this stage.)
b) Create a function, called octal to decimal, that will accept an octal number as a parameter and will return its decimal equivalent.
For example,
Octal to decimal (253) will return the decimal value 171.
u may use the following algorithm to do this.
Input the octal number as string
Total=0
For each octal digit in the string, starting on the left,
total = total * 8 + value of next digit
Return total
u should clearly annotate
ur
code and use meaningful names for variables and other objects such as buttons and text boxes (if u use them). u should include a copy of
ur
codes as evidence.
c) Create a function, called Decimal to octal, that will accept a decimal number as a parameter and will return its octal equivalent.
For example,
Deciaml to octal (171) will return the octal value 253.
you may use the following algorithm to do this.
Input the decimal number called Number
Octal = " 'Empty string
Repeat
Remainder = remainder after Number is divided by 8
Number = whole part of number divided by 8
Octal = string value of remainder and octal
Unit Number = 0 and means concatenation. for example,
"5" and "263" = "5263"
u should clearly annotate
ur
code and use meaningful names for variables and other objects such as buttons (If u use them). u should include a copy of
ur
code as evidence.
d) create code for each of the operations of addition, subtraction, multiplication and division.
u are advised to change the octal numbers input by the user to decimal, do the operation and then convert the result back to octal before displaying the result.
u should include a copy of
ur
code as evidence.
e) Create a set of test data that shows that the operations of addition, subtraction, multiplication and division work and provide evidence that u have used this data. screen dumps are acceptable but must show the data entered and the result of the operation.
بليز ياإخوان أبي رد بأسرع وقت
وهذا إيميلي
إلي يعرف اي معلومه لوكانت بسيطه
daizey_86@hotmail.com
ومشكورين
وآسفه إذا طولت عليكم
ميمـــــــــــــــــــــــو