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
(Occurrence of max numbers) Write a program that reads integers, finds the largest of them, and counts its occurrences. Assume that the input ends with number 0. Suppose that you entered 3 5 2 5 5 5 0; the program finds that the largest is 5 and the occurrence count for 5 is 4
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
258
(Financial application: find the sales amount) Rewrite Programming Exercise 5.39 as follows:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
163
(Simulation: heads or tails) Write a program that simulates flipping a coin one million times and displays the number of heads and tails
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
205
(Financial application: find the sales amount) You have just started a sales job in a department store. Your pay consists of a base salary and a commission. The base salary is $5,000. The scheme shown below is used to determine the commission rate
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
187
(Decimal to octal) Write a program that prompts the user to enter a decimal integer and displays its corresponding octal value. Don’t use Java’s Integer .toOctalString(int) in this program
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
454
(Decimal to binary) Write a program that prompts the user to enter a decimal integer and displays its corresponding binary value. Don’t use Java’s Integer .toBinaryString(int) in this program
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
465
(Business application: checking ISBN ) Use loops to simplify Programming Exercise 3.9
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
177
(Summation) Write a program to compute the following summation
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
182
(Game: scissor, rock, paper) Programming Exercise 3.17 gives a program that plays the scissor-rock-paper game. Revise the program to let the user continuously play until either the user or the computer wins more than two times than its opponent
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
160
(Perfect number) A positive integer is called a perfect number if it is equal to the sum of all of its positive divisors, excluding itself. For example,
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
240
(Game: lottery) Revise Listing 3.8, Lottery.java, to generate a lottery of a twodigit number. The two digits in the number are distinct. (Hint: Generate the first digit. Use a loop to continuously generate the second digit until it is different from the first digit.)
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
290
(Financial application: compute CD value) Suppose you put $10,000 into a CD with an annual percentage yield of 5.75%. After one month, the CD is worth
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
205
(Financial application: compound value) Suppose you save $100 each month into a savings account with the annual interest rate 5%. So, the monthly interest rate is 0.05 / 12 = 0.00417. After the first month, the value in the account becomes
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
155
Total:
555
Previous
19
20
21
22
23
Next
Go