06-10-2012, 07:33 PM
|
|
|
تاريخ التسجيل: Oct 2012
نوع الدراسة: إنتظام
الجنس: ذكر
المشاركات: 1
|
|
ساعدونا في حل project CPCS202
السلام عليكم ورحمة الله
شباب اللي يعرف طريقة حل هذا البروجكت لا يبخل علينا موعد التسليم يوم الاثنين
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 )
البروجكت موجود في المودل
|