Intro to Python-Exam 1- PART 1-INT-2240

Intro to Python-Exam 1- PART 1-INT-2240

Intro to Python-Exam 1- PART 1-Write a program that will compute the averages of  a student test scores.

  • The program should request the name of the student
  • Request 3 test scores
  • Computes the average
  • Evaluate what grade student has

def gradelevel:

  • Evaluate if grade is A, B, C, D, F using if else

def avergeScore:

  • Request 3 test score
  • Compute average
  • Print average
  • Call def gradelevel and pass average as an argument

def main

  • Ask for student name
  • Print student name on screen
  • Call averageScore function

main():

Sample output

image.png

Answer Preview-Intro to Python-Exam 1- PART 1-INT-2240

Intro to Python-Exam 1- PART 1-INT-2240

$3.00

Posted

in

by

Tags: