When we want to find the average of a set of numbers we add the values up and then divide the sum by the number of values. Create 5 variables that stores the following values, one in each variable: 28, 32, 37, 24, and 33. If you need help with this refer to the Variable page here in Canvas. Your program should next calculate the sum of these five variables and store the result in a separate variable named sum. Next the program should divide the sum variable by 5 (the number of values) to get the average. You should store the average in a new variable, like something called results. Display, by using the print function, the average on the screen. Tip: add the variables together not the actually numbers. Something like: mySum = a + b +c …. Name the source code file yourName_HW2.py. Compile and run the program. Capture the output console and save it as an image file named yourName_LAB2_output.jpg. Submit 1 .py files and 1 image files through Canvas
When we want to find the average of a set of numbers we add the values up and then divide the sum by the number of values. Create 5 variables that stores the following values, one in each variable: 28, 32, 37, 24, and 33. If you need help with this refer to the Variable page here in Canvas. Your program should next calculate the sum of these five variables and store the result in a separate variable named sum. Next the program should divide the sum variable by 5 (the number of values) to get the average. You should store the average in a new variable, like something called results. Display, by using the print function, the average on the screen. Tip: add the variables together not the actually numbers. Something like: mySum = a + b +c …. Name the source code file yourName_HW2.py. Compile and run the program. Capture the output console and save it as an image file named yourName_LAB2_output.jpg. Submit 1 .py files and 1 image files through Canvas
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
When we want to find the average of a set of numbers we add the values up and then divide the sum by the number of values.
Create 5 variables that stores the following values, one in each variable: 28, 32, 37, 24, and 33. If you need help with this refer to the Variable page here in Canvas.
Your program should next calculate the sum of these five variables and store the result in a separate variable named sum.
Next the program should divide the sum variable by 5 (the number of values) to get the average. You should store the average in a new variable, like something called results.
Display, by using the print function, the average on the screen.
Tip: add the variables together not the actually numbers. Something like:
mySum = a + b +c ….
Name the source code file yourName_HW2.py.
Compile and run the program. Capture the output console and save it as an image file named yourName_LAB2_output.jpg.
Submit 1 .py files and 1 image files through Canvas
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 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