Question: c++ Determine the value that will be stored in the variable x, after the execution of the expression in Table Q1(a), given y =9, and

c++
c++ Determine the value that will be stored in the variable x,
after the execution of the expression in Table Q1(a), given y =9,

Determine the value that will be stored in the variable x, after the execution of the expression in Table Q1(a), given y =9, and z = 3. Table Q1(a) Expressions i) x=(y!=0); ii) * = (5z + y/3 il)=(5 >= (z. 2)); iv) - (y> marks True ) Display "Congratulations You get A." False Display "Sorry! You did not get Figure Q1(b) Convert the C# program in Figure Q1(c) to the switch statement: SOURCE CODE #include using namespace std; int main() int A: cin>>A; it (A -- 1 11 A-2) *-10; else if (A -- 3 11 A = 4) x=20; else x=30: return 0; Figure Q1(c) [6 marks] (d) Write full C++ program using if else it.else statement to display the grade and grade point for a subject when the user key in their mark by referring to Table Q1(d). Table Q1(d) Marks Grade Grade Point 80 - 100 A 4.0 60 - 79 B 3.0 45 - 59 2.0 40 - 44 D 1.0 00 - 39 E 0

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!