1 write c statements in a source code file on hercules according to the following in 5346952
1. Write C++ statements in a source code file on Hercules according to the following instructions:
a. Write C++ statement(s) that include the header files iostream and string.
b. Write C++ statement(s) that enable you to use cin, cout, and endl without using the prefix std::.
c. Write C++ statement(s) that declare the named constants SECRET, of type int and initialized to 11, and RATE, of type double and initialized to 12.50.
d. Write C++ statement(s) that declare the variables num1, num2, and newNum of type int.
e. Write C++ statement(s) that declare a variable name of type string.
f. Write C++ statement(s) that declare variables hoursWorked and wages of type double.
g. Write C++ statement(s) that prompt the user to input two integers, storing the first in num1 and the second in num2.
h. Write C++ statement(s) that output the values of num1 and num2 and a descriptive label for each value.
i. Write C++ statement(s) that multiply the value of num1 by 2, adds the value of num2 to it, storing the result in newNum.
j. Write C++ statement(s) that output the value of newNum.
k. Write C++ statement(s) that update the value of newNum by adding the value of SECRET.
l. Write C++ statement(s) that output the value of newNum and a descriptive label.
m. Write C++ statement(s) that prompt the user to enter a person’s last name, storing the result in name.
n. Write C++ statement(s) that prompt the user to enter a decimal value between 0.0 and 70.0, storing the result in hoursWorked.
o. Write C++ statement(s) that multiply the value of RATE and the value of hoursWorked, storing the result in wages.
p. Write C++ statement(s) that output the values of name, RATE, hoursWorked, wages, and some descriptive labels.
q. Write a complete C++ program that includes all the statements you wrote for parts a through p. Put the statements you wrote for parts d though p in a main function.
r. Test your C++ program on the following two sets of data:
– num1 = 13, num2 = 28, name = “Jacobson”, hoursWorked = 48.3
– num1 = 32, num2 = 15, name = “Crawford”, hoursWorked = 58.45
Submit your source code and a script that captures the following activities: compiling your program and executing your program.