Question: please help me with these two questions C3 L Type in the following program (Program 2.3). Identify the variables and the data type. Show the
C3 L Type in the following program (Program 2.3). Identify the variables and the data type. Show the content of the memory for the variable. Program 2.3 #include iostream> using namespace std; int a int Length, width, area: 9 10 length - 10 width - 20 Area-length width 13 return 0 1 a. b. C. Compile and run the Program 2.3. Identify the variables and the data type. Show the content of the memory for the variable. Now, modify the Program 2.3 by changing statement at Line 9 with the value of length to 10.10 and statement at line 10 with the value of width to 20.20 Compile and run the mexlified program. Explain what happen. (5 marks) 64 15. Convert the pseudo code of Algorithm 2.2 into correct C++ code. Compile and run the following program. Determine the content of each variable and the expected result of the program. Use your own test data if none is supplied. Algorithm 2.2: Convert the currency of Malaysian ringgit to Turkish Lira 1. Start 2. Set MYR TO TRY to 0.5997 3. Read MYR 4. Calculate turkish Lira - MYR * MYR TO_TRY 5. Display turkish Lira 6. End
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
