Data 620 Assignment 8.3

Verified

Added on  2019/09/16

|2
|386
|387
Practical Assignment
AI Summary
This is a practical assignment for Data 620, focusing on Python programming. Students are tasked with completing two exercises from Chapter 5 of "Python for Everybody" by Charles Severance. The first exercise requires writing a program that repeatedly reads numbers until the user enters 'done,' then calculates and prints the total, count, and average of the numbers. Error handling using try-except is necessary to manage non-numeric input. The second exercise is similar, but instead of calculating the average, the program should find and print the minimum and maximum numbers entered by the user. Both exercises require submitting Python code files and screenshots of successful execution. The assignment is graded based on a class rubric.
Document Page
UMUC Data 620 Assignment 8.3
Your name:
Date:
Turn in separate files with the following items. Please label each with the TURN IN # statement so we
can easily follow it.
Deliverable Description Points
TURN IN #1 Severance Chapter 5 - Exercise 1 – implement an iteration loop to
print out total, count, and average of numbers. Code will be
graded according to Python rubric.
5
TURN IN #2 Severance Chapter 5 - Exercise 2 – implement an iteration loop to
print out min and max of numbers. Code will be graded
according to Python rubric.
5
TOTAL 10
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Study Chapter 5 of “Python for Everybody – Exploring Data using Python 3” by Charles Severance.
TURN IN #1: Severance Chapter 5 - Exercise 1 – ASSIGNMENT
Write a program which repeatedly reads numbers until the user enters “done”. Once “done” is entered,
print out the total, count, and average of the numbers. If the user enters anything other than a number,
detect their mistake using try and except and print an error message and skip to the next number.
HINT:
1. Be sure to use Python version 3 or above.
2. When computing the average, remember the user may have input 0 numbers!
3. Be sure to comment your program adequately!
4. Remember your Python code will be graded according to our class Rubric.
5. Submit your Python code file. Name it “XXXX-loop-till-done.py” where XXXX is your name.
6. Submit also a Word document showing screen shots of successful execution.
TURN IN #2: Severance Chapter 5 - Exercise 2 – ASSIGNMENT
Write another program that prompts for a list of numbers as above and at the end prints out both the
maximum and minimum of the numbers instead of the average.
HINT:
1. See hints for Exercise 1 above.
2. Be sure to comment your program adequately!
3. Remember your Python code will be graded according to our class Rubric.
4. Submit your Python code file. Name it “XXXX-min-max.py” where XXXX is your name.
5. Submit also a Word document showing screen shots of successful execution.
chevron_up_icon
1 out of 2
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]