141k views
0 votes
Create a flowchart from start to end. 1.Initialize Z (set Z=0)2.Ask for user’s input X3.If X =1, then continue to the next statement. If X does not equal to 1, end the program.4.While Z is incrementing by 1, print Z. (Note: use WHILE symbol for the flowchart)5.Print Z until Z = 5. 6.When Z = 5, ends the program and print "HW is done".

1 Answer

6 votes

Answer:

The flowchart to this question can be given in attachment.

Step-by-step explanation:

In the given statement, a flowchart is defined, in which we use an oval shape to start the, in the next step square shape is used, that initializes the value 0 in z variable, and an input box is used for user input in x variable.

  • In the next step, the conditional box is used, that checks variable x value if the value is equal to 1, it will increment the value of variable z by 1.
  • Inside this another, if block is used, that check value of z equal to 5, if the value does not match it will increment the value of z, and prints its value.
Create a flowchart from start to end. 1.Initialize Z (set Z=0)2.Ask for user’s input-example-1
User Icewind
by
5.6k points