منتدى استراحات زايد

منتدى استراحات زايد (http://vb.ma7room.com/index.php)
-   منتدى أخبار المواقع والمنتديات العربية والأجنبية (http://vb.ma7room.com/forumdisplay.php?f=183)
-   -   حل واجب m105 الجافا 0544321455 - 00966544321455 - [email protected] (http://vb.ma7room.com/showthread.php?t=1201687)

محروم.كوم 03-25-2013 12:40 PM

حل واجب m105 الجافا 0544321455 - 00966544321455 - [email protected]
 
M105 Tutor-Marked Assignment
Question One: [10 marks]
a. Write a Java class (program) that reads from the user the temperature in degrees Celsius as a real number. Then calculates and prints the equivalent temperature in degrees Fahrenheit (rounded to 1 decimal place). [9 marks]
b. Give the exact output of your program. Provide a snapshot representing the exact output of any value from your choice. [1 mark]
Hint:
Question Two: [20 marks]
a. Write a Java application that reads from the user three integers represent the lengths of three sides. Then checks if the three sides can form a triangle or not; and if they can, the application should also checks if the formed triangle is a right triangle or not. [17 marks]
b. Give the exact output of your application. Provide 3 snapshots representing the exact output of 3 different cases (i.e., the integers cannot form a triangle, can form a triangle but not a right one, or can form a right triangle). [3 marks]
Hints:
 Request from the user to enter the three sides from the shortest to the longest.
 Do not use the method Math.pow(). It will not give accurate results.
 Read about “the triangle inequality" in any algebraic geometry book, or search the internet in order to know when the lengths of three sides can form a triangle.
 Read about “the Pythagorean theorem" in any algebraic geometry book, or search the internet in order to know how to determine if a triangle is a right triangle or not.
Question Three: [15 marks]
a. The following code includes 10 errors (an error per line). Find these errors and classify them as a compilation error, a fatal logical error or a non-fatal logical error. [10 marks]
public class Q3_StudentID {
public static void main(String[] args) {
int x, y, my Num = 0;
double d = 10 + x; x = 3;
y = d + 2;
if (! x>5)
System.out.println('Result1 = ' + x);
Else
System.out.printIn("Result1 = " + y);
System.out.println("Result2 = %d" + myNum);
System.out.println("Result3 = " + x / myNum); myNum++;
System.out.printf("Result4 = %.0f\n" + d);
} // end main method
} // end Class Q3_StudentID
4
b. Rewrite the above code after correcting the errors. [1 mark]
c. Provide a snapshot representing the exact output after correcting the code. [1 mark]
d. Give the exact output of the following program. [3 marks]
import java.util.Scanner;
public class Q3_D {
public static void main(String[] args) {
int a = 4, b = 7, c;
System.out.println("Sum = " + a + b);
c = 5;
do {
System.out.printf("c = %-9d" , c);
if (c-- == 3)
break;
System.out.printf("OK\n" , c);
} while (c > 0);
double d = (c == 3) ? 1.5 : 2.5;
System.out.printf("d = %.2f\n", d);
double f = 6 + 3 / 2;
System.out.printf("f = %.2f\n", f);
if (a > b);
System.out.println("Done");
} // end main method
} // end class Q3_D
Question Four: [15 marks]
a. Giving the following triangle for the number 4: 4 3 2 1 4 3 2 4 3 4 Write a Java application that reads from the user a positive integer. Then displays on the screen a similar triangle which depends on that integer, using tabs to separate numbers in the same line. [13 marks]
b. Give the exact output of your application. Provide 2 snapshots representing the exact output of 2 different values. [2 marks]
5
Question Five: [30 marks]
a. Write a Java application that does the following: [28 marks]
 Reads an integer from the user represents the number of the students in a class.
 Reads the scores of the students from the user (the user should enter the scores in one line separated by spaces).
 Calculates and prints the average of the passed students (rounded to 2 decimal places).
 Calculates and prints the number of the students whose scores are more than the average of the passed students.
b. Give the exact output of your application. Provide 2 snapshots representing the exact output of 2 different inputs. [2 marks]
Hints:
 Assume that the scores of the students are integers between 0 and 100 (inclusive)
 Assume that there is at least one passed student in the class
 The student considered to be “passed” if his/her score is greater than or equal to 50.
Sample Input: Enter the number of the students in the class: 5 Enter the scores of the 5 students: 90 80 40 60 70
Sample Output: The average of the passed students is: 75.00 There are 2 students whose scores are more than the average of the passed students.
6
Question Six: [30 marks]
a. Write a Java method called distance that calculates the distance between 2 points in the xy coordinate system. The method takes 4 integers x1 , y1,x2 and y2 as arguments which represent the x and y coordinates of the 2 points, respectively. Then it calculates and returns the distance as a real number according to the following formula: [6 marks]

b. Include your method into a Java program that reads a sequence of inputs. Each input consists of 4 integers represent the x and y coordinates of 2 points in the xy coordinate system in the following order: x1 , y1,x2 then y2 The program invokes (calls) the method distance and prints the result for each input (rounded to 2 decimal places). The user could stop the program via entering the value 0 for all the coordinates. At the end, the program should prints the longest calculated distance (rounded to 2 decimal places). [23 marks]
c. Give the exact output of your program. Provide a snapshot representing the exact output of a sequence of at least 3 inputs before the user enters the value 0 for all the coordinates. [1 mark]
Sample Input and Output: To halt the program, enter 0 for all the coordinates The coordinates of any point should be separated by a single space ------------------------------------------------------------------ Enter the x and y coordinates of the first point: 1 1 Enter the x and y coordinates of the second point: 1 3 The distance between (1,1) and (1,3) is 2.00 Enter the x and y coordinates of the first point: 2 3 Enter the x and y coordinates of the second point: 6 7 The distance between (2,3) and (6,7) is 5.66 Enter the x and y coordinates of the first point: 0 0 Enter the x and y coordinates of the second point: 4 5 The distance between (0,0) and (4,5) is 6.40 Enter the x and y coordinates of the first point: 0 0 Enter the x and y coordinates of the second point: 0 0 ------------------------------------------------------------------ The longest calculated distance is: 6.40

السلام عليكم متوفر لدينا حلول رائعة جدا جدا لواجب m105 أهلا وسهلا بك إلى منتدي حل واجبات الجامعة العربية المفتوحة || tma4u,-00966544321455- 0544321455- حل واجب m105 TMA حل واجب m105 TMA01 AOU AOUA.COM 2013
متوفر لدينا حلول رائعة جدا جدا جدا لواجب m105 باشراف المهندس الخبير (مدرس لمادة m105( درجة الواجب لا تقل عن 98 من 100 ان شاء الله االحلول حل واجب m105 TMA حل واجب m105 TMA01
حل واجب m105 -2013 منتدي حل واجبات الجامعة العربية المفتوحة حل واجب m105 TMA حل واجب m105 TMA01
حل واجب m105 مدرس خاص m105 ايميل [email protected] او اتصل : 0544321455 - 00966544321455
حل واجب m105 مدرس خاص m105 ايميل [email protected] او اتصل : 0544321455 - 00966544321455 m105
مدرس خاص [email protected] او اتصل : 0544321455 - 00966544321455شرح مواد الجامعة العربية m105
حل واجب m105 TMA حل واجب m105 TMA01
مدرس خاص خصوصي [email protected] او اتصل : 0544321455 - 00966544321455 شرح المادة حل واجبات حل واجب الجامعة العربية m105
خدمات مجانية – حلول واجبات الجامعة - كل الجامعات الرياض الدمام جدة حائل جده الأحساء المدينة المنورة لبنان الكويت البحرين عمان مصر السعودية الأردن بيروت المنامة القاهرة مسقط
لجميع تخصصات الجامعة ولجميع فروع الجامعة
حلول واجبات – مشاريع تخرج – ملخصات هامة
حل واجب m105 tma
Mobile: 00966544321455 or 0544321455
[email protected] او اتصل : 0544321455 - 00966544321455
حلول مضمونة وغير مكررة وغير متشابهة لجميع واجبات الجامعة
متوفرمدرسين ومدرسات لجميع المواد والتخصصات
KSA-Kuwait-Bahrain-Oman-Jordon-Lebanon-Egypt
قسم خاص لواجبات التربية لجميع التخصصات ولجميع المستويات
حل واجب m105 tma
مهندس مدرس خاص ([email protected] او اتصل : 0544321455 - 00966544321455) حل واجب m105 الجامعة العربية المفتوحة
حل واجب m105 مدرس خاص خصوصي ([email protected] او اتصل : 0544321455 - 00966544321455)حل واجب الجامعةالعربية المفتوحة m105
مدرس خاص خصوصي m105 m حل واجب حلول واجبات شرح ([email protected] او اتصل : 0544321455 - 00966544321455)الجامعة العربية المفتوحة
حل واجب m105 حل واجب m105 حل واجب m105 حل واجب m105 حل واجب m105
مدرس خاص ([email protected] او اتصل : 0544321455 - 00966544321455)حل واجب الجامعة العربية المفتوحة m105
حل واجباتالجامعة العربية المفتوحة مع الشرح ‏ج [email protected] او اتصل : 0544321455 - 00966544321455 مدرس خاص خصوصى - m105
للمفاهمة [email protected] او اتصل : 0544321455 - 00966544321455
حل واجب m105 حلول واجبات الجامعة العربية المفتوحة ([email protected] او اتصل : 0544321455 - 00966544321455) مدرس خصوصي مدرس خاص
مدرس خاص لطلاب الجامعة العربية المفتوحة
شرح مواد الجامعةالعربية المفتوحة
حل واجب m105 TMA m105 TMA m105 TMA
حل واجب حلول واجبات الجامعةالعربية المفتوحة m105 m105
مدرس خاص خصوصي [email protected] او اتصل : 0544321455 - 00966544321455شرح المادة حل واجبات واجب الجامعة العربية المفتوحة tma01 tma02 tma3 m105 m105 part m105 part1 part2 -
مدرس خاص خصوصي [email protected] او اتصل : 0544321455 - 00966544321455 شرح المادة حل واجبات حل واجب الجامعةالعربية المفتوحة tma01tma02 tma3 m105 m105 m105 part1 part2
السلام عليكم ورحمة الله وبركاته
متوفرمدرسين ومدرسات لجميع المواد والتخصصات حل واجب m105 tma
KSA-Kuwait-Bahrain-Oman-Jordon-Lebanon-Egypt
حلول واجبات ومشاريع الجامعة العربية المفتوحة حل واجب m105 tma
للحصول على حل الواجب المطلوب : ارسل بريد الكتروني الى:
[email protected] او اتصل : 0544321455 - 00966544321455
تسجيل صوتي لجميع المحاضرات وتسجيل للدروس الخاصة
خدمات مجانية رائعة لجميع المواد والتخصصات والفروع
لـ طلاب الجامعة العربية المفتوحة
حلول واجبات – مشاريع تخرج – ملخصات هامة
حلول واجبات الجامعة العربية المفتوحة لطلاب الكويت و طالبات
للحصول على حل الواجب المطلوب : ارسل بريد الكتروني الى
[email protected] او اتصل : 0544321455 - 00966544321455
حل واجب m105 TMA01 ايميل : [email protected] او اتصل : 0544321455 - 00966544321455 الكويت مدرس خاص لحلول الواجبات


الساعة الآن 06:57 AM

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227