Python Program


Question Description

Python Program

Unformatted Attachment Preview

A teacher wants to be able to enter test scores and find the average. She would like to have a feature that allows her to remove the last test score added if she miss typed it. For example: The test scores 98, 65, 89, 77, 16 were entered one at a time pressing the Enter key after each one. The teacher realized that the 16 was supposed to be 61 and wants to remove the 16 and replace it with the 61. Write a program that uses the Stack class created in class that will hold the test scores until the teacher enters DONE. If the teacher enters a number, it should be pushed onto the stack. If the teacher enters REVERSE, the last number entered should be removed. After all the numbers have been entered, the program should calculate the average and display the following: The test scores entered listed on one line separated by a comma The average of the test scores The letter grade for the student – Grading scale A is 90 or more, B is 80 – 89, C is 70 – 79, D is 60 – 69 and F is below 60. Add the following comments to the beginning of the program. Name: Your Name Class and Section: CS 222 01 Assignment: Program Assignment 05 Due Date: See above Date Turned in: Program Description: You write a short description of what the program will do When you complete the program, do the following. 1. Turn in a printout of the source code 2. Create a folder with the following name: ProgramAssignment05 3. Copy your program to this folder 4. Copy the folder to your folder in the I:\kopp\inbox\CS 222 01 folder ...
Purchase answer to see full attachment

Tutor Answer

School: UCLA


flag Report DMCA

Top quality work from this tutor! I’ll be back!

Heard about Studypool for a while and finally tried it. Glad I did caus this was really helpful.

Thank you! Reasonably priced given the quality


Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors