Programming Questions? Ask a Programmer for Answers ASAP
3. Write assignment statements that perform the following operations with the variables a, b, and c.a. Adds 2 to a and stores the result in b b. Multiplies b times 4 and stores the result in a c. Divides a by 3.14 and stores the result in b d. Subtracts 8 from b and stores the result in a
Assignment statements that perform operations with the variables a, b, and c* (*Actually none of these operations involves the variable c at all... is this an error, or a 'trick answer'?):b = a + 2a = b * 4b = a / 3.14a = b - 8(PS: In some coding systems there would be a semicolon; at the end of each of these, e.g. a = b - 8; for the last one.)If there is anything wrong with them, please let me know and I'll correct the error.