4.) Write assignment statements that perform the following operations with the variables a, b, and c:
Adds 2 to a and stores the result in b.
Multiplies b by 4 and stores the result in a.
Divides a by 3.14 and stores the result in b.
Subtracts 8 from b and stores the result in a.
Stores the value 27 in a.
Stores the character ‘K’ in c.
Stores the ASCII code for ‘B’ in c.
16.) Which of the following are not valid cout statements? (Select all that apply.)
a.)cout << "Hello World";
b.)cout << "Have a nice day"\n;
c.)cout < value;
d.)cout << Programming is great fun;
17.)Which of the following are not valid cout statements? (Select all that apply.)
a.)cout << "Hello World";
b.)cout << "Have a nice day"\n;
c.)cout < value;
d.) cout << Programming is great fun;