







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








v1. 4/8/
In this task, you are being asked to write a program that calculates the average of numbers.
In this task, you are being asked to understand the evaluation order of various operators. Complete the following table by writing the value of each expression in the Value column without using a calculator and the computer.
Now, crate a program called Expressions.java, and write output statements and print both the expression and its value.
In this task, you are being asked to understand the difference between integer and floating-point division in Java. Complete the following table by writing the value of each expression in the Value column without using a calculator and the computer.
Now, crate a program called Divisions.java, write output statements and print both the expression and its value.
In this task, you are being asked to identify and correct the errors in a program. There are a number of syntax errors in the following program. Locate and correct as many as you can. / What's wrong with this program? / public MyProgram { public static void Main(String args); } int a; b, c \ Three integers 3 = a b = 4 a + b = c System.out.println('The value of c is' + C); {
In this task, you are being asked to correctly use the E / e notation to represent floating-point numbers. First, write each of the below numbers as floating-point numbers without using the powers of 10 by hand (no calculators please). Second, how would each of the following numbers be represented in E / e notation? a. 3.287 Ć 106 b. - 9.7865 Ć 1012
In this task, you are being asked to write a given word problem as a program. One acre of land is equivalent to 43,560 square feet. Write a program that calculates the number of acres in a tract of land with 389,767 square feet. Hint: Divide the size of the tract of land by the size of an acre to get the number of acres.
In this task, you are being asked to write a given word problem as a program. Create a variable to store the amount of a purchase as a real value. The program should then compute the state and county sales tax. Assume the state sales tax is 4 percent and the county sales tax is 2 percent. The program should display the amount of the purchase, the state sales tax, the county sales tax, the total sales tax, and the total of the sale (which is the sum of the amount of purchase plus the total sales tax).
In this task, you are being asked to write a given word problem as a program. A cookie recipe calls for the following ingredients: