Explain exactly what the system does when it executes the statement s = a / b
Write C++ instructions to swap the contents of two memory cells n and m
Write C++ instructions to compute the expression 5x^2 + 23x + 31 for x = 3.6 and to store the answer in a memory cell
Classify each of the following as a valid or invalid variable name. If invalid, explain why.
a. 5k2
b. life_span
c. tote
d. al + b
e. ‘val’
f. bbb3
Which of the following are valid type declarations? Explain the invalid ones.
a. int xl, x2;
b. float k3k;
c. int 45;
d. char val3;
Are the following statements valid assignment statements? Explain the invalid ones
a. float x2 = 45.67;
b. 5val = 89;
c. x2*y = z;
d. int run_time = 67;
Write statements to store the following values in memory cells of the system
a. 564
b. 78.63
c. ‘$’
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here