Rewrite the code in Exercise 29 using a While loop instead of the For loop. Data from
Question:
Rewrite the code in Exercise 29 using a While loop instead of the For loop.
Data from Exercise 29
Transcribed Image Text:
Declare A As Integer Declare B As Integer Declare N As Integer Set A = 0 %3D For (B = 1; B <= N; B++) N; B++) %3D Set A = A + (2 * B - 1) Set B = B + 1 End For Write A
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 66% (9 reviews)
Declare Declare ...View the full answer
Answered By
Shem Ongek
I am a professional who has the highest levels of self-motivation. Additionally, I am always angled at ensuring that my clients get the best of the quality work possible within the deadline. Additionally, I write high quality business papers, generate quality feedback with more focus being on the accounting analysis. I additionally have helped various students here in the past with their research papers which made them move from the C grade to an A-grade. You can trust me 100% with your work and for sure I will handle your papers as if it were my assignment. That is the kind of professionalism that I swore to operate within. I think when rating the quality of my work, 98% of the students I work for always come back with more work which therefore makes me to be just the right person to handle your paper.
4.80+
174+ Reviews
426+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Rewrite the loop from Exercise 2.29 to reduce the number of MIPS instructions executed. Exercise 2.29 Translate the following loop into C. Assume that the C-level integer i is held in register $t1,...
-
Using se (see Exercise 14.18) instead of , rewrite (a) The expression for t in Theorem 14.4; (b) The confidence interval formula of Theorem 14.5. Exercise 14.18 Show that (a) 2, the random variable...
-
Using loop ACFDEA from Figure 14.10, and the data from Table 14.6, what is the (a) Misclosure in the X component? (b) Misclosure in the Y component? (c) Misclosure in the Z component? (d) Length of...
-
3: Command pattern and a word-processor's Undo and Redo You probably have already used Ctrl+Z (for Undo) and Ctrl+Y (for Redo) in your word processor. What do you think might be a WordProcessor...
-
Two carts with negligible rolling friction are connected as shown in Figure E3.16. An input force is u(t). The output is the position of cart 2, that is, y(t) = q(t). Determine a state space...
-
Please bold answer in explanation Required information Problem 10-45 (LO 10-1) (Algo) [The following information applies to the questions displayed below.] Wanting to finalize a sale before year-end,...
-
What is Knotts Berry Farm?
-
The blood vascular system consists of blood vessels (arteries, arterioles, capillaries, and veins) that convey blood from the heart to the organs and back to the heart. This system should work so as...
-
A stock has an expected rate of return of 18.5% and a variance of 0.00264. What is the standard deviation for this stock? round to 2 decimals
-
Assume a runner runs 14 kilometers in 45 minutes and 30 seconds. Write a program that displays the average speed in miles per hour.
-
If N = 4 in the pseudocode in Exercise 29, then what number is displayed when the corresponding code is run? Data from Exercise 29 Declare A As Integer Declare B As Integer Declare N As Integer Set A...
-
Draw a flowchart corresponding to the pseudocode in Exercise 29. Data from Exercise 29 Declare A As Integer Declare B As Integer Declare N As Integer Set A = 0 %3D For (B = 1; B
-
In exercises find the derivative of the function by the limit process. (x) = -10x
-
Using the figure below, draw the FBD , ?Shear Force and Bending Moment diagrams and find the maximum internal moment for the beam shown. 10 kNm 10 kN 3 m
-
Suppose the goods market is: Y = 1800 - 100i and the LM curve Y = 500 +591, where x is the last digit of your ID number. Determine the equilibrium income (Y), interest rate (i). Explain the role of...
-
Complete the chart: [1] Length, L (m) Period, T (s) LogL LogT 0.10 0.63 0.20 0.90 0.30 1.00 0.40 1.27 0.50 1.42 0.60 1.55 0.70 1.68 0.80 1.80 0.90 1.90 1.00 2.02 Plot the data T vs L. [4 (title, axes...
-
A solid metal sphere with a diameter of 2 cm and a mass of 8 g is used for the following heat transfer experiments. You can assume the temperature throughout the inside of the metal sphere is...
-
2) A car 1200 kg is in a skid Force of friction 3200N and force of air resistance 1600N. Find the following i) The net force and acceleration of the car ii) The time required to stop from 95 km/hr...
-
The weight of 400 g of onions is a. 0.041 N b. 0.4 N c. 3.9 N d. 3920 N
-
Find the velocity, acceleration, and speed of a particle with the given position function. r(t) = (t 2 , sin t - t cos t, cos t + t sin t), t > 0
-
Consider WEP for 802.11. Suppose that the data is 10101100 and the key-stream is 1111000. What is the resulting cipher text?
-
Suppose that Bob receives a POP message from Alice. How does Bob know for sure that Alice created the message (rather than, say, Trudy)? Does PGP use a MAC for message integrity?
-
For the two-sender, two-receiver example, give an example of two CDMA codes containing 1 and 21 values that do not allow the two receivers to extract the original transmitted bits from the two CDMA...
-
XF Ltd. Is an expanding private company in the electric trade. Accounts preparing in January 2019 included the following information: Profit Statement for the year ended 31 st December 2018 Kshs.000...
-
Check On June 15, 2021, Sanderson Construction entered into a long-term construction contract to build a baseball stadium in Washington D.C., for $340 million. The expected completion date is April...
-
Q.1 Bassem Company purchased OMR420,000 in merchandise on account during the month of April, and merchandise costing OMR $350,000 was sold on account for OMR 425,000. Required: 1. Prepare journal...
Study smarter with the SolutionInn App