Question
How much shorter will it take if you average 70 miles per hour?
2.9 Use the interactions pane to calculate how much money you will make if you work 40 hours at $13.00 and 10 hours at time and a half?
2.10 Test your understanding of Java with the following:
What does System.out.println() ; do?
What does the statement System.out.println(3 + 2); do?
What does the statement System.out.println("The answer is: " + 3 + 2) ; do?
What does the statement System.out.println("Hi " + " there") ; do?
2.11 Test your understanding of Java with the following:
What does the code int x = 3; System.out.println("The result is" + x) ; do?
What does the code String firstName = "Sue" ; System.out println(firstName); do?
What does the code System.out.println(2 < 3); do?
What does the code System.out.println(2 == 3); do?
What does the code System.out.println(3 >= 2) ; do?
2.12 What does int x = 1 / 3; System.out.println(x) ; do and why?
2.13 What does double d = 1 / 2.0; System.out.println(d) ; do and why?
2.14 What does double d1 = 1 / 3; System.out.printIn(d1) ; do and why?
2.15 What does the double d2 = (double) 1 / 3; System.out.println(d2) ; do and why?
Solution Preview
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
Java Problems Writeup1. Java interactions pane:
Time to travel 770 miles at 60 miles per hour:
12.833 hours
Time to travel 770 miles at 70 miles per hour:
11.0 hours
2. Java interactions pane:
Earnings for 40 hours at $13.00 per hour and 10 hours at 1.5x:
$715.00...