1. Engineering
  2. Computer Science
  3. question 1 using at least one complete sentence describe...

Question: question 1 using at least one complete sentence describe...

Question details

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

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution