عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 05-10-2012, 08:00 PM   #476

رامي ع

جامعي

 
تاريخ التسجيل: Jul 2012
التخصص: سنة تحضيري
نوع الدراسة: تحضيري علمي خطة أ
المستوى: الأول
الجنس: ذكر
المشاركات: 10
Skaau.com (7) رد: Cpcs 202 شروحات وحلول وواجبات الجافا

السلام عليكم ورحمة الله وبركاته
اذا سمحتو ابغى شرح للبروجكت لاني مني فاهم شي مررره


Project 1 Deion:
Consider the following figure that shows the x-y plane with 4 points that depict a rectangle shape:
For the points to make a rectangle shape, the
following must be true:

(x1,y1)

(x2,y2)

x1=x3
y

x2=x4
y1=y2
y3=y4
(x4,y4)

x

(x3,y3)





For this project you have to :
1. Write a pseudocode
2. Write an algorithm
3. Draw a flow chart
4. Write a Java program that will read the coordinates of four points, calculate the area of the rectangle, and print a message surrounded by dashed line as follows:
|- - - - - - - - - - - - - - - - - - - - - - - - - |
| The area of the rectangle is A |
|- - - - - - - - - - - - - - - - - - - - - - - - - |

Where A is the actual value of the area calculated by your program.

Note: The pseudocode, algorithm, and flow chart should be submitted in the word file.

Hints:
1) The area of a rectangle is equal Width × Height
2) The distance between two points is calculated as Distance Formula: Given the two points (x1, y1) and (x2, y2), the distance between these points is given by the formula:

3) In Java d = d = sqrt( x )

 

رامي ع غير متواجد حالياً   رد مع اقتباس