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

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter5: Making Decisions
Section: Chapter Questions
Problem 2GZ
icon
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
assignments/976544#submit
Fall 2021
3. Average of values
Home
• 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.
Announcements
Modules
Quizzes
rd
Tip: add the variables together not the actually numbers. Something like:
Grades
Syllabus
mySum = a +b +c .
. Name the source code file yourName_HW2.py.
Zoom
• 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
ar
Library Research
Guides
Here is a sample of your output:
Part l: Variables and Literals
My favorite number is 5
Part 2: Variables and literals, Again
My favorite number is varl
ry
Part 3: Average of vallues
Values are: 28 32 37 24 33
The sum results are: 154
gout
Done
Grading rubric
• 20 points: complete homework
• Deduct 4 points for each file missing
• Deduct 4 points for no explanation
• 0: no submission
File Upload
Google Doc
Upload a file, or choose a file you've already uploaded.
1, Upload File
2 Use Webcam
+ Add Another File
Click here to find a file you've already uploaded
Comments.
Cancel
Submit Assignment
O Type here to search
24
Transcribed Image Text:assignments/976544#submit Fall 2021 3. Average of values Home • 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. Announcements Modules Quizzes rd Tip: add the variables together not the actually numbers. Something like: Grades Syllabus mySum = a +b +c . . Name the source code file yourName_HW2.py. Zoom • 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 ar Library Research Guides Here is a sample of your output: Part l: Variables and Literals My favorite number is 5 Part 2: Variables and literals, Again My favorite number is varl ry Part 3: Average of vallues Values are: 28 32 37 24 33 The sum results are: 154 gout Done Grading rubric • 20 points: complete homework • Deduct 4 points for each file missing • Deduct 4 points for no explanation • 0: no submission File Upload Google Doc Upload a file, or choose a file you've already uploaded. 1, Upload File 2 Use Webcam + Add Another File Click here to find a file you've already uploaded Comments. Cancel Submit Assignment O Type here to search 24
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Function Arguments
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,