Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

will be solving one programa d follow the directions below carefully and perform the steps in the order listed cted and turning in your work

image text in transcribed
image text in transcribed
will be solving one programa d follow the directions below carefully and perform the steps in the order listed cted and turning in your work electronically via an uploaded file within Eagle Online/Canvas and copy & paste the program to the Text Entry box as well. Make sure and check your work prior to uploading the assignment. Instructions sing Python IDLE, create a New Empty Script File in your working drive. ote: refer to (SET) How to Download Install and Use Python IDLE link (Page 8) within module 2 on how to create Eript file. PLEASE MAKE SURE TO CREATE A SCRIPT FILE WITH PYTHON PROGRAM AND NOT RUN PROGRAM IN VTERACTIVE MODE AND SUMBITIN Save the script file with the name RV2LastFirst, making sure to know where you saved it VOTE: Where LastFirst is your actual Lastname and Firstname. For example, if your name is Mary Smith then your file name should be named: RV2Smith Mary.py (Reminder: You don't need to add the .py extension, IDLE will automatically odd the extension) You will develop a Test Grade Analysis Program (using functions, loops, and lists) as described below: a. Write a modular program, that accepts a series of 3 test grades, validates each test grade (to be in the range 100). The program should store the test grades in a list and then determine the following data calling appropriate functions as described in step 4b below (do not use standard functions like min, max, sum, sort etc.!): The lowest test grade in the list The highest test grade in the list The average of the test grades in the list Letter grade of the average test grade b. The program should display the output/results including the lowest, highest, average test grade (all values formatted to 1 decimal place), and the letter grade (NOTE: Other than the data input your output should loc EXACTLY like in the below table showing a few sample runs for you to compare the items shown after the co symbol are what you enter as input those items can vary for each sample run): IL. Welcom To Test Grace Analysis Program 1. Enter tot krade the range 0-100 Enter test grade #2 the range -1000 Enter test erade 3 the range 0-1000 O Test Grade 6.0 Highest Test Grade 0.0 Average Tot Grade 20.0 A letter Grade Sin the below screenshot) si display crades() This should be a vold function called by main function that accepts four arguments - lowest test grade, highest test grade, the average test grade (all 3 values formatted up to 1 decimal place), and the letter grade of avg, and displays them (Refer to line #s 20 and 62 - 66 HINTS in the below screenshot) Make sure to include the following in your program as well: 1. Define appropriate/descriptive CONSTANTS (Refer to line #s 8 - 11 in the below screenshot) 11. Use appropriate/descriptive variable_names (Refer to line #5 15 - 17, 23-24, and 37 in the below screenshot) ili. Have enough documentation for understandability of your program by including a comment block at the beginning of the program (Refer to line # 1 - 6 in the below screenshot) and prior to each function describing in your own words the purpose of each function by explaining the logic of loop, it, and other python functions used (refer to Textbook/Instructor EXAMPLE PROGRAMS listed in Canvas Modules) iv. Have proper Indentation and line spacing for readability of your program (refer to Textbook/instructor EXAMPLE PROGRAMS listed in Canvas Modules) Nane: Enter your full name here Lab Chapters 1-7 Review Description: This reeds to be at least a paragraph explanation of the program in your own words) CONSTANTS 9 TITLE="Welcome to Test Grade Analysis Programin" LINE - 450 SIZE 3 def : LE print (TITLE LINE) test_list = 0 LE test_list = get_test_list() 1o. lo rade(test_list) HINT Call remaining functions (hi_grade, avserade, & letter_grade) below... display_grades(lo,hi, avg, grade) 22 def lat() test_list = [] 1=1 HINT: Complete remaining statements using while loop & 1t/else as described below... MINTI use while loop until i less than or equal to SIZE of list: HINT: Use input function prompting for a float test grade in range 0-100 MINT: Use sf with or operator to check test grade outside range 0-100 HINT: Use print function with and attribute to display ERRORI # HINT: Use continue statement to go back in the loop HINT: Use else condition here... MINT: append the valid test grade to test_list # HINT: Increment 1 by 1 return test_list

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

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions

Question

8. Praise the trainees for their success in learning the task.

Answered: 1 week ago