Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Fill in the blank spaces Understand the FOR-Loop Structure This lab requires you

ID: 3600698 • Letter: F

Question

Fill in the blank spaces

Understand the FOR-Loop Structure This lab requires you to implement a counit controlled loop using a for seep n Esamne the following code constant rntager NAXHCOR3-24 - ror houraJto MAx HOURS isplay the hour is , houn Step 3; Explain what you think wal be displayed to the screen in step Step j: Write a for loop that will print Go minutes to the screen. Complete the missing lines of Conatant Integer MAX NINUTES Duclare Integer minutes Far 1 to Display End For Step 4: Write a for loop that will print 60 seconds to the screen. Compiete the missing lines of code. Constant Integer MAX SECONDS Declare Integer seconds For - 1 to Display End For

Explanation / Answer

Please give the thumbs up, if it is helpful for you!!. Let me know if you have any doubts.

Step2:

The step 5 will print hours from 1 to 24 and the output should be in the format of:

The hour is 1

The hour is 2

......

The hour is 24

Step3:

Constant Integer MAX_MINUTES= 60

Declare Integer minutes

for minutes = 1 to MAX_MINUTES

DISPLAY minutes

END for

Step4:

Constant Integer MAX_SECONDS = 60

Declare Integer seconds

for seconds= 1 to MAX_SECONDS

DISPLAY seconds

END for

Step6:

The Step 5 will print number from 0 to 10 increamented by 2 and the output should be in the format of:

The number is 0

The number is 2

The number is 4

The number is 6

The number is 8

The number is 10

Step7:

Constant Integer MAX_VALUE = 200

Declare Integer counter

for counter = 20 to MAX_VALUE Step 20

DISPLAY "The number is ", counter

END for

Step9:

In step8, first it will ask user to enter the numStudents then loop will run from 1 to entered numStudents. and output will be like suppose, numStudents is 5 enterd by user then output will be execute from 1 to 5.

Step11:

loop will execcute for 5 times and each time it will ask for number and then add each number to produce total.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote