Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2.11 . What is Z after execution? DELTA_Z = 0.5 Z=10 DOFOR J = 1, 500 Z = Z + DELTA_Z IF Z > 40

2.11. What is Z after execution? DELTA_Z = 0.5 Z=10 DOFOR J = 1, 500 Z = Z + DELTA_Z IF Z > 40 THEN EXIT LOOP ENDDO

2.12. What is Z after execution? DELTA_Z = 0.5 Z=10 DOFOR J = 1, 500 Z_PREVIOUS = Z Z = Z + DELTA_Z IF Z*Z_PREVIOUS > 144 THEN EXIT LOOP ENDDO

2.13. Write pseudocode to sum consecutive integers. Let the lowest integer be L and the highest be H, and let both L and H be provided by the user.

2.14. Write pseudocode to sum consecutive even integers. Let the lowest even integer be L and the highest even integer be H, and let both L and H be provided by the user.

2.15. Write pseudocode to sum consecutive odd integers. Let the lowest odd integer be L and the highest odd integer be H, and let both L and H be provided by the user.

2.16. Write pseudocode to calculate the SUM of consecutive integers from the lowest, L, through the highest, H, but without exceeding 100. If 100 would be exceeded, then let SUM reach as high as possible a value without exceeding 100. Let L and H be provided by the user.

2.17. Write pseudocode to add one increment of time DELTA_T for each cycle to get a new value of TOTAL for each cycle, until TOTAL reaches P*DELTA_T, where P is a whole number representing the number of cycles. Let your initial value of TIME be 0. DELTA_T and P are INPUT values provided by the user.

2.18. Write pseudocode to add one increment of time DELTA_T for each cycle to get a new value of TOTAL for each cycle, until TOTAL reaches P*DELTA_T, but without exceeding 100. If 100 would be exceeded, then let TOTAL reach as high as possible a value without exceeding 100. P is a whole number representing the number of cycles that would be needed for TIME to reach P*DELTA_T. Let your initial value of TIME be 0. DELTA_T and P are INPUT values provided by the user.

2.19. Write pseudocode to add one increment of time DELTA_T for each cycle to get a new value of TOTAL for each cycle, until TOTAL reaches P*DELTA_T, but without the product of consecutive values of TOTAL exceeding 100. If 100 would be exceeded, then let the product reach as high as possible a value without exceeding 100. P is a whole number representing the number of cycles that would be needed for TIME to reach P*DELTA_T. Let your initial value of TIME be 0. DELTA_T and P are INPUT values provided by the user.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions