حلول واجبات الجامعة العربية المفتوحة (لعــspring2017ـــام)

حلول واجبات الجامعة العربية المفتوحة لجميع تخصصات الجامعة ولجميع فروع الجامعة حلول واجبات – مشاريع تخرج – ملخصات هامة Mobile: 00966542495275 حلول واجبات الجامعة ا
 
الرئيسيةاليوميةس .و .جبحـثالأعضاءالمجموعاتالتسجيلدخول

شاطر | 
 

 M105 Tutor-Marked Assignment

اذهب الى الأسفل 
كاتب الموضوعرسالة
whatsapp::00966542495275
Admin


عدد المساهمات : 1462
تاريخ التسجيل : 07/10/2014

مُساهمةموضوع: M105 Tutor-Marked Assignment   الخميس أكتوبر 16, 2014 7:01 pm

1
Faculty of Computer Studies
Information Technology and Computing Program
M105 Tutor-Marked Assignment
Course Code: M105 Semester: Fall 2014-2015
Course Title: Introduction to Programming with Java Credit Hours: 3 Hours
Cut-Off Date: Sunday, November 23, 2014 Total Marks: 80
Contents
Preface……………………………………………………………………………………………
1
Instructions for submitting TMA………………………………………………………………..
1
Question One…………….………………………………………………………………………
2
Question Two…………………….………………………………………………………………
2
Question Three…….…………….………………………………………………………………
3
Question Four………..…………..………………………………………………………………
3
This TMA covers chapters 1, 2, 4 and 5 of the text book.
Instructions for submitting TMA
1. Create a new project in NetBeans. Name it: StudentName_StudentID (e.g. AhmadOmar_099999)
2. Create all the required classes in TMA inside this project. Name each class according to the question No. in addition to your ID (e.g. Q2_StudentID)
3. You will find a solution template (document file) on LMS with the following name: M105-TMA-2014-2015-Fall-Branch-StudentID-FirstNameLastName You should write your answers inside this document, but you need to:
a) Sign the “Declaration of No Plagiarism” electronically (it is enough to put your name and ID).
b) Modify the following information in the file name: Branch, StudentID and FirstNameLastName Example: "Ahmad Omar" is in Kuwait Branch and his ID is 099999. He should change the file name to be: M105-TMA-2014-2015-Fall-KWT-099999- AhmadOmar
4. Copy and paste the code of all the classes + the required snapshots inside the above document file.
5. Create a compressed file including the folder of your project.
6. Name the compressed file as the document file.
7. Submit two separated files: the compressed file + the document file (without compression).
2
Important Note: [3 marks]
When writing your programs, you should follow good programming style that helps readability. This includes:
• Using short comment at the beginning stating the purpose of each program.
• Selecting meaningful names for identifiers.
• Using spacing and indentations to help make the structure of your program clear.
Question One: [12 marks]
a. In the FIFA World Cup, the team winning a match gets 3 points, while the losing team gets zero points. If the match is drawn, each team gets one point. Write a Java class (program) that reads from the user 3 integers represent the number of matches that won by a team, drawn and lost. Then calculates and prints the number of points awarded to this team. [10 marks]
b. Give the exact output of your program. Provide 2 snapshots representing the exact output of 2 different inputs. [2 marks]
Question Two: [20 marks]
a. Write a Java application that reads from the user the result of a match between 2 teams in the FIFA World Cup in a single line. Then computes and prints the winning team or indicates that the match is drawn. [17 marks]
b. Give the exact output of your application. Give 3 snapshots representing the exact output of 3 different cases (i.e., when the winning team is the first one, second one and when the match is drawn). [3 marks]
Hint:
The user should insert the 4 values in the same line using only one prompt message.
Sample Input and Output: Insert the result of the match: England 1 2 Italy Italy is the winning team
Input from the user
3
Question Three: [20 marks]
a. Assume that a coach in the FIFA World Cup thinks that the player number of the goalkeeper should be less than 31. In addition, the number should be even or divisible by 3. Write a Java program that keeps reading from the coach players' numbers. Then the program calculates and prints the number of players that could be goalkeepers. The coach could stop the program via entering zero as a player's number. [19 marks]
b. Give the exact output of your program. Provide a snapshot representing the exact output of any values from your choice. [1 marks]
Hint:
You could assume that the user will insert positive integers for players' numbers.
Sample Input and Output: Insert players' numbers: 2 3 5 6 33 0 3 players could be goalkeepers
Explanation: Only 3 numbers satisfy the condition which are 2, 3 and 6
Question Four: [25 marks]
a. Write a program that reads from the user 5 lines of input (using for loop). Each line includes a team's name and number of goals this team scored in the FIFA World Cup. The program should calculate and print the following:
 The average number of goals scored by a team (rounded to 1 decimal place).
 The highest scoring team and number of goals this team scored. [24 marks]
b. Give the exact output of your program. Provide a snapshot representing the exact output of any values from your choice. [1 mark]
Hint:
You could assume that the highest scoring team is only one team.
Sample Input and Output: In each line (and for 5 teams), insert a team's name and number of goals this team scored ----------- Brazil 11 Netherlands 15 Germany 18 Colombia 12 France 10 ----------- The average number of goals scored by a team is 13.2 The highest scoring team is Germany with 18 goals
Input from the user
Input from the user

_________________
لتحميل ملف حل الواجب الحل النموذجي للواجب.doc يجب عليك  التسجيـــل بالمنتدى لتتمكن من تحميل الملف


حل واجب - خدمات مجانية – حلول واجبات الجامعة الجامعة العربية المفتوحة- كل الجامعات - حل واجب - حل واجب TMA- حل واجب TMA01
لجميع تخصصات الجامعة ولجميع فروع الجامعة
حلول واجبات – مشاريع تخرج – ملخصات هامة
Mobile: 00966542495275  or
WhatsApp:00966542495275

smsm.hamdy66@yahoo.com
حلول مضمونة وغير مكررة وغير متشابهة لجميع واجبات الجامعة
متوفرمدرسين ومدرسات لجميع المواد والتخصصات
السعودية-الكويت-لبنان-مصر-البحرين-الأردن-عمان-الرياض-الدمام-جدة-حائل-الاحساء-المدينة المنورة
KSA-Kuwait-Bahrain-Oman-Jordon-Lebanon-Egypt
قسم خاص لواجبات التربية لجميع التخصصات ولجميع المستويات
http://tmas.123.st
الرجوع الى أعلى الصفحة اذهب الى الأسفل
معاينة صفحة البيانات الشخصي للعضو http://learn.123.st
 
M105 Tutor-Marked Assignment
الرجوع الى أعلى الصفحة 
صفحة 1 من اصل 1

صلاحيات هذا المنتدى:لاتستطيع الرد على المواضيع في هذا المنتدى
حلول واجبات الجامعة العربية المفتوحة (لعــspring2017ـــام) :: حل واجب الجامعة العربية المفتوحة 2018 الفصـــ 1 ــل :: حل واجبات ادارة الاعمال2018/2019-
انتقل الى: