Question: using c++ 2. Given the following names, identify which one is constant and what type of constant and which one can be used as a

using c++ using c++ 2. Given the following names, identify which one is constant

2. Given the following names, identify which one is constant and what type of constant and which one can be used as a variable. If it is neither a valid variable name or a constant, then click on Invalid box (10 points) Item Valid Variable Constant Type of Constant Invalid _payRate '% A+B -3.25e-8 2xy True False sqrt(x) 4,000 Cin 3. Give valid C++ statement for each of the following (make sure to put semicolon to the end if you need that, your statement should be accurate one). (2x 5 = 10 points) a) Declare and initialize a variable called year to store the current year (2021) b) Write an assignment statement to compute the following expression. Vx+5 ph = 2x-3 Assume that x is already declared as float and its value is also provided. You need to declare phi and then write the expression to find the value of phi

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!