Placeholder

CYBR 260 Week 2 Programming Assignment Average Grades

$9.99

Description

This week, you will write another program. This time, you will do the same thing twice.
First, take a set of 6 grades from a user and average them. Provide the average to the user. You need to check to make sure the grades are within the normal range. If the grade is less than 0 or more than 100, issue a warning to the user. You don’t need to take the grade again, just let the user know.
Second, ask the user how many grades they have. Ask for all the grades and again provide an average. Make sure to check that the grades are within the normal range as above and issue a warning to the user.
For any function you use, use the following comment block as before the function to document it.
# function: name
# purpose:
# inputs:
# returns:
Fill in the sections as necessary for what you are doing. Document your code as in your previous programming assignment, including the attribution block indicating your name, class, etc. Include text or screen captures indicating your program works.
SCREENSHOTS
SOLUTION
PAYMENT
CYBR 260 Week 2 Assignment 2
The solution includes Python code, report and screenshots.
Attachments [Move over files to preview content of those files]
CYBR_260_Assignment_2.zip (98.26 KB)
Assignment2.py
CYBR-260-Week-2-Screenshot.png
CYBR_260_Assignment2_Report.docx
Preview Assignment2.py
xxxxxxx xx xxx xxxxxx
xxxxxxx xxxxxxx xx xxxxxx x xxxxx xxx xx xxxxx
“””
def average(grades): “”” function: average purpose: calculate average of the list of grades inputs: list of grades returns: average value “”” sum = 0 num = len(grades) # get number of grades for grade in grades: sum += grade # end for
xx xxx == 0:
xxxxxx 0
xxxx:
xxxxxx xxx * 1.0 / xxx
xxx xxxxxxx(xxxxxx):
Price: $15
Buy Now
Checkout
Added to cart
Add to Cart
Checkout
Added to cart
You May Also Like:
CYBR 260 Week 1 Programming Assignment Name and Three Numbers
CYBR 260 Week 3 Programming Assignment Master Boot Record
CYBR 260 Week 4 Programming Assignment Master Boot Record Part 2
CYBR 260 Week 5 Programming Assignment Registry
CYBR 260 Week 6 Programming Assignment History Database
CYBR 260 Week 7 Programming Assignment Sqlite Database

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.