Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
Popular searches:
if-else
class-diagram
flowchart
Polymorphism
Home
Questions
Questions
Study lists
Ashoor Questions
555 Questions
(Geography: estimate areas) Find the GPS locations for Atlanta, Georgia; Orlando, Florida; Savannah, Georgia; and Charlotte, North Carolina from www.gps-data-team.com/map/ and compute the estimated area enclosed by these four cities
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
182
(Geometry: great circle distance) The great circle distance is the distance between two points on the surface of a sphere
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
247
(Geometry: area of a pentagon) Write a program that prompts the user to enter the length from the center of a pentagon to a vertex and computes the area of the pentagon, as shown in the following figure
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
195
(Geometry: point on line segment) Programming Exercise 3.32 shows how to test whether a point is on an unbounded line. Revise Programming Exercise 3.32 to test whether a point is on a line segment
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
204
(Financial: compare costs) Suppose you shop for rice in two different packages. You would like to write a program to compare the cost. The program prompts the user to enter the weight and price of the each package and displays the one with the better price. Here is a sample run:
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
229
(Geometry: point position) Given a directed line from point p0(x0, y0) to p1(x1, y1), you can use the following condition to decide whether a point p2(x2, y2) is on the left of the line, on the right, or on the same line (see Figure 3.11):
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
198
Financials: currency exchange) Write a program that prompts the user to enter the exchange rate from currency in U.S. dollars to Chinese RMB
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
237
(Current time) Revise Programming Exercise 2.8 to display the hour using a 12-hour clock. Here is a sample run:
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
196
(Geometry: two circles) Write a program that prompts the user to enter the center coordinates and radii of two circles and determines whether the second circle is inside the first or overlaps with the first, as shown in Figure 3.10
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
204
(Geometry: two rectangles) Write a program that prompts the user to enter the center x-, y-coordinates, width, and height of two rectangles and determines whether the second rectangle is inside the first or overlaps with the first, as shown in Figure 3.9. Test your program to cover all cases
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
313
(Geometry: points in triangle?) Suppose a right triangle is placed in a plane as shown below. The right-angle point is placed at (0, 0), and the other two points are placed at (200, 0), and (0, 100)
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
268
(Use the &&, || and ^ operators) Write a program that prompts the user to enter an integer and determines whether it is divisible by 5 and 6, whether it is divisible by 5 or 6, and whether it is divisible by 5 or 6, but not both. Here is a sample run of this program:
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
262
(Geometry: intersecting point) Two points on line 1 are given as (x1, y1) and (x2, y2) and on line 2 as (x3, y3) and (x4, y4), as shown in Figure 3.8a–b. The intersecting point of the two lines can be found by solving the following linear equation:
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
9316
Total:
555
Previous
24
25
26
27
28
Next
Go