Similar Books


    No books found

Title
Chapter: 5 / Q: 15
(Display the ASCII character table) Write a program that prints the characters in the ASCII character table from ! to ~. Display ten characters per line. The ASCII table is shown in Appendix B. Characters are separated by exactly one space
Chapter: 5 / Q: 16
(Find the factors of an integer) Write a program that reads an integer and displays all its smallest factors in increasing order. For example, if the input integer is 120, the output should be as follows: 2, 2, 2, 3, 5
Chapter: 5 / Q: 17
(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:
Chapter: 5 / Q: 18
(Display four patterns using loops) Use nested loops that display the following patterns in four separate programs:
Chapter: 5 / Q: 19
(Display numbers in a pyramid pattern) Write a nested for loop that prints the following output:
Chapter: 5 / Q: 20
(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
Chapter: 5 / Q: 21
(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:
Chapter: 5 / Q: 22
(Financial application: loan amortization schedule) The monthly payment for a given loan pays the principal and the interest
Chapter: 5 / Q: 23
(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
Chapter: 5 / Q: 24
(Sum a series) Write a program to sum the following series:
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