Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions

Question

10. What is meant by a feed rate?

Answered: 1 week ago