Question: a) Write c++ expression for the following algebraic expression y = 2a + b/a - b, assume a and are declared and defined. b) Declared

 a) Write c++ expression for the following algebraic expression y =

a) Write c++ expression for the following algebraic expression y = 2a + b/a - b, assume a and are declared and defined. b) Declared a floating point variable: x as below: double x: Write a C++ statement to read a value for x (an input statement) with a proper prompt. c) Write a selection statement to do the following: if hour less than or equal to 40, salary hour x wageRate, otherwise, salary = 40 x wageRate + (hours - 40) x overTime Assume that all the variables are already declared and their values are initialized. d) Declare a named constant GREET whose value is "Merry X-Mas" e) Convert the following expression suitably in C++ using library function. Balance = Principal * (1+RATE/T)^T Assume Principal, Rate and T are all known. T is the number of terms the interest is compounded

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!