Similar Books


    No books found

Title
Chapter: 4 / Q: 21
(Check SSN) Write a program that prompts the user to enter a Social Security number in the format DDD-DD-DDDD, where D is a digit. Your program should check whether the input is valid. Here are sample runs:
Chapter: 4 / Q: 22
(Check substring) Write a program that prompts the user to enter two strings and reports whether the second string is a substring of the first string
Chapter: 4 / Q: 23
(Financial application: payroll) Write a program that reads the following information and prints a payroll statement:
Chapter: 4 / Q: 24
(Order three cities) Write a program that prompts the user to enter three cities and displays them in ascending order. Here is a sample run:
Chapter: 4 / Q: 25
(Generate vehicle plate numbers) Assume a vehicle plate number consists of three uppercase letters followed by four digits. Write a program to generate a plate number
Chapter: 4 / Q: 26
(Financial application: monetary units) Rewrite Listing 2.10, ComputeChange. java, to fix the possible loss of accuracy when converting a float value to an int value. Read the input as a string such as \"11.56\"
Chapter: 5 / Q: 1
(Count positive and negative numbers and compute the average of numbers) Write a program that reads an unspecified number of integers, determines how many positive and negative values have been read, and computes the total and average of the input values (not counting zeros)
Chapter: 5 / Q: 2
(Repeat additions) Listing 5.4, SubtractionQuizLoop.java, generates five random subtraction questions. Revise the program to generate ten random addition questions for two integers between 1 and 15. Display the correct count and test time
Chapter: 5 / Q: 3
(Conversion from kilograms to pounds) Write a program that displays the following table (note that 1 kilogram is 2.2 pounds):
Chapter: 5 / Q: 4
(Conversion from miles to kilometers) Write a program that displays the following table (note that 1 mile is 1.609 kilometers):
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