Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Having trouble with python! Write a program to build a list of grades, print them out, add to them and count occurrences, and find the

Having trouble with python!

image text in transcribed

image text in transcribed

Write a program to build a list of grades, print them out, add to them and count occurrences, and find the amount of the 2-digit grade values. Here are the criteria a) Your program L6QI initials.py" must start with a commented ID Box AND include a comment that indicates the e of the program. EACH of the five functions in your program must state its purpose in comments too The main function in your program must be named: test_grades ).It has been provided for you. Copy this function into your program EXACTLY as written: # Main function - Test all of the helper functions def test_grades ): grade-list create-grades (11) print_rows (grade_list) add grade (grade 1ist) print_rows (grade_list) print ("Amount of 2-digit valuescount_grades (grade_list)) As you can see, test_grades calls FOUR helper functions namely: create grades (amount): Create and return a list of amount randomly selected integers between (and including) 0 and 100 print rows (grade list): ng 4 space separated values in each row. The last Print all of qrade list showi row may have fewer than 4 values in it. add_grade (grade_list): Prompt the user for a grade between (and including) 0 and 100 and append it to grade list. Count how many times the grade occurs in grade_list and print out the result. NOTE: Error checking is not required for this input. count_grades (grade_list): Calculate and return the amount of 2-digit grades in grade_list (ie. grades between 10 and99). Assume grade_list will contain at least one value

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

Compute the numbers. (.01) -1.5

Answered: 1 week ago

Question

2. How much time should be allocated to the focus group?

Answered: 1 week ago

Question

1. Where will you recommend that she hold the focus group?

Answered: 1 week ago