[solved]-Write C Statements Include Header Files Iostream String Statement Allows Use Cin Cout Endl Q39063124
Write C++ statements that include the header files iostream andstring. statement that allows you to use cin, cout, and endlwithout the prefix std:: statements that declare and initialize thefollowing named constants: SECRET of type int initialized to 11 andRATE of type double initialized to 12.50. statements that declarethe following variables: num1, num2, and newNum of type int; nameof type string; and hoursWorked and wages of type double.statements that prompt the user to input two integers and store thefirst number in num1 and the second number in num2. statement(s)that outputs the values of num1 and num2, indicating which is num1and which is num2. For example, if num1 is 8 and num2 is 5, thenthe output is: statement that multiplies the value of num1 by 2,adds the value of num2 to it, and then stores the result in newNum.statement that outputs the value of newNum. statement that updatesthe value of newNum by adding the value of the named constantSECRET to it. statement that outputs the value of newNum with anappropriate message. statements that prompt the user to enter aperson’s last name and then store the last name into the variablename. statements that prompt the user to enter a decimal numberbetween 0 and 70 and then store the number entered into hoursWorkedstatement that multiplies the value of the named constant RATE withthe value of hoursWorked and then stores the result into thevariable wages statements that produce the following output: Name://output the value of the variable name Pay Rate: $ //output thevalue of the RATE Hours Worked: //output the value of the variable//hoursWorked Salary: $ //output the value of the variable//wages
Expert Answer
Answer to Write C++ statements that include the header files iostream and string. statement that allows you to use cin, cout, and … . . .
OR

