Question: 4. Answer each of the short questions: a) Given two variables for storing the hours worked (hours) and wage rate (wageRate) of an employee. Write

 4. Answer each of the short questions: a) Given two variables

4. Answer each of the short questions: a) Given two variables for storing the hours worked (hours) and wage rate (wageRate) of an employee. Write an input statement to read the values of these two variables from keyboard. b) Write an output statement (also known as display statement) to display your name, your current major and your expected year of graduation in separate lines (but using only one cout statement). c) What will be the value of the following expression using C++ rule, show the details. 34 + 3/5 * 5 = ? d) Write an assignment statement to write the following algebraic formula in C++. b-C 2c +5 e) Given a variable as below: float y = 3.143679; Write a display statement to display the value of the variable, and displaying only 2 digits after the decimal. You do not manipulate or use the number given, let the computer do it using your statement. a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!