Question: (((In the Python Coding Language))) Section 2a - I-Assignment 3 Problem I (Mandatory) Write a program that asks the user to enter a student's name

(((In the Python Coding Language)))

Section 2a - I-Assignment 3 Problem I (Mandatory) Write a program that asks the user to enter a student's name and 8 numeric tests scores (out of 100 for each test). The name will be a local variable. The program should display a letter grade for each score, and the average test score, along with the student's name.

Write the following functions in the program:

calc_average - this function should accept 8 test scores as arguments and return the average of the scores per student

determine_grade - this function should accept a test score average as an argument and return a letter grade for the score based on the following grading scale:

90-100 A

80-89 B

70-79 C

60-69 D

Below 60 F

REMEMBER - to put your name on the assignment in comments and put comments in your program for what the program is doing. See Figure for a sample run.

2 Figure 1: Possible Sample Run for Assignment 3 Problem 1 3

Welcome to Test Score Calculator

__________________________

Enter your name: Sarah Huge

Enter your 8 test scores - Test1 score: 100

Enter your 8 test scores - Test2 score: 95

Enter your 8 test scores - Test3 score: 98

Enter your 8 test scores - Test4 score: 88

Enter your 8 test scores - Test5 score: 86

Enter your 8 test scores - Test6 score: 92

Enter your 8 test scores - Test7 score: 84

Enter your 8 test scores - Test8 score: 96

Student Name: Sarah Huge

Test1 Score: 100 ==> Grade: A

Test1 Score: 95 ==> Grade: A

Test2 Score: 98 ==> Grade: A

Test3 Score: 88 ==> Grade: B

Test4 Score: 86 ==> Grade: B

Test5 Score: 92 ==> Grade: A

Test6 Score: 84 ==> Grade: B

Test7 Score: 96 ==> Grade: A

The average of the 8 test scores is: 92.38

Your overall grade for all the tests is: A

__________________________________________________________________________________________________

Section 2b - Design Test Cases for I-Assignment 1 Problem 1 (Mandatory)

In this section, you will design some testing cases for your program. Put the cases in a table like the one that I posted in the announcement on Jan 13, 2021. You will design at least two cases for your testing including my sample run as one of the cases. The goal is to ensure your program will produce the correct result every single time.

Optional: You may want to consider having user enters negative values for the test score and have the program detect the error and request the user to re-enter the score. You also may want to have user enters score greater than 100, and have some mechanism to force the user to re-enter until the user enters the score in the allowable range. You may want to try your hardest to design the cases with normal and extreme or unusual data so that your testing will be thorough.

Temperature in F Weather Advide
Temp < 0 F It is extremely cold now; you want to really bundle up. Put on your heavy coat, flurry hat, wool scarf, and leather gloves.
0 F<=Temp < 32 F It is very cold now; you want to wear your leather jacket, hat, scarf and gloves.
32F <= Temp < 50F It is cold now; you want to wear your good jacket with a scarf.
50F <= Temp < 68F It is cool now; you want to wear a jacket
68F <= Temp < 78F It is mild now; you want to wear a long sleeve shirt.
78F <= Temp < 88F It is pleasant now; you can wear anything you want.
88F <= Temp < 95F It is hot now; you can wear shorts today.
Temp > 95F It is very hot now; you may want to go swimming.

1. You are creating a menu function displaying three choices as the following: Welcome to our Temperature Conversion and Weather Advisory App

1) Celsius to Fahrenheit with Weather Advisory

2) Fahreneit to Celius with Weather Advisory

3) Quit

Enter your choice (1, 2, or 3):

2. You also need to create a Temperature Conversions function from C to F (C2F) and another function to convert the temperature from F to C (F2C).

3. The app will keep prompting the user to enter a temperature to convert if the user enters 1, or 2, until the user enters 3 to quit the application. See Figure 2 for a sample run. Figure 2: Possible Sample Run for Assignment 3 Problem 2

(Figure 2: Possible Sample Run for Assignment 3 Problem 2)

Welcome to our Temperature Conversion and Weather Advisory App

1) Celsius to Fahrenheit with Weather Advisory

2) Fahrenheit to Celsius with Weather Advisory

3) Quit

Enter your choice (1, 2, 3): 2

Enter the current temperature in Fahrenheit: 75

The current temp: 75.0F ==> 23.9C

Weather Advisory based on current temperature ===>> It is mild now; you want to wear a long sleeve shirt.

Welcome to our Temperature Conversion and Weather Advisory App

1) Celsius to Fahrenheit with Weather Advisory

2) Fahrenheit to Celsius with Weather Advisory

3) Quit

Enter your choice (1, 2, 3): 1

Enter the current temperature in Fahrenheit: -10

The current temp: -10C ==> 14F

Weather Advisory based on current temperature ===>> It is very cold now; you want to wear your leather jacket, hat, scarf, and gloves

Welcome to our Temperature Conversion and Weather Advisory App

1) Celsius to Fahrenheit with Weather Advisory

2) Fahrenheit to Celsius with Weather Advisory

3) Quit

Enter your choice (1, 2, or 3): 3

Thank you for using our Temperature Conversion and Weather Advisory App

Please come again.

______________________________________________________________________________________________________________________________

Section 3a - Design Test Cases for I-Assignment 3 Problem 2 (Optional)

In this section, you will design some testing cases for your program. Put the cases in a table. You will design at least three cases for your testing including my sample run as one of the cases. You want to consider having user enters string values for the test score and have the program detect the error and request the user to re-enter the score. You may also have the user enters temperature below abolute zero (459.67F) (See Absolute Zero: https://en.wikipedia.org/wiki/Absolute_zero for more details) and have a detection mechanism rejecting the temp below abolute zero, and asking the user to re-enter the temp within the allowable range. You may want to try your hardest to design the cases with normal and extreme or unusual data so that your testing will be thorough.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!