المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : لنعرف من هو افضل مبرمج ؟!



sezoom
29-12-2003, 10:12 AM
حاول اتحل البروبلم التاليه بأي لغة برمجه
انا حليته بالجافا ابليت واستغرقت فيه تقريبا ساعة... بس المسأله حلو وسهله.
فمن هو افضل مبرمج في المنتدى ؟؟
الجواب: اللي ايحلها ...هل هو بيكهام7 امم غيره حاولوا اتحلو ..

Suppose you have the grades of four students in the
courses of Programming I, II and III. Write a Java program to represent the data as a two-dimensional array grades. Each row of the array represents a student and each column of the array represents a course. Your program should initialize the array properly with data of your choice (each element value will be between 0 and 100). The program should calculate the average grade for each student and print the grades and averages in the form of a table. Your output should look like the following. The gray part of the following table will be different in your program output because of different test data.

الناتج لازم ايكون نفس الصوره

thamood
29-12-2003, 11:40 AM
children go slove your home wrok somewhere else...........................
:jester: :jester: :jester:

sezoom
29-12-2003, 12:19 PM
لا بالعكس يا thamood انا شفت هذا السؤال عند شباب البرمجه وحليته بنفسي وحبيت أختبر خبراتكم في البرمجه
وللي مش فاهم السؤال يسأل أرجوه

وانشاء الله بحط لكم الحل بس أول شيء بعطي الجماعة فرصه :33: لمشاهدة حلي بالجافا أبليت (http://www.geocities.com/sezoom/tp001daa.html)

لازم تستحدموا Array 2D

Sankoo
29-12-2003, 01:14 PM
السلام عليكم،

انا اشكرك اخوي sezoom على اعطاءنا سؤال حلو و يبيله شغل و انا انشالله بابده فيه من احين و انشالله بحله و أفوز في تحديك :09: عالعموم انا ما عندي هالايام متسع من الوقت بس بفضي نفسي له فالي ارجوه منك انك تعطيني فرصه عشان أسويه، انا بس حبيت ارسل هالرد عشان تحس ان في احد منسجم مع موضوعك.

sezoom
29-12-2003, 03:22 PM
شكرا :) Sankoo على الكلام الحلو اللى يثلج الصدر :p

وانشاء الله تتمكن من حله ...ادرى ان الفتره الحاليه فترة امتحانات وضغظ

بس ما اقول الا الله ايعين ويسهل على الجميع

Sankoo
29-12-2003, 05:00 PM
تفضل اخوي sezoom هذا حل لسؤالك مع اضافه من عندي و هي ان بأمكانك تختار عدد الطلبه الي بتحسب لهم الaverage بدل ما تتحدد ل4 طلاب. أستغرق مني البرنامج حوالي نصف ساعة مع التعديل و اتمنى ان يحوز على رضاك. أتمنى انك اذا قدرت تييب أسئله ثانيه

sezoom
29-12-2003, 05:25 PM
ما شاء الله عليك يا sankoo حليت البروبليم وزدت على الشعر بيت :) :)



يالله شباب حاولوا وبتنجحوا في حلهلمشاهدة حل sankoo (http://www.geocities.com/sezoom/StudentGrade.htm)

Sankoo
29-12-2003, 05:54 PM
مشكور حبيبي ما قصرت و انشالله نشوف منك اسئله حلوه في المستقبل انشالله. احين مثل ما أرضيتني بارضيك و بعطيك سؤال بس اصعب من سؤالك (عشان ما تحله في نصف ساعة :tongue2: ) و السؤال هو:

A player rolls two dice. Each dice has six faces, which contain one, two, three, four, five and six spots, respectively. After the dice have come to rest, the sum of the spots on the two upward faces is calculated. If the sum is 7 or 11 on the first throw, the player wins. If the sum is 2, 3 or 12 on the first throw (called "craps"), the player losses (ie., the "house" wins). If the sum is 4, 5, 6, 8, 9 or 10 on the first throw, that sum becomes the player's "point". To win, the player must continue rolling the dice until you "make your point" (ie., roll that same point value). The player loses by rolling a 7 before making the point.

و عشان تعرف كيف ينعرض الجواب روح على الوصلة: http://sankoo.jeeran.com/RollDie/RollDie.htm

على فكرة انا مسوي موقع بسيط (ما سويت له أي تعديل و عشان ادش عليه اضغط على الوصلة التاليه (و الوصلة الي فوق جزء من الموقع و أرجو ان يحوز على اعجابك).

http://www.montada.com/showthread.php?t=252791

انا حاط الموقع مالي في موقع www.jeeran.com بس حاليا الموقع ما ينعرض لأن شكلة في موقع jeeran نفسه على ما أظن. عالعموم انت فكر في السؤال و حاول تحلة بطريقتك و اذا الموقع صار ينفتح دش عليه عشان تشوف الoutput و اذا اطرش لك الطريقة الي سويتها باطرش لك اياه بس مو أحين (عشان ما تغش :09: ).

sezoom
29-12-2003, 08:38 PM
شكرا sankoo التفاعل سؤالك جميل جدا وانشاء الله بحاول احله يوم الاربعاء
لاني مضغوط بالامتحانات

هذا هو حلك للسؤال (http://www.geocities.com/sezoom/testA.html)

بس شوهي فايدة
frequency

Sankoo
29-12-2003, 10:42 PM
أسمحلي عطيتك جواب لسؤال ثاني بس بنفس الاسلوب تقريبا و سؤالك عن الfrequency يدل على توسعك في الجافا :أفكر: :33: فمشكور انك نبهتني. الوصلة هي:

http://sankoo.jeeran.com/Craps/Craps.htm

تعال شفت الموقع؟ ابي اشوف رايك فيه و تنصحني بتعديلات اسويهه له و مبروك عليكم فوزكم على الكويت بديت اخاف منهم الصراحة بس مع احترامي لك البحرين بتغلب (خليت فيها احترام :31: ). يلا ما عطلك و اذا عندك اي استفسار انا حاضر.

thamood
30-12-2003, 11:43 AM
seems to me like you guys are just reading the book

java how to program by Deitel&Deitel

and copying the examples here give me a break those are quistions from
1st year in computer sience if you want realy hard core java try
programming network program with java.net package or data bases with the JDBC:ODBC or better yet try swing and awt programming as for your quistions its just the basics of programming and how to use arrays and for loops and the other stuff

c ya sooooooooooooooooon :cool:

Sankoo
30-12-2003, 05:01 PM
السلام عليكم،

أشكرك اخوي thamood على ردك في الموضوع لكني حاب ارد عليك، أول شي كلامك صحيح انا يايب البرنامج من example في java how to program بس انا عرضت السؤال على sezoom عشان اهو يحل السؤال مو عشاني انا و السؤال الي طرش لنا اياه ما شفته من قبل و لا أعرف عنه ففي هالحالة كل واحد استفاد من الثاني (انا ادري انك ما كتبت بهذا الأسلوب الا و انت متوسع في الجافا بس احنا لا (على فكرة الawt و الswing و الtext و غيرهم انا تمام فيهم و في حلي لسؤال sezoom بتلاقي اني استعملت بعض منهم). بعدين عن الي عرضته هذا يعتبر من الobject oriented programming و انا ما وصلت له بعدي (عندي مادة جافا أحين ادرسها في الجامعة و هو أول مادة جافا آخذها فلا تتوقع اني بكون فلته ليهدرجة، أحمد ربي اني واصل ليمستوي مقتنع بالنسبه للي خذته). اذا انت تحس انك وايد متوسع في الجافا بدل ما تعايرنا على اعطاء بعض الاسئله السهلة بالنسبه لك سو خير و اشرح لنا الobject oriented programming عشان تفيد غيرك بلي عندك، في هذا المنتدى كل واحد يساعد الثاني فأرجو اذا قدرت تفيدنا بلي تقدر عليه عشان نوصل ليمستواك أو حتى قريب من مستواك. أرجو الرد علي بلي تعتقدة و لا تفهم ردي هذا غلط (بمعنى انك تفهمه كنوع من التهجم أو غيرة) بل أعتبر ان في اشخاص يحتاجون مساعدة منك و انت عليك انك يا تساعد بلي تقدر عليه أو ما ترد و السلام عليكم.

sezoom
31-12-2003, 03:38 PM
السلام عليكم

آسف على التأخييير

حليت السؤال بس حلي مش أحسن من حلك :tongue2:

sezoom

thamood
31-12-2003, 08:16 PM
really guys dont mine what i said before i was in a really bad mood as about writing lessons about java i can't promise anything but if i'm going to write one i'll include it on my magazine that i'm working on and as soon i finsh i'll let you all know until then keep reading and programming c ya all soooooon

sezoom
31-12-2003, 08:38 PM
شكرا thamood على الرد الحلو بصراحة غيرت وجهة نظري نحوك

ما شاء الله عليك انت انسان طيب وعندك خبرة الظاهر في البرمجة وفوق هذا كله الله اللهم لا حسد انت بلبل في الانجليزي (:

Sankoo
01-01-2004, 12:33 AM
السلام عليكم،

أخوي sezoom الصراحة أبدعت في الحل و ادري انك تتطنز علي لما قلت "بس مو أحسن من حلك" :09: بس معليه مقبوله ;) و الصراحة الprotected ما وصلت له بعدي (ترى انا قاعد آخذ جافا هالفصل هاي أول مرة لآخذ جافا أعذرني) عالعموم أنتو أصحاب خبرة و أتمنى أني أستفيد منكم و أفيد غيري بعد. بالنسبه للأخ thamood فأنا أشكرك على ردك الي يبرد القلب و أنا على فكرة شفت الموقع (المجلة) الي مسويهه و أنا متلهف لأن أستفيد منه (بس نسيت أسم الموقع :09: ) عالعموم ردك هذا دل على أنك ما فهمت ردي عليك غلط. الصراحة في شي خاطري أقولكم اياه بس أخاف تكفخوني، أقول؟ لا أخاف الصراحة .... لا الصراحة ماقدر ماقول بس كل الي أتمناه هو التوفيق لمنتخبي اليمن و الأمارات (رحت وطي) و انشالله نشوف أداء أفضل بس يا جماعة أنا مستغرب من الأمارات، ضد الكويت (معنه الكويت هم أصحاب الأرض) لعبوا ظو الأمارات و هزءوهم لعب و أهداف بس صج أستغربت من مباراتهم ضد عمان (مع أحترامي لك يا sezoom كان مو مرضي بالمرة). على فكرة sezoom أنا أهل أمي أماراتيين و أهما عايشين في منطقة خليفة أ حاليا. يال مابي أطول أكثر من تشي و أتمنى لكم التوفيق.

thamood
01-01-2004, 11:50 PM
well i hope the magazine can make it i had so replys from many people saying that they r going to help me but i dont know what happened as i said in the magazine web page the magazine will come sooner or latter as for Sankoo i really dont care much about this cup see the thing is we focus on things that are not really doing us any good like if SOCCER is goning to build a future i saw the game today with Kuwait really "WE CANT PALY THAT GOOD" so i wont be mad if yemen defeated by the UAE or Kingdom of Bahreen or any country so until we meet again i hope you all a vey nice time and remeber to keep reading and reading cause " Knowledge is the future NOT SOCCER" and as for the magazine web site it's:

http://xmag.freewebpage.org/

c ya all soon :)

hzoma1
08-01-2004, 03:18 PM
سؤال يا جماعة هو انتو ليه بتستخدموا 2d array انتوا ممكن تستخدموا structure وهي ميزه في لغة ++c وانا عملت البرامج بتاعتكوا ديه بيها

hzoma1
08-01-2004, 03:58 PM
hi man
i think that your agood man cuz you prefare the knowledge on the football any way i hope to let me helping you in making your mAgazine and iam really want helping you so if you mind to give me something to let me do it for you

Sankoo
08-01-2004, 09:24 PM
السلام عليكم،

الstructure هي ميزة ممتازة في الc++ بالفعل و أتمنى منك أنك ترسل لنا الحل مالك بالstructure عشان احنا نستفيد. بس في شي و هو أن الstructure يستخدم أكثر من data type لكن في السؤال الي طرحة sezoom ممكن ان نستخدم array عادية. ففعلا أنا أتمنى أنك ترسل الحل.

thamood
09-01-2004, 01:44 PM
hi all h r ya all doin sorry for the late reply hzoma1 but i was kinda busy
as for what can you do for the magazine you can do what ever you want
if you want to write a lesson in programming i see you are kinda good a
C++ why dont write a lessons for C++ ???

or if you want to write any thing else in computer sience it's up to you
and my e-mail is : thamood@hotmail.com
and i'm waiting for you

as for the other guys sankoo ans seezoom i've already strated writing lessons i hope i can finish soon so see ya all sooooon

thamood
09-01-2004, 01:51 PM
hi all h r ya all doin sorry for the late reply hzoma1 but i was kinda busy
as for what can you do for the magazine you can do what ever you want
if you want to write a lesson in programming i see you are kinda good a
C++ why dont write a lessons for C++ ???

or if you want to write any thing else in computer sience it's up to you
and my e-mail is : thamood@hotmail.com
and i'm waiting for you

as for the other guys sankoo ans seezoom i've already strated writing lessons i hope i can finish soon so see ya all sooooon

hzoma1
09-01-2004, 03:50 PM
hi sanokoo
first iam so sorry for replying you
i will send you the answer of the two programs but later cuz now i have exams so i hope from you to bagging to allah to help me in my exams


hi thamood
also iam so sorry for repling you
i will start writing lessons in c++ to help you in your magzine and ihope from allah to let this lesson to be helpful to the people
but there is one question you want it in english or in arabic also if you want some helpful boooks in this kind i will help you also


thank you any way to let me help you in yur magazine


c u guys later ;) :D :biggthump :ciao:

hzoma1
09-01-2004, 03:51 PM
hi sanokoo
first iam so sorry for not replying you
i will send you the answer of the two programs but later cuz now i have exams so i hope from you to bagging to allah to help me in my exams


hi thamood
also iam so sorry for repling you
i will start writing lessons in c++ to help you in your magzine and ihope from allah to let this lesson to be helpful to the people
but there is one question you want it in english or in arabic also if you want some helpful boooks in this kind i will help you also


thank you any way to let me help you in yur magazine


c u guys later ;) :D :biggthump :ciao:

thamood
11-01-2004, 11:54 AM
بالعربي الدروس خليها بالعربي
بالنسبة للكتب انا معايا كتب حق سي و حق جافا بس انا حاب الجافا اكثر و دارسها اكثر
فلما تكمل الدروس ارسلها على الاميل حقي و مكشووووووور مقدما على المساعدة

army1985
07-02-2004, 03:28 AM
Ok guys, i get a harder problem
but you should follow these instructions carefully

the program is:

" Program Brief

the Naughty Bank offers financial services to the populace of the Glasgow are. As part of its operations it offers three types of account:

* Saving Account
* Premium Account
* Current Account

Saving Account:
A standard saving account which offers an excellent rate of interest (4%). The balance of this account may not fall bewlo zero.

Premium Account:
A saving account offering enhanced interest rates (5%), the rate applicable increasing as the balance of the account moves beyond predefined limits(0.75% for every £1000 over £10000 up to a maximum of 8%). The balance of this account may not fal below zero.

Current Account:
An account which offers a cheque book and all the standard facilities associated with current accounts. This account also offers interest on account which are in credit, the rate of interest being lower than those offered on the saving account (3%).

Current accounts which are in debit are subject to a service charge. This charge is based upon the value of debit (2% for every £100 in debit).

Notes:
The category of a customers account is recognised by the fist character of the account number (e.g. S999, P999, C999).

Interest is payable on all accounts and is on the value which is the present balance of the particular account at the time of program execution. Interest is payable on complete pounds.

General Requirements:
A Java application is required which provides the functionality for the operations required to maintain the bank accounts as detailed previously (e.g. create, read, update, delete).
To this end you are required to produce the following deliverables:

Design:
* Use case diagram
* Use case descriptions
* Class diagram

Testing:
* Test Strategy and test sets

Implementation:
* Unit testing: Java source code (programs containing a main method which instantiates objects of the class being tested) detailing the white box testing of constructors and methods for each class

* Integration testing: a menu-driven program (see below), which will be used to black box test the completed application.

===========================================
Main Menu
===========================================
1. Create a new account
2. Make a Deposit/Withdrawal
3. Close an account
4. View an account
5. View all accounts
6. Calculate interest and charges
Q. Quit
===========================================

* Error handing: as a minimum, the program must validate relevant input data for content and range.

* Organisational Standards: all code should exhibit appropriate indentation, internal documentation and java naming conventions.


and now show me who is clever to solve this problem

urs Army1985:cool:

سِلفر
08-02-2004, 06:35 AM
موضوع حلو وعجبني كثير

بس لو تكون المسأل بالعربي يكون افضل ... مو معناها إني ما اعرف إنجليزي :D لا بس ما احب اشغل مخي مرتين ... مره علشان اقرأ السؤال ويبدأ مخي يترجم السؤال للعربي علشان يفهمه ... والمره الثانية لما يبدأ مخي في التفكير في كتابة البرنامج ... خاصة ان لي مده كبيره ما كتبت شيء في البرمجه :)

وياليت تكون الأسأله بالأسهل ثم تصعب شويه ... ويكون إلي يحط جوابه يحط تعليق على كل سطر برمجه كتبه في البرنامج ... علشان لو واحد ماعرف يحل يمديه على الأقل يفهم حلول الأعضاء الثانيين

وكذلك يا ريت لو يكون في وقت كافي للتفكير ... يعني عطونا يومين ... علشان الواحد يفضي عمره (أدري ممكن الكود ما ياخذ منك ساعة ولا ساعتين إذا كنت رايق ... بس من يلقى وقت يروق فيه هذي الأيام :) )

ومره ثانية الموضوع حلو ونرجوا الإستمرار فيه :)

army1985
09-02-2004, 10:43 PM
see could find a website to translate english words into arabic, because i got some difficulty
in writing in arabic,,,,,,,borned in the uk

thanks alot for your interest on the problem and i hope you can solve it


bye for now:cool: :cool:

thamood
10-02-2004, 11:20 AM
what's this -- class diagram and that other stuff is this a problem in OOD cause it seems like you don't want the program in code you want it in diagrams and all that stuff seems like a Homework from a UML book or something like it ???
:31: :31:
but it's ok althought i've final exams but i'll try to solve it i don't promise any thing OK

see you all & my regards

hzoma1
11-02-2004, 03:38 AM
i know that when any one see it by this long he will say its hard to solve but i think there is nothing hard if you tried to solve so if you mind iam approching to solve it but i want time and i want to ask you if you want it in vusial basic or c++ j:ciao:

army1985
11-02-2004, 11:58 AM
well, its true that its not hard but there is some specific diagrams and use case to do, and there is also test strategy which you should include on it

thannks

army1985
11-02-2004, 12:02 PM
again it should be in Java (JCreater) d

other thing for real life programmer you should provide these for the user so he/she can make their own changes on it

+ its not a homewor, an idea that i made

thanks

army1985
23-02-2004, 12:05 PM
hello
tell now i didnt hear any thing from yous so if u cant solve it just tell me

Hard is it :أفكر:

urs Army1985