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
(Analyze scores) Write a program that reads an unspecified number of scores and determines how many scores are above or equal to the average and how many scores are below the average. Enter a negative number to signify the end of the input. Assume that the maximum number of scores is 100
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
265
(Count occurrence of numbers) Write a program that reads the integers between 1 and 100 and counts the occurrences of each. Assume the input ends with 0. Here is a sample run of the program:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
284
(Reverse the numbers entered) Write a program that reads ten integers and displays them in the reverse of the order in which they were read
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
2
186
(Assign grades) Write a program that reads student scores, gets the best score, and then assigns grades based on the following scheme:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
190
(Geometry: point position) Programming Exercise 3.32 shows how to test whether a point is on the left side of a directed line, on the right, or on the same line. Write the methods with the following headers:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
194
(Generate random characters) Use the methods in RandomCharacter in Listing 6.10 to print 100 uppercase letters and then 100 single digits, printing ten per line
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
206
(Format an integer) Write a method with the following header to format the integer with the specified width
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
214
(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
280
(Geometry: area of a pentagon) The area of a pentagon can be computed using the following formula:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
226
(Print calendar) Programming Exercise 3.21 uses Zeller’s congruence to calculate the day of the week. Simplify Listing 6.12, PrintCalendar.java, using Zeller’s algorithm to get the start day of the month
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
472
(Current date and time) Invoking System.currentTimeMillis() returns the elapsed time in milliseconds since midnight of January 1, 1970. Write a program that displays the date and time. Here is a sample run:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
155
(Game: chance of winning at craps) Revise Exercise 6.30 to run it 10,000 times and display the number of winning games
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
163
(Financial: credit card number validation) Credit card numbers follow certain patterns. A credit card number must have between 13 and 16 digits. It must start with:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
9383
Total:
555
Previous
15
16
17
18
19
Next
Go