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
(Find the number of days in a month) Write a program that prompts the user to enter the month and year and displays the number of days in the month. For example,
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
292
(Game: addition quiz) Listing 3.3, SubtractionQuiz.java, randomly generates a subtraction question. Revise the program to randomly generate an addition question with two integers less than 100
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
273
(Business: check ISBN-10) An ISBN-10 (International Standard Book Number) consists of 10 digits: d1d2d3d4d5d6d7d8d9d10. The last digit, d10, is a checksum, which is calculated from the other nine digits using the following formula:
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
408
(Sort three integers) Write a program that prompts the user to enter three integers and display the integers in non-decreasing order
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
256
(Financial application: monetary units) Modify Listing 2.10, ComputeChange .java, to display the nonzero denominations only, using singular words for single units such as 1 dollar and 1 penny, and plural words for more than one unit such as 2 dollars and 3 pennies
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
352
(Health application: BMI) Revise Listing 3.4, ComputeAndInterpretBMI.java, to let the user enter weight, feet, and inches. For example, if a person is 5 feet and 10 inches, you will enter 5 for feet and 10 for inches. Here is a sample run:
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
268
(Find future dates) Write a program that prompts the user to enter an integer for today’s day of the week (Sunday is 0, Monday is 1, …, and Saturday is 6). Also prompt the user to enter the number of days after today for a future day and display the future day of the week. Here is a sample run:
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
367
(Random month) Write a program that randomly generates an integer between 1 and 12 and displays the English month name January, February, …, December for the number 1, 2, …, 12, accordingly
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
515
(Algebra: solve 2 * 2 linear equations) A linear equation can be solved using Cramer’s rule given in Programming Exercise 1.13. Write a program that prompts the user to enter a, b, c, d, e, and f and displays the result. If ad - bc is 0, report that “The equation has no solution.”
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
370
(Game: add three numbers) The program in Listing 3.1, AdditionQuiz.java, generates two integers and prompts the user to enter the sum of these two integers. Revise the program to generate three single-digit integers and prompt the user to enter the sum of these three integers
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
364
(Algebra: solve quadratic equations) The two roots of a quadratic equation ax2 + bx + c = 0 can be obtained using the following formula:
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
249
(Cost of driving) Write a program that prompts the user to enter the distance to drive, the fuel efficiency of the car in miles per gallon, and the price per gallon, and displays the cost of the trip. Here is a sample run:
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
282
(Financial application: monetary units) Rewrite Listing 2.10, ComputeChange .java, to fix the possible loss of accuracy when converting a double value to an int value
Java programming
2022-06-03
Answers
30
Question
40
Followers
30
0
1
280
Total:
555
Previous
26
27
28
29
30
Next
Go