Question

Write a program that allows the user to enter an af grade and issues a message corresponding to each grade according to the grade entered: A-excellent D- enough B-good F- Not enough c-regular

224

likes
1119 views

Answer to a math question Write a program that allows the user to enter an af grade and issues a message corresponding to each grade according to the grade entered: A-excellent D- enough B-good F- Not enough c-regular

Expert avatar
Miles
4.9
115 Answers
# Definir una función para devolver mensajes correspondientes a las calificaciones. def mensaje_calificación(calificación): mensajes = { 'A': 'Excelente', 'D': 'Suficiente', 'B': 'Bueno', 'F': 'No es suficiente', 'C': 'Normal' } devolver mensajes.get(grade.upper(), "Calificación no válida") # Ejemplo de uso: # Descomente la siguiente línea para obtener la calificación de la entrada del usuario cuando se ejecuta el programa de verdad # user_grade = input("Ingrese una calificación AF: ").strip() # imprimir(mensaje_calificación(calificación_usuario)) # Para demostración, reemplace 'A' con la calificación ingresada por el usuario example_grade = 'A' # Marcador de posición para la entrada del usuario print(f"Calificación: {example_grade} - Mensaje: {grade_message(example_grade)}")

Frequently asked questions (FAQs)
Question: Convert 5.2 kilograms to pounds.
+
What is the variance of a dataset: {1, 3, 5, 7, 9}?
+
What is 35% of 80?
+
New questions in Mathematics
2(2+2x)=12
5 squirrels were found to have an average weight of 9.3 ounces with a sample standard deviation is 1.1. Find the 95% confidence interval of the true mean weight
1 plus 1
How long will it take for $900 to become $5000 at an annual rate of 11.15% compounded bimonthly?
If you randomly selected one person from the 900 subjects in this study, what is the probability that the person exhibits the minimum BMI?
15/5+7-5
I want you to solve this problem as a grade sixth pupil in primary school: 8 Pigs ate 6 bags of fee in 20 days. How long will it take 10 pigs to eat 15 bags of feed eating at the same rate?
find f(x) for f'(x)=3x+7
. What will be the osmotic pressure of a solution that was prepared at 91°F by dissolving 534 grams of aluminum hydroxide in enough water to generate 2.784 ml of solution.
using the math and science known about the jefferson river bridge Find a truss in use and develop a load diagram. Use a load of 50 lb on each joint along the bottom of the truss for a truss that actrs as a bridge and along the top joints for a truss that acts as a roof
How to do 15 x 3304
7=-4/3y -1
A teacher has 25 red and yellow counters altogether. She has 4 times as many red counters than yellow counters. How many yellow counters does the teacher have?
48 kg of 30% sulfuric acid in a mixture of 10% and 40% sulfuric acid arose. How many kilograms were each of the original solutions?
Find the area of a triangle ABC when m<C = 14 degrees, a = 5.7 miles, and b = 9.3 miles.
Pablo has a balance of $440,000 and 2/5 of the money is used to pay bills. How much money do you have left after paying the bills?
(6²-14)÷11•(-3)
A factory produces glass for windows. The thickness X of an arbitrarily selected pane of glass is assumed to be Normally distributed with expectation μ = 4.10 and standard deviation σ = 0.04. Expectation and Standard deviation is measured in millimeters. What is the probability that an arbitrary route has a thickness less than 4.00 mm?
Solve the system of equations by the addition method. 0.01x-0.08y=-0.1 0.2x+0.6y=0.2
The domain of the function f(x)=x+7x2−144 is (−∞,), ( ,), and ( , ∞).