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)
Convert the number 4.2 x 10^5 into standard form.
+
What is the equation of a line passing through point (3, 4) with a slope of 2?
+
What is the period of the trigonometric function f(x) = 3*cos(2x) + 2*sin(4x) - tan(x)?
+
New questions in Mathematics
-6(3x-4)=-6
-8+3/5
A hotel in the Algarve had to offer 1 week of vacation to one of its employees as an Easter gift in a random choice. It is known that 80 people work in this hotel unit, 41 of whom are Portuguese and 39 are foreign nationals. There are 14 Portuguese men and 23 foreign women. Using what you know about conditional probability, check the probability that the gift was offered to a Portuguese citizen, knowing that it was a woman.
Determine the equations of the lines that pass through the following points P1 (2;-1) and p2 (4;-1)
Derivative of x squared
4x-3y=5;x+2y=4
A job takes 9 workers 92 hours to finish. How many hours would it take 5 workers to complete the same job?
Divide 22 by 5 solve it by array and an area model
7/6-(-1/9)
The average number of babies born at a hospital is 6 per hour. What is the probability that three babies are born during a particular 1 hour period?
The price per night of a suite at the Baglioni Hotel in Venice is 1896 euros, VAT included. The VAT in Italy is 25%. The hotel gets a return of 10% out of the price VAT included. a) What is the amount of VAT paid by the hotel for one
Calculate the value of a so that the vectors (2,2,−1),(3,4,2) and(a,2,3) are coplanar.
Use linear approximation to estimate the value of the sine of 31o.
TEST 123123+123123
A natural gas company has a fixed rate of 1,320 pesos plus 1,590 pesos per cubic meter of gas consumed monthly per customer. Indicate the cost function to determine the value in pesos of the cubic meters of gas consumed in a month per customer. How much did a customer who consumed 18 cubic meters of gas pay? If a customer paid 34,710 pesos, how many cubic meters of gas did he consume?
(6²-14)÷11•(-3)
A post office has three categories of letters: 60% are from businesses, 30% are individual mail, and the remaining 10% are government mail. 5% of the letters from businesses have address errors, 10% of the individual mail has address errors, while 1% of the government mail has address errors. If we receive a letter with an address error, what is the probability that it is individual mail?"
The inner radius of a spherical ball is 13 cm. How many liters of air are in it? Justify your answer!
Hola👋🏻 Toca en "Crear Nueva Tarea" para enviar tu problema de matemáticas. ¡Uno de nuestros expertos comenzará a trabajar en ello de inmediato!
Solve the system of equations by the addition method. 0.01x-0.08y=-0.1 0.2x+0.6y=0.2