Sequence of Square Roots Write a program that prints the square root values of the first 30 even integers, starting at 1. Use a while statement to achieve this output. Your output should have one value per line. The name of your loop control variable should be value. The loop should increment the value variable by one each iteration through the loop. The use of an if statement is required for this solution. You may assume that the math library (module) has previously been imported for you. 14 15 16 17 18 19 Check My Solution Test Results: ✓ Your program uses the while statement. Your program does not correctly test the required loop control variable (value). Your program correctly increments the required loop control variable (value). Your program correctly computes the value's square root. Your program prints output. Your program uses an if statement to check for even values. 3 tests were not run. X ✓ ✓ print(math.sqrt(value)) # Increment the count of even numbers processed even_count += 1 # Increment the value to check the next integer value += 1 ✓ X 56% of tests passed. Reset

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

write python code to solve it thank you!

Sequence of Square Roots
Write a program that prints the square root values of the first 30 even integers, starting at 1. Use a while statement to achieve this output. Your output should have one
value per line. The name of your loop control variable should be value. The loop should increment the value variable by one each iteration through the loop. The use of an if
statement is required for this solution. You may assume that the math library (module) has previously been imported for you.
14
15
16
17
18
19
Check My Solution
print(math.sqrt(value))
# Increment the count of even numbers processed
even_count += 1
# Increment the value to check the next integer
value += 1
Test Results:
X
X
Your program uses the while statement.
Your program does not correctly test the required loop control variable (value).
Your program correctly increments the required loop control variable (value).
Your program correctly computes the value's square root.
Your program prints output.
Your program uses an if statement to check for even values.
3 tests were not run.
56% of tests passed.
Reset
Transcribed Image Text:Sequence of Square Roots Write a program that prints the square root values of the first 30 even integers, starting at 1. Use a while statement to achieve this output. Your output should have one value per line. The name of your loop control variable should be value. The loop should increment the value variable by one each iteration through the loop. The use of an if statement is required for this solution. You may assume that the math library (module) has previously been imported for you. 14 15 16 17 18 19 Check My Solution print(math.sqrt(value)) # Increment the count of even numbers processed even_count += 1 # Increment the value to check the next integer value += 1 Test Results: X X Your program uses the while statement. Your program does not correctly test the required loop control variable (value). Your program correctly increments the required loop control variable (value). Your program correctly computes the value's square root. Your program prints output. Your program uses an if statement to check for even values. 3 tests were not run. 56% of tests passed. Reset
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Types of Loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education