The purpose of this program is to create a program using lists, random and mathematical expressions. Write a Python program that takes 7 random scores as inputs and appends them to a list (aGrades). Randomize the scores between 59 and 100).  The final exam will be the last item in the list.   Calculate the number of exams as the length of the list minus one; assign examCount to len(aGrades)-1. Here we will introduce the function sum() to the class. The Total Points will be equal to the sum of the list minus the final exam.   Assign Total Points to sum(aGrades)- aGrades[lastitemIndex]. Compute the Test Average to be equal to the Total Points divided by the length of the list minus one.   Assign Test Average to Total Points / examCount The final average will be equal to 60% of the test average plus 40% of the Final Exam.   Assign Final Average to Test Average *.6 + Final Exam * .4 Display the grades list, test average and the final average on separate lines.   Upload the code, with comments explaining each line of code and their variables

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

The purpose of this program is to create a program using lists, random and mathematical expressions.

Write a Python program that takes 7 random scores as inputs and appends them to a list (aGrades).

Randomize the scores between 59 and 100). 

The final exam will be the last item in the list.  

  1. Calculate the number of exams as the length of the list minus one; assign examCount to len(aGrades)-1.
  2. Here we will introduce the function sum() to the class.
  3. The Total Points will be equal to the sum of the list minus the final exam.  
  • Assign Total Points to sum(aGrades)- aGrades[lastitemIndex].
  • Compute the Test Average to be equal to the Total Points divided by the length of the list minus one.  
  • Assign Test Average to Total Points / examCount
  • The final average will be equal to 60% of the test average plus 40% of the Final Exam.  
  • Assign Final Average to Test Average *.6 + Final Exam * .4

Display the grades list, test average and the final average on separate lines.  

Upload the code, with comments explaining each line of code and their variables.  .

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY