Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

THIS IS IN PYTHON (NOTE: PLEASE KEEP SIMPLE...THIS IS A SIMPLE HIGH SCHOOL COMPSCI COURSE!) QUESTION #1 When do you HAVE to use a While

THIS IS IN PYTHON (NOTE: PLEASE KEEP SIMPLE...THIS IS A SIMPLE HIGH SCHOOL COMPSCI COURSE!)

QUESTION #1

When do you HAVE to use a While Loop instead of a For Loop?

QUESTION #2

Using at least one complete sentence, describe a time when skip counting might be a useful solution to a problem.

QUESTION #3

Write code using the range function to add up the series 3, 6, 9, 12, 15, ..... 66 and print the resulting sum.

Expected output: 759

QUESTION #4

Write code using the range function to add up the series 20, 30, 40, ... 90 and print the resulting sum.

Expected output: 440

QUESTION #5

Write code using the range function to add up the series 99, 98, 97, ... 1 and print the resulting sum.

Expected output: 4950

QUESTION #6

Write a program that asks the user to enter ten temperatures and then finds the sum. The input temperatures should allow for decimal values.

Sample Run

Enter Temperature: 27.6 Enter Temperature: 29.5 Enter Temperature: 35 Enter Temperature: 45.5 Enter Temperature: 54 Enter Temperature: 64.4 Enter Temperature: 69 Enter Temperature: 68 Enter Temperature: 61.3 Enter Temperature: 50 Sum = 504.3

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

Students also viewed these Databases questions

Question

Identify and control your anxieties

Answered: 1 week ago

Question

Understanding and Addressing Anxiety

Answered: 1 week ago