Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a function called 'findHighest() ' that will find and return the highest grade in the list called 'grades' in the following program. You can

image text in transcribed

Write a function called 'findHighest() ' that will find and return the highest grade in the list called 'grades' in the following program. You can assume that the list has already been properly initialized. The number of elements in the list is determined by the constant called 'SIZE'. import random SIZE = 1 theta def display(grades): for i in range (theta, SIZE, 1): print(grades [i]) def initialize(grades): for i in range (theta, SIZE, 1): grades.append(random.randrange(1, 1 theta 1)) def findHighest (grades): # Write your answer here # End answer space return(highest) def start(): grades = [] initialize(grades) display(grades) highest = findHighest(grades) print('highest', highest) start()

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 And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions