Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
Introduction to Java Programming, Comprehensive Version (10th Edition)
by
Y. Danial liang
Edition:
10th edition
ISBN13:
978-0133761313
ISBN10:
0133761312
772
Java programming
Home
Books
Introduction to Java Programming, Comprehensive Version (10th Edition)
Similar Books
No books found
Title
Chapter: 4 /
Q: 1
(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
Chapter: 4 /
Q: 2
(Geometry: great circle distance) The great circle distance is the distance between two points on the surface of a sphere
Chapter: 4 /
Q: 3
(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
Chapter: 4 /
Q: 4
(Geometry: area of a hexagon) The area of a hexagon can be computed using the following formula (s is the length of a side):
Chapter: 4 /
Q: 5
(Geometry: area of a regular polygon) A regular polygon is an n-sided polygon in which all sides are of the same length and all angles have the same degree (i.e., the polygon is both equilateral and equiangular). The formula for computing the area of a regular polygon is
Chapter: 4 /
Q: 6
(Random points on a circle) Write a program that generates three random points on a circle centered at (0, 0) with radius 40 and display three angles in a triangle formed by these three points, as shown in Figure 4.7a
Chapter: 4 /
Q: 7
(Corner point coordinates) Suppose a pentagon is centered at (0, 0) with one point at the 0 o’clock position, as shown in Figure 4.7c
Chapter: 4 /
Q: 8
(Find the character of an ASCII code) Write a program that receives an ASCII code (an integer between 0 and 127) and displays its character. Here is a sample run:
Chapter: 4 /
Q: 9
(Find the Unicode of a character) Write a program that receives a character and displays its Unicode. Here is a sample run:
Chapter: 4 /
Q: 10
(Guess birthday) Rewrite Listing 4.3, GuessBirthday.java, to prompt the user to enter the character Y for Yes and N for No rather than entering 1 for Yes and 0 for No
total questions:
772
Previous
6
7
8
9
10
Next
Questions
772
Views
Best Answers
299
Points
5
×
Close
add reason
reason