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

مشاهدة النسخة كاملة : حل واجب M105 تحميل 0544321455 دولي: 00966544321455 بريد [email protected]



أسواق
18-10-2014, 09:40 PM
حل واجبات الجامعة العربية المفتوحة
حل واجبات الجامعه العربية المفتوحه مع الشرح
لجميع فروع الجامعة ولجميع التخصصات ولجميع المواد

حلول نموذجية مضمونة وغير مكررة - قسم خاص للتربية

KSA-Kuwait - Bahrain -Oman - Jordon -Lebanon -Egypt-Sudan

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

اتصل : O544321455 - OO966544321455
واتس اب: 966544321455+
ايميل : a_al_shora@hot mail.com
سكايبي : a_al_shora

حل واجب 0.5.4.4.3.2.1.4.5.5 الجامعة العربية المفتوحة


حل واجبات الجامعة العربية المفتوحة O54.4.3.2.1.4.5.5 - OO96654.4.3.2.1.4.5.5
ايميل : a_al_shora @ h.o.t.m.ail.c.o.m
سكايبي: a_al_shora
واتس اب: OO96654.4.3.2.1.4.5.5


M105 Tutor-Marked Assignment
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 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 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 user3
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 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 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 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




M105 Tutor-Marked Assignment
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 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 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 user3
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 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 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 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












حل واجبات الجامعة العربية المفتوحة
حل واجبات الجامعه العربية المفتوحه مع الشرح
لجميع فروع الجامعة ولجميع التخصصات ولجميع المواد

حلول نموذجية مضمونة وغير مكررة - قسم خاص للتربية

KSA-Kuwait - Bahrain -Oman - Jordon -Lebanon -Egypt-Sudan

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

اتصل : O544321455 - OO966544321455
واتس اب: 966544321455+
ايميل : a_al_shora@hot mail.com
سكايبي : a_al_shora

حل واجب 0.5.4.4.3.2.1.4.5.5 الجامعة العربية المفتوحة


حل واجبات الجامعة العربية المفتوحة O54.4.3.2.1.4.5.5 - OO96654.4.3.2.1.4.5.5
ايميل : a_al_shora @ h.o.t.m.ail.c.o.m
سكايبي: a_al_shora
واتس اب: OO96654.4.3.2.1.4.5.5