Consider the vi program shown in Fig. B3a. i. For the while loop, what is the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Consider the vi program shown in Fig. B3a. i. For the "while" loop, what is the last value of i before end of the loop? (3 marks) ii. Write down the array elements of "Array 1". (15 marks) iii. For the "for" loop, what is the last value of i before end of the loop? (3 marks) iv. Write down the array elements of "Array 2". (9 marks) (3 marks) v. Is the array "Result" a 1-D or 2-D array ? vi. What is the data of "Value"? (6 marks) vii. What is the data of "Element" ? (6 marks) 8 zap Select 5210 8 SE 2 1 (b) Fig. B3b shows the False case of a vi program. Write down the output formula of this case, i. Array 1 False STIL Array 2 Array Size Result OF THE Draw the True case of a vi program if the output formula is: Y = A + B² Value 9825 Index Array Element 321 LIFE Fig. Q3b Fig. Q3a (6 marks) (9 marks) Consider the vi program shown in Fig. B3a. i. For the "while" loop, what is the last value of i before end of the loop? (3 marks) ii. Write down the array elements of "Array 1". (15 marks) iii. For the "for" loop, what is the last value of i before end of the loop? (3 marks) iv. Write down the array elements of "Array 2". (9 marks) (3 marks) v. Is the array "Result" a 1-D or 2-D array ? vi. What is the data of "Value"? (6 marks) vii. What is the data of "Element" ? (6 marks) 8 zap Select 5210 8 SE 2 1 (b) Fig. B3b shows the False case of a vi program. Write down the output formula of this case, i. Array 1 False STIL Array 2 Array Size Result OF THE Draw the True case of a vi program if the output formula is: Y = A + B² Value 9825 Index Array Element 321 LIFE Fig. Q3b Fig. Q3a (6 marks) (9 marks)
Expert Answer:
Answer rating: 100% (QA)
Answera i The last value of i before the end of the while loop is 0 Explanation This is because the while loop condition is i 1 and the loop will cont... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these electrical engineering questions
-
The first production department of Stone Incorporated reports the following for April. Direct Materials Conversion Units Beginning work in process inventory 65,000 Percent Complete 60% Percent...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
In the real number system the equation a2 = 1 has exactly two solutions. Find at least eight different 3 3 matrices that satisfy the equation A2 = I3.
-
The tensile strength and number-average molecular weight for two poly (methyl methacrylate) materials are as follows: Tensile Strength (MPa) ____________ Number-Average Molecular Weight (g/mol) 50...
-
What is a hybrid language?
-
Fill in the Blank. In the displacement method, the ___________ of elements is directly approximated.
-
This problem continues the Daniels Consulting situation from Problem P5-45 in Chapter 5. Consider the January transactions for Daniels Consulting that were presented in Chapter 5. Daniels uses the...
-
Use the following information from separate companies a through d Net Income (Loss) Interest Expense Income Taxes a. $ 182,000 $ 65,520 $ 45,500 b. 176,600 58,278 63,576 C. 154,700 d. 185,100 40,222...
-
A rod on a ball and socket joint is attached to cables A and B as in Figure. (a) If a 50-N force is exerted on the massless rod at G, what is the tensile force at cables A and B? (b) Solve for the...
-
316. The graph of a folium of Descartes with equation 2x + 2y -9xy = 0 is given in the following graph. -3 -3-2 -1 YA 3 2+ 14 -1 -2- 1 2 3* This work, "Problem Set 3," is a derivative of Calculus...
-
When both the timing and amount of tax payments are uncertain, analysts should treat deferred tax liabilities as: A. equity. B. liabilities. C. neither liabilities nor equity.
-
Deferred tax liabilities should be treated as equity when: A. they are not expected to reverse. B. the timing of tax payments is uncertain. C. the amount of tax payments is uncertain.
-
Using the straight-line method of depreciation for reporting purposes and accelerated depreciation for tax purposes would most likely result in a: A. valuation allowance. B. deferred tax asset. C....
-
Excluding the investments in associates would result in the interest coverage ratio for Colorful Concepts being: A. lower. B. higher. C. the same. Sergei Leenid, CFA, is a long-only fixed income...
-
The adjusted financial statements were created during which phase of the financial analysis process? A. Data collection. B. Data processing. C. Data interpretation. Michael Wetstone is an equity...
-
1) Suppose a town's population is composed of 3 types of voters with the following distribution: 20% are in Group 1, 35% are in Group 2, and 45% are in Group 3. The town wants to build a park. They...
-
ABC company leased new advanced computer equipment to STU Ltd on 1 January 2019.STULtd has to pay annual rental of $290,000 starting at 1 January 2019. It is a four years lease with ultimate rental...
-
Amy is a calendar-year taxpayer reporting on the cash basis. Please indicate how she should treat the following items for 2012: a. She makes a deductible contribution to an IRA on April 15,...
-
Joan is a self-employed attorney in New York City. Joan took a trip to San Diego, CA, primarily for business, to consult with a client and take a short vacation. On the trip, Joan incurred the...
-
How much of each of the following prizes or awards is taxable? a. Cheline received a $50,000 gift bag at the Oscars in 2012. b. Jon received a gold watch worth $350 for 25 years of service to his...
-
Consider a binary equimolar mixture of acetone and chloroform at \(300 \mathrm{~K}\) and \(1 \mathrm{~atm}\). Because this mixture forms a binary azeotrope, methyl- \(n\)-pentyl ether solvent is used...
-
A system of three parallel reactions (Trambouze and Piret, 1959) involves the following reaction scheme: \[\mathrm{A} \xrightarrow{k_{1}} \mathrm{~B} \quad \mathrm{~A} \xrightarrow{k_{2}} \mathrm{C}...
-
When the third tPA cultivator in Example 2.3 is added to the cultivators in Example 7.6, as shown in Figure 7.27a, a significant time strain is placed on the process because the combined feed,...
Study smarter with the SolutionInn App