Thursday, March 14, 2013

English

Page 97
Q2)
a,d,j
Q8)
b./because variable not initialized
d./because we emergency to have variables not values
e./because x takes int number
f./one of the parts needs to have only(prenominal) variable not expression
g./ because we need to have variables not values
h./because we need int result not double
Q9)
a = 3;
b = 4;
c = (3 % 4) * 6 =18
d = c / b; >> 18/4 = 4
e = (a + b + c + d)/ 4 >> e=7

Q10)
n = 12; //Line 1 incorrect because no type int n=12
char letter = ; //Line 2 incorrect no char given char letter=a
int one = 5, two; //Line 3
double x, y, z; //Line 4

Q15)
x = 17;
y = 15;
x = x + y / 4;
z = x % 3 + 4;
w = 17 / 3 + 6.5;
t = x / 4.0 + 15 % 4 - 3.5;
result z=6,w=11.5,t=4.5
Q16)
a. System.out.println(x + + y);
b. System.out.println(x + + y);
takings:
92
25 35
Q17)
a. System.out.println(x = + x + , y = + y + , z = + z);
getup signal: x = 2, y = 5, z = 6
b. System.out.println(x + y = + (x + y));
product: x + y = 7
c. System.out.println(Sum of + x + and + z + is + (x + z));
output: Sum of 2 and 6 is 8
d. System.out.println(z / x = + (z / x));
output: z / x = 3
e. System.out.println( 2 times + x + = + (2 * x));
output: 2 times 2 = 4

Q18)
a. System.out.println(a + b - c);
0.5
b. System.out.println(15 / 2 + c);
24.5
c. System.out.println(a / (double)(b) + 2 * c);
37.6
d. System.out.println(14 % 3 + 6.3 + b / a);
8.3
e.

Order your essay at Orderessay and get a 100% original and high-quality custom paper within the required time frame.

System.out.println((int)(c)% 5 + a - b);
10
f. System.out.println(13.5 / 2 + 4.0 * 3.5 + 18);
38.75
Q23)
overt class Exercise23 {
static last int SECRET_NUM = 11;
static final double PAY_RATE = 18.35;
public void main(String[] arg) {
int one, two;
int hoursWorked=3;
int troika=1;
double first, insurgent,paycheck;
one = 18;
two = 11;
first = 25;
second = first * three;
second = 2 * SECRET_NUM;
System.out.println(first + + second + + SECRET_NUM);...If you want to get a replete(p) essay, order it on our website: Orderessay



If you want to get a full essay, wisit our page: write my essay .

No comments:

Post a Comment