Problems 9-35 odd numbers only(9,11,13,15 …35) k newNum numi (int) (4.6/2)1 . Do
ID: 3604791 • Letter: P
Question
Problems 9-35 odd numbers only(9,11,13,15 …35)
k newNum numi (int) (4.6/2)1 . Do a walk-through to find the value assigned to e. Assume that all variables are properly declared. a -31 es" (a%b) * 6; e-(a b+ d)/ 4 10. Which of the following variable declarations are correct? If'a variable declaration is not correct, give the reasoníy) and provide the correct variable declaration. n = 12; char letter int two; //Line 3 double x, Y zi //tine 1 //tine 2 //Line 4 Which of the following are valid Java assignment statements? Assume that i, x, and percent are double variables. b, x+2=x; 6, percent-10 . Write Java statements that accomplish the following. a. Declare int variables x and y b. Initialize an int variable x to 10 and a char variable ch to 'B c. Update the value of an int variable x by adding 5 to it. . Declare and initialize a double variable payRate to 12.50 Copy the value of an int variable firstNum into an int variable tempNum. Swap the contents of the int variables x and y. (Declare additional variables, if necessary.) s Suppose x and y are double variables. Output the contents of x , y, and the expression x + 12/y 18 Declare a char variable grade and set the value of grade to 'A I Declare int variables to store four integers the value of a double variable z to the nearest integer into Copy an int variable x. Write each of the following as a Java expression. 32 times a plus b The characier that represents 8Explanation / Answer
As per Chegg guidelines an expert is not allowed to answer more than 4 questions if there are more than 2 questions. If an expert breaks the rules the account will be revoked. As i should not violate the guidelines I answer first 4 questions.
9. 7
11. a , c
13.
a) 32 * a + b;
b) char c = '8';
c) String name = "Julie Nelson";
d) (b * b - (4 * a * c)) / 2 * a
e) (a + b) / (c * (e * f) - (g * h))
f) (-b + ( b * b - (4 * a * c))) / 2 *a
15. x = 20 y = 15 z = 6 w = 11.5 t = 4.5
17.
a) x = 2, y = 5, z 6
b) x + y = 7
c) Sum of 2 and 6 is 8
d) z / x = 3
e) 2 times 2 = 4
**Comment for any further queries.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.