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
116 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)
What is the limit as x approaches infinity of (x^2 + 2x) / (e^x + 3x^2)?
+
Math question: Divide 5/6 by 2/3.
+
What is the resultant displacement when a vector of magnitude 50 units is added to a vector of magnitude 30 units at an angle of 45 degrees to each other?
+
New questions in Mathematics
A=m/2-t isolate t
1 + 1
-6n+5=-13
A normally distributed population has a mean of 118 with a standard deviation of 18. What score separates the lowest 72% of the distribution from the rest of the scores?
Let X be a discrete random variable with range {1, 3, 5} and whose probability function is f(x) = P(X = x). If it is known that P(X = 1) = 0.1 and P(X = 3) = 0.3. What is the value of P(X = 5)?
By differentiating the function f(x)=(x³−6x)⁷ we will obtain
Suppose 50% of the doctors and hospital are surgeons if a sample of 576 doctors is selected what is the probability that the sample proportion of surgeons will be greater than 55% round your answer to four decimal places
(2x+5)^3+(x-3)(x+3)
7/6-(-1/9)
2x+4x=
find f(x) for f'(x)=3x+7
suppose random variable x follows poisson distribution with expected value 3. what is variance of x?
A storage maker price is $2.50 per square feet. Find the price of a custom shed 4 yards long, and 5yards wide and 8 feet tall
1. A capital of $3,831 was lent, and it has produced interest of $840 from 05-12-2022 to 1-12-2023. At what annual simple interest rate was the capital lent?
-1%2F2x-4%3D18
For what values of m is point P (m, 1 - 2m) in the 2⁰ quadrant?
Find the zero of the linear function 8x + 24 = 0
X^X =49 X=?
A group of 17 people spent 9 days on vacation and spent R$776.34 on barbecue meat and the bill needs to be divided as follows: 6 people stayed for 9 days, 7 people stayed for 4 days, and 2 people stayed for 5 days and 2 people stayed 3 days, how much does each group have to pay for the days they stayed?
The perimeter of a rectangular rug is 42 feet. The width is 9 feet. What is the length?