Problem 1RE: Write declarations for storing the following quantities. Choose between integers and floating-point... Problem 2RE: What is the value of mystery after this sequence of statements? int mystery = 1; mystery = 1 - 2 ... Problem 3RE: What is wrong with the following sequence of statements? int mystery = 1; mystery = mystery + 1; int... Problem 4RE: Write the following mathematical expressions in Java.... Problem 5RE: Write the following Java expressions in mathematical notation. a. dm = m (Math.sqrt(1 + v / c) /... Problem 6RE: What are the values of the following expressions? In each line, assume that double x = 2.5; double y... Problem 7RE: What are the values of the following expressions, assuming that n and m have type int, n is 17, and... Problem 8RE: What are the values of the following expressions? In each line, assume that String s = "Hello";... Problem 9RE: Assuming that a and b are variables of type int, fill in the following table: Problem 10RE: Suppose direction is an integer angle between 0 and 359 degrees. You turn by a given angle and... Problem 11RE: Find at least five compile-time errors in the following program. public class HasErrors { public... Problem 12RE: Find three run-time errors in the following program. public class HasErrors { public static void... Problem 13RE: Consider the following code segment. double purchase = 19.93; double payment = 20.00; double change... Problem 14RE: Explain the differences between 2, 2.0, 2, 2, and 2.0. Problem 15RE: Explain what each of the following program segments computes. a. x = 2; y = x + x; b. s = 2; t = s +... Problem 16RE: Write pseudocode for a program that reads a word and then prints the first character, the last... Problem 17RE: Write pseudocode for a program that reads a name (such as Harold James Morgan) and then prints a... Problem 18RE: Write pseudocode for a program that computes the first and last digit of a number. For example, if... Problem 19RE: Modify the pseudocode for the program in How To 2.1 so that the program gives change in quarters,... Problem 20RE Problem 21RE: You are cutting off a piece of pie like this, where c is the length of the straight part (called the... Problem 22RE: The following pseudocode describes how to obtain the name of a day, given the day number (0 =... Problem 23RE: Suppose you are given a string str and two positions i and j, where i comes before j. The following... Problem 24RE Problem 25RE: For each of the following computations in Java, determine whether the result is exact, an overflow,... Problem 26RE Problem 27RE: This chapter contains a number of recommendations regarding variables and constants that make... Problem 1PE: Write a program that displays the dimensions of a letter-size (8.5 11 inches) sheet of paper in... Problem 2PE: Write a program that computes and displays the perimeter of a letter-size (8.5 11 inches) sheet of... Problem 3PE: Write a program that reads a number and displays the square, cube, and fourth power. Use the... Problem 4PE: Write a program that prompts the user for two integers and then prints The sum The difference The... Problem 5PE: Enhance the output of Exercise E2.4 so that the numbers are properly aligned: Problem 6PE: Write a program that prompts the user for a measurement in meters and then converts it to miles,... Problem 7PE: Write a program that prompts the user for a radius and then prints The area and circumference of a... Problem 8PE: Write a program that asks the user for the lengths of the sides of a rectangle. Then print The area... Problem 9PE: Improve the program discussed in How To 2.1 to allow input of quarters in addition to bills. Problem 10PE: Write a program that helps a person decide whether to buy a hybrid car. Your programs inputs should... Problem 11PE: Write a program that asks the user to input The number of gallons of gas in the tank The fuel... Problem 12PE: File names and extensions. Write a program that prompts the user for the drive letter (C), the path... Problem 13PE: Write a program that reads a number between 1,000 and 999,999 from the user, where the user enters a... Problem 14PE: Write a program that reads a number between 1,000 and 999,999 from the user and prints it with a... Problem 15PE: Printing a grid. Write a program that prints the following grid to play tic-tac-toe. Of course, you... Problem 16PE: Write a program that reads in an integer and breaks it into a sequence of individual digits. For... Problem 17PE: Write a program that reads two times in military format (0900, 1730) and prints the number of hours... Problem 18PE: Writing large letters. A large letter H can be produced like this: It can be declared as a string... Problem 19PE: Write a program that transforms numbers 1, 2, 3, , 12 into the corresponding month names January,... Problem 20PE: Write a program that prints a Christmas tree: Remember to use escape sequences. Problem 1PP: Easter Sunday is the first Sunday after the first full moon of spring. To compute the date, you can... Problem 2PP: In this project, you will perform calculations with triangles. A triangle is defined by the x- and... Problem 3PP: The following pseudocode describes how a bookstore computes the price of an order from the total... Problem 4PP: The following pseudocode describes how to turn a string containing a ten-digit phone number (such as... Problem 5PP: The following pseudocode describes how to extract the dollars and cents from a price given as a... Problem 6PP: Giving change. Implement a program that directs a cashier how to give change. The program has two... Problem 7PP: An online bank wants you to create a program that shows prospective customers how their deposits... Problem 8PP: A video club wants to reward its best members with a discount based on the members number of movie... Problem 9PP: Consider the following circuit. Write a program that reads the resistances of the three resistors... Problem 10PP: The dew point temperature Td can be calculated (approximately) from the relative humidity RH and the... Problem 11PP: The pipe clip temperature sensors shown here are robust sensors that can be clipped directly onto... Problem 12PP Problem 13PP: Consider the following tuning circuit connected to an antenna, where C is a variable capacitor whose... Problem 14PP: According to the Coulomb force law, the electric force between two charged particles of charge Q1... format_list_bulleted