Question: Question # 1 : Using at least one complete sentence, describe why a for loop would be more appropriate to use than a while loop

Question #1 : Using at least one complete sentence, describe why a for loop would be more appropriate to use than a while loop in the following scenario. >> Each animal in an animal rescue center is represented in a digital database. I want to iterate through each entry in the database and add the number of days the animal has been at the center.

Question #2 : As you know, polygons are 2-Dimensional shapes made of lines. Therefore, you could simply draw any polygon using the draw_lines() function and never need the draw_polygon() function. >> What is one advantage to using the draw_polygon() function? What is one disadvantage to using the draw_polygon() function?

Question #3 :

Write a program to input 6 numbers. After each number is inputted, print the biggest of the numbers entered so far.

Example:

Enter a number: 1 Largest: 1 Enter a number: 3 Largest: 3 Enter a number: 4 Largest: 4 Enter a number: 9 Largest: 9 Enter a number: 3 Largest: 9 Enter a number: 5 Largest: 9

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!