118k views
2 votes
Accurately represent a specified process using a flow-chart that includes at least one loop and appropriate conditional logic (IF-THEN-ELSE).

For this assignment, you will submit a flow-chart representation that prints the leap years from the years 2020 to 2073. Use a loop structure to increment through the years. Hint: The modulo operator (%) is used to find the remainder after a division operation. For example: 2023%4 = 3; 2024%4 = 0.A complete flowchart for the process you are describing.

Your flowchart should include circles representing the beginning and end of the process, actions (square boxes), and at least two decisions (diamond shaped boxes); at least one decision should be part of a loop structure and at least one decision should be part of an if-then-else structure. Use Insert-> Shapes in MS Word or a similar program to construct your flowchart, hand drawings will not be accepted.

1 Answer

3 votes

Answer:

See explaination

Step-by-step explanation:

An algorithm is the step by step process of solving any particular problem. After an algorithm is developed, solving any problem becomes easier.

Below is an algorithm that prints the leap years from the years 2020 to 2073.

ALGORITHM:

step 1: assign i with 2020

step 2: if i is 2074 then end else continue

step 3: if i % 4 is 0 then print i else continue

step 4: compute and assign i = i +1

step 5: goto step 2

Please kindly check attachment for the associated Flow chart.

Accurately represent a specified process using a flow-chart that includes at least-example-1
User Dave De Jong
by
5.4k points