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
(Random character) Write a program that displays a random uppercase letter using the Math.random() method
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
218
(Convert letter grade to number) Write a program that prompts the user to enter a letter grade A, B, C, D, or F and displays its corresponding numeric value 4, 3, 2, 1, or 0. Here is a sample run:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
200
(Phone key pads) The international standard letter/number mapping found on the telephone is shown below:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
225
(Vowel or consonant?) Write a program that prompts the user to enter a letter and check whether the letter is a vowel or consonant. Here is a sample run:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
275
(Hex to binary) Write a program that prompts the user to enter a hex digit and displays its corresponding binary number
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
271
(Decimal to hex) Write a program that prompts the user to enter an integer between 0 and 15 and displays its corresponding hex number. Here are some sample runs:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
199
(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
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
191
(Find the Unicode of a character) Write a program that receives a character and displays its Unicode. Here is a sample run:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
184
(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:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
241
(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
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
505
(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
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
231
(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
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
298
(Geometry: area of a hexagon) The area of a hexagon can be computed using the following formula (s is the length of a side):
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
223
Total:
555
Previous
23
24
25
26
27
Next
Go