Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Explain in plain English what the following code does. Be as specific as possible. 10 points for i in range (0,100,10) : print(i //

image text in transcribed
image text in transcribed
1. Explain in plain English what the following code does. Be as specific as possible. 10 points for i in range (0,100,10) : print(i // 7) 2. Write code that does the following. Asks a user for a word and saves it. Determines whether the word is a pangram. If it is, the code prints YES. Otherwise, the code prints NO. (Try to be as close as you can with syntax) 15 points The definition of a pangram: a sentence that contains all the letters of the alphabet. Example: "The quick brown fox jumps over the lazy dog" yield YES "This sentence is not a pangram" yields NO 3. Write code to print all numbers evenly divisible by 3 between 0 and 100 inclusive. (Try to be as close as you can with syntax) 10 points 4. Describe the relationship between integer division (//) and remainder (\%). 10 points 5. Write code to calculate the number of minutes in the year 2018. (Try to be as close as you can with syntax) 10 points 6. List what is printed in the following code. Be as specific as possible. 10 points for i in range(5): for j in range (0,i) : print(str(i+j)) 7. Translate the following for loop into an equivalent while loop. 10 points for count in range(100): print(count) 8. Write code which asks the user for their percentage score and outputs the grade according to the following table. 15 points 9. Explain how you decide between using a for loop and a while loop. When is a forever loop (while True:) appropriate? 10 points

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Mastering Real Time Analytics In Big Data A Comprehensive Guide For Everyone

Authors: Lennox Mark

1st Edition

B0CPTC9LY9, 979-8869045706

More Books

Students also viewed these Databases questions