linagurung775
linagurung775 linagurung775
  • 02-06-2021
  • Computers and Technology
contestada

write a program to input 100 students marks and find the highest marks among the them​

Respuesta :

sandlee09
sandlee09 sandlee09
  • 07-06-2021

Answer:

Explanation:

The following code is a Python program that allows you to input 100 marks. You can input the value -1 to exit the loop early. Once all the marks are entered the program prints out the highest mark among all of them. The output can be seen in the attached picture below with a test of a couple of marks.

marks = []

for x in range(100):

   mark = int(input("Enter a mark: "))

   if mark == -1:

       break

   else:

       marks.append(mark)

print("Max value: " + str(max(marks)))

Ver imagen sandlee09
Answer Link

Otras preguntas

A model rocket is launched with an initial upward velocity of 54 m/s. The rocket's height h (in meters) after t seconds is given by the following.
See attachment. Divide the expression.
Graph the solution of the system of linear inequalities. y≤−4x−4 y≥x+2
8/5x - 2/3x = 4/15 Hello! struggling.... help would be awesome!!
HELP PLEASE!!! U is the set of positive integers less than 18. G is the set of positive factors of 12. What is the complement of set G in universe U.
find the missing length with Mark with a question mark. part 2​
a sample of 100 cans of peas shown an average weight of 14 oz with a standard deviation of 0.7 Oz. Construct a 95% confidence interval for the mean of the popul
The quotient of some number divided by 56 is 2. What is thenumber?​
Solve: 3(4 – 2x) = -x+1
Simplify the expression and chose the correct answer.