Similar Books


    No books found

Title
Chapter: 5 / Q: 25
(Compute p) You can approximate p by using the following series:
Chapter: 5 / Q: 26
(Compute e) You can approximate e using the following series:
Chapter: 5 / Q: 27
(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
Chapter: 5 / Q: 28
(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
Chapter: 5 / Q: 29
(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
Chapter: 5 / Q: 30
(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
Chapter: 5 / Q: 31
(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
Chapter: 5 / Q: 32
(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.)
Chapter: 5 / Q: 33
(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,
Chapter: 5 / Q: 34
(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
total questions: 772

Questions

772

Views

A PHP Error was encountered

Severity: Warning

Message: Undefined property: stdClass::$TotalViews

Filename: books/book.php

Line Number: 411

Best Answers

299

Points

5