C. Download the file from the Lab 2 drop box in D2L. Write a script that will report answers to the problems below. o O O O O Save and upload the script to the D2L drop box. o Include a screen capture of your output. Provide code for your answer after each problem. After running your script, your answers should be in complete sentences. Use Python to perform all calculations. Provide comments as needed. ●●● ● 1. Suppose your chickens laid 403 eggs in one week. You put the eggs into cartons, each holding one dozen eggs. How many full cartons will you have? 2. Joe works a job paying $15/hour and Jill is paid $21/hour at her job. How much will they earn altogether in one week if Joe works 30 hours and Jill works 20 hours? 3. Elias has 69 quarters. He goes to the bank and trades in four quarters for a $1 bill. How many quarters will he still have left after trading for as many dollars as possible? 4. What is the area of a circle with a diameter of 12 inches? Note: Area of a circle = 2². (Remember import math is needed to use special math values and functions in Python.) 5. Find the length of one leg of a right triangle if the other leg is 12 cm and the hypotenuse is 15 cm. Note: Use Pythagorean's Theorem. In a right triangle with legs a and b, and hypotenuse c, a² + b² = c². (Remember import math is needed to use special math values and functions in Python.) 7 15 cm 12 cm
C. Download the file from the Lab 2 drop box in D2L. Write a script that will report answers to the problems below. o O O O O Save and upload the script to the D2L drop box. o Include a screen capture of your output. Provide code for your answer after each problem. After running your script, your answers should be in complete sentences. Use Python to perform all calculations. Provide comments as needed. ●●● ● 1. Suppose your chickens laid 403 eggs in one week. You put the eggs into cartons, each holding one dozen eggs. How many full cartons will you have? 2. Joe works a job paying $15/hour and Jill is paid $21/hour at her job. How much will they earn altogether in one week if Joe works 30 hours and Jill works 20 hours? 3. Elias has 69 quarters. He goes to the bank and trades in four quarters for a $1 bill. How many quarters will he still have left after trading for as many dollars as possible? 4. What is the area of a circle with a diameter of 12 inches? Note: Area of a circle = 2². (Remember import math is needed to use special math values and functions in Python.) 5. Find the length of one leg of a right triangle if the other leg is 12 cm and the hypotenuse is 15 cm. Note: Use Pythagorean's Theorem. In a right triangle with legs a and b, and hypotenuse c, a² + b² = c². (Remember import math is needed to use special math values and functions in Python.) 7 15 cm 12 cm
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
Related questions
Question
Hello help me with these Python homeworks, please.
Expert Solution
Step 1: Introduction
Below is the complete solution with explanation in detail for the given questions in Python Programming Language with sample output image.
Note:- According to guidelines, we need to solve only first three parts of the question. So, please post remaining questions separately.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Knowledge Booster
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
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education