Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer a - l Fall Term 201R statemonts that include the headet files b) Write aCstatement that allows you to use cin, cout, and

image text in transcribed

please answer a - l

Fall Term 201R statemonts that include the headet files b) Write aCstatement that allows you to use cin, cout, and endi c) Write Ces statements that declare and initialize the following named constant SECRET of type initialized to 11 and RAT1 of type d initializced to 12.sO statements that declare the following variables: nomi . mnn2, and newNaim of type write ( name of type string and hours Worked and wages of type d c) Write C+4 statements that prompt the user to input two integers and store the first numher in nomi und the second number in num Write a Ctt statements) that outputs the values of numl and num2, indicating which is numt and which is num2 For example, if numl is 8 and num2 is 5, then the output is: The value n the value of num2 5 stores the result in new Num. Then, write a C++ statement that outputs the value of newNum SECRET to it. Then, write a Ci+ statement that outputs the value of new Num with an appropriatue of nun &and statement that multiplies the value of numl by 2, adds the value of num2 to it, and then g) Write a C h) Write a Cr+ statement that updates the value of new Num by adding the value of the named constant messige it C satements that prompt the uscr to ernter a pinion's last name ter a person's last name and then store the last name into the variable name. rite C++ statements that prompt the user to enter a decimal number between 0 and 70 and then store the number entered into hours Worked Write a C+t statement that multiplies the valuc of the named constant RATE with the value of hours Worked and then stores the result into the variable wages Write C++statements that produce the following output: l) Name :output the value of the variable name Pay Rate : $ Output the value of RATE Hours Worked: output the value of the variable hoursWorked Salary: Soutput the value of the variable wages For example, if the valuc of name is 'Rainbow" and hoursWorked is 45.50, then the output is Name Rainbow Pay Rate: S12.50 Hours Worked: 45.50 Salary: $568.75 m) Write a C+ program that tests cach of the C++ statements that you wrote in parts a through l. Place the statements at the appropriate place in the C++ program segment given at the beginning of this problem. Run your program (twicc) on the following input data: a. num1 13, num2 28; name "Jacobson", hoursWorked 48.3 b. num1 32, num2 15; name Crawford", hoursWorked 58.45 DELL F12 F5

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions

Question

What was your first job?

Answered: 1 week ago

Question

=+j Identify the challenges of training an international workforce.

Answered: 1 week ago