Coursera Answers -WEEK 1: Java Programming Solving Problem with Software

1-What is the perimeter of the shape made from the file datatest1.txt whose contents are shown below 

-3,3

-4,-3

4,-2

6,5

30.64

2-What is the average length of a side in the shape made from the file datatest1.txt whose contents are shown below 

-3,3

-4,-3

4,-2

6,5

7.66

3-What is the longest side in the shape made from the file datatest1.txt whose contents are shown below 

-3,3

-4,-3

4,-2

6,5

9.21


4-What is the name of the file that has the shape with the largest perimeter from the four files example1.txt, example2.txt, example3.txt and example4.txt?

example3.txt


5-The method getNumPoints returns the number of points in a Shape s.

Which one of the following is NOT a correct implementation of getNumPoints?

...

.....

count= count+count;


6-Which one of the following best describes the purpose of this function?

 ....percentage  ....X AND Y



1 / 1 point


Yorumlar