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
114 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 sum of all factors of 24?
+
What is the simplified form of (x^3 * x^4) / (x^2)^2?
+
What is the surface area of a rectangular prism with length 8 units, width 5 units, and height 10 units?
+
New questions in Mathematics
Let f(x)=||x|−6|+|15−|x|| . Then f(6)+f(15) is equal to:
Solution of the equation y'' - y' -6y = 0
Simplify the expression sin³(x)+cos³(x), using trigonometric functions
Karina has a plot of 5000 square meters in which she has decided that 60% of it will be used to plant vegetables. Of this part, 12% will be dedicated to planting lettuce. How much surface area of the plot will be used to grow lettuce?
what is 3% of 105?
5) A family with a father, mother and 3 children must sit on five chairs in a row and the only restriction is that the mother must be at one end. In how many different ways can they be seated?
The length and breadth of my rectangular vegetable garden is 12,5m and 7,25m respectively. What is the perimeter of the garden?
The mean temperature for july in H-town 73 degrees fahrenheit. Assuming that the distribution of temperature is normal what would the standart deviation have to be if 5% of the days in july have a temperature of at least 87 degrees?
Subscribers to the FAME magazine revealed the following preferences for three categories: Fashion 30, Athletics 24 and Business 15. Following these frequencies of observation, compute the chi-square test statistic. At the 0.05 level of significance, would you conclude they are similar?
4x + 8y = 5 2x + 4y = 10
Log5 625
sin 30
reduce the expression (7.5x 12)÷0.3
P(Z<z)=0.1003
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?
List five numbers that belong to the 5 (mod 6) numbers. Alternate phrasing, list five numbers that satisfy equation x = 5 (mod 6)
effectiveness of fiscal and monetary policy under closed and open economies
Solve the following system of equations using substitution. y=-4x- 11. 3x+7y=-2
Find the symmetric point to a point P = (2,-7,10) with respect to a plane containing a point Po = (3, 2, 2) and perpendicular to a vector u = [1, -3, 2].
An invoice for €2,880 plus default interest of €48.40 was paid on October 28th. Interest rate 5.5%. When was the bill due?