Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am having trouble with section f. (letter_grade). I am unsure how to write that portion of python. any help greatly appreciated. this is for

image text in transcribedI am having trouble with section f. (letter_grade). I am unsure how to write that portion of python. any help greatly appreciated. image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

this is for Python

Page 1 (THT_HLET testu Complete reiniges as described beide met wie functions) * = far top 10 as La Ser_IIAT KINTI V sf to check test grade in less than Be KONT: Definerede ting here (de notes/rt functions) KIT DEN waride e pret les of the NINI e for love to check test rate da MINTI W sf to check test de puter than 13. KOHT: Die were for Maling here we can WIN Batakse tal ve equal to NINI a for love to check tatuerades tuntut HINTA 1648 Game KINI PIA Bug by total by softi KONTI Die Bestergrade function Reading here KINTg /f/eline statement to check if egen, del diply.cradle, M,.re FLINE) KINTI print function to display grade After completing your programas instructed, make sure to your program tieto obtain the output/brutan required. Remember to test your program to check for all and loop condition refer to the screenshots in the table above interferome intented and output displayed according 7. You may now proceed to Program ASTRUCTIONS ROAD link within this module and follow the steps in the link or from Steps below to submit your work as a Text Entry as well as te Upload anached by image (png on Chapter 7 PPT.pd! A Chapter 6 PPT pe A CHS Chapter 5 PPT.pdf Dmage.png Show Page 1 of 4 (RV2) Program Assignment Instructions ast/1/2021125 PM Read and follow the directions below carefully and perform the steps in the order listed. You will be solving one program as instructed 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 1. Using Python IDLE, create a New Empty Script File in your working drive. Note: refer to (SET) How to Download Install and Use Python IDLE link (Page 8) within module 2 on how to create a script file. PLEASE MAKE SURE TO CREATE A SCRIPT FILE WITH PYTHON PROGRAM AND NOT RUN PROGRAM IN INTERACTIVE MODE AND SUMBITI 2. Save the script file with the name RV2LastFirst, making sure to know where you saved it NOTE: Where LastFirst is your actual Lostname and Firstname. For example of your name is Mary Smith then your file name should be nomed. RV2Smith Mary.py (Reminder: You don't need to add the py extension, DLE will automatically add the extension) 1. You will develop a Test Grade Analysis Pregram (using functions, loops, and lists) as described below: 0. 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, mox,sum, sort, etc.) The lowest test grade in the list The highest test grade in the list The average of the testades 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 fall values formatted to 1 decimal place and the letter grade (NOTE: Other than the data input your output should look DACTLY in the below table showing a few sample runs for you to comport, the tems shown after the colon ymbol are what you enter as input, those items con wary for each sample run O Frogram%20Assignment%20Instructions%20(1).pdf 75% Page 2 of 4 strate per |Hair Pret de ERAR! ter pades le re are Test Granada per ar test grade in the 131 CHORI Bater tot de he ir tauti wter tast grades the Bertaut grades a their ter Gred . 4. The first thing you should enter in your python program script fie (RV?lasfirst.py ble created in step 2) is a top comment block which includes the following Name: Enter your full name here Lab: Chapters 1-7 Review Description: This needs to be at least a paragraph explanation of the program (in your own words) h. Below the top comment block, type the actual python code for the problem described in step. Make sure to Include the functions as described below EXACTLY/efer to the comple code screenshot below with function cand imples and MONTS a. wain) This should be the first and foremost function called and defined prefer to line and 13-20 in the below some code screenshot on how this function called and HINTS for how other function should be colled in the function definition b. get_test_list() This should be a value returning hunction called by man tunction, that accepts no arguments. This function was the user to enter test ride validates to be in the range 0 1001 storesni valand returns the st back to the main function of the os 18 and 2 HINTS in the Bewenshot) C. lo grade) This should be a value returning function called by main function, that is one at argument. This function should find and return the lowest of the studies in the list. Remember to use the min or any other standard function wallable. Referand - NINSOW serem dhi grade This should be a value returning function called by function, that wetse list argument. This function should find and return the highest of the trade in the Remember not to use the man von any other standard functions werefer to the OBE E 10 screenshot) e. avg_grade() This should be a value returning function called by main function, that accepts one list argument. This function should find and return the average of the 3 test grades in the list. Remember not to use the sum a any other standard functions available (Refer to line #s 18 and 51 - 56 HINTS in the below screenshot) f. letter_grade() Page 2 of 4 Page 3 of 4 This should be a value returning function called by main function, that accepts one argument-avg test grade. This function should find and return the letter grade of the average (Refer to line #s 18 and 58-60 HINTS in the below screenshot) g. display_grades() This should be a void 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 ave, 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: Define appropriate descriptive CONSTANTS (Refer to lines 8-11 in the below screenshot) IL. Use appropriate/descriptive variable_names (Refer to lines 15-17, 23-24 ond 37 in the below screenshot) I 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, , and other python functions used refer to Textbook/Instructor EXAMPLE PROGRAMS ested in Canvas Modules) w.ave proper indentation and line spacing for readability of your program refer to Textbook/Instructor EXAMPLE PROGRAMS isted in Canvas Modules La Cars - do IM) Bass lears 414 67% + TO 15 test_list. 11 16 test_11st get_test_list() 17 15 HINT Call remaining functions (hi_grade, vprade, 1 letter_grade) below... 19 20 display_grades(lo,hd,avg.grade) 22 deftet): 23 test_list = 0) 24 1.1 25 #HENTI Complete remaining statements using while loop & f/else as described below... 26 HINT: Use while loop until i less than or equal to SIZE of list: 27 HINT: Use input function prompting for a float test grade in range 0-100 23 MENT: Use if with 'er operator to check test grade outside range 0-100 29 #MINT: Use print function with and attribute to display ERROR se . MINT: Use continue statement to go back in the loop 32 MENT: Use else condition here... . MENT: append the valid test grade to test_list 33 MINT: Increment by 1 34 return test_list Poa Pur4 3 43 6 (test_list) le testo] MENT: Complete remaining statements as described deset se si function) KOMT Use a for loop to check testurade in test_list MENTE Use sf to check testrede is less than la MENT: Then, so will be to trade Fetur le MEN Define Murde function Reading here (de netwe/vert functions) MENT: Tia ME variable ene te tirat element of the MENT: Weator top to check testrade in testit NINT US to check tatrade sa greater than HEN. Then, wel te lerede Srethe afin de function heading here (desmi) MONT: forte te shek test grade in tise Suflete meting kare - 5, 14, 11, 14 Baturrata la 26.8., Cameras CLE) CAM)

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

Algorithmic Trading Navigating The Digital Frontier

Authors: Alex Thompson

1st Edition

B0CHXR6CXX, 979-8223284987

More Books

Students also viewed these Databases questions

Question

1-4 How will MIS help my career?

Answered: 1 week ago