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
(Display calendars) Write a program that prompts the user to enter the year and first day of the year and displays the calendar table for the year on the console
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
214
(Display the first days of each month) Write a program that prompts the user to enter the year and first day of the year, and displays the first day of each month in the year
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
167
(Display leap years) Write a program that displays all the leap years, ten per line, from 101 to 2100, separated by exactly one space. Also display the number of leap years in this period
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
188
(Compute e) You can approximate e using the following series:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
193
(Compute p) You can approximate p by using the following series:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
206
(Sum a series) Write a program to sum the following series:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
307
(Demonstrate cancellation errors) A cancellation error occurs when you are manipulating a very large number with a very small number. The large number may cancel out the smaller number. For example, the result of 100000000.0 + 0.000000001 is equal to 100000000.0
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
298
(Financial application: loan amortization schedule) The monthly payment for a given loan pays the principal and the interest
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
189
(Financial application: compare loans with various interest rates) Write a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, with an increment of 1/8. Here is a sample run:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
312
(Display prime numbers between 2 and 1,000) Modify Listing 5.15 to display all the prime numbers between 2 and 1,000, inclusive. Display eight prime numbers per line. Numbers are separated by exactly one space
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
160
(Display numbers in a pyramid pattern) Write a nested for loop that prints the following output:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
232
(Display four patterns using loops) Use nested loops that display the following patterns in four separate programs:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
276
(Display pyramid) Write a program that prompts the user to enter an integer from 1 to 15 and displays a pyramid, as shown in the following sample run:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
208
Total:
555
Previous
20
21
22
23
24
Next
Go