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)
Math Question: Solve the cubic equation x^3 - 5x^2 + 6x + 9 = 0.
+
What is the equation of the logarithmic function graph that passes through the points (1, 3) and (10, 1)?
+
What is the equation of a line passing through the point (3, -2) with a slope of 5?
+
New questions in Mathematics
STUDENTS IN A CLASS LEARN ONLY ONE FOREIGN LANGUAGE. two-sevenths of the students learn German, half of the students learn Spanish, and the remaining six students learn Italian. what is the number of students in this class? detail your reasoning carefully.
The graph of the equation x²= 4py is a parabola with focus F(_,_) and directrix y=_____ Therefore, the graph of x²=12y is a parabola with focus F(_,_) and a directrix y=_____
The ratio of tomatoes to red apples is 2:5. If there are 20 tomaoes in the garden, how many red apples are there?
Consider numbers from 1 to 2023. We delete 3 consecutive numbers so, that the avarage of the left numbers is a whole number
Log(45)
A study reports the following final notation: F (3, 32) = 9.50, p < .05. How many total participants were involved in this study? Group of answer choices 34 32 36
form a key for your lock containing the numbers 2 2 5 8 How many different keys can you form?
A recurring sequence is one where elements repeat after completing one standard. If the sequence AB8C14D96AB8C1... is recurring its twentieth term is equal to: (A) B. (B) 8. (C) A. (D) 6. (E) D.
Use linear approximation to estimate the value of the sine of 31o.
On+January+10+2023+the+CONSTRUCTORA+DEL+ORIENTE+SAC+company+acquires+land+to+develop+a+real estate+project%2C+which+prev%C3% A9+enable+50+lots+for+commercial+use+valued+in+S%2F+50%2C000.00+each+one%2C+the+company+has+as+a+business+model+generate+ cash+flow+through%C3%A9s+of+the+rental%2C+so+47%2C+of+the+50+enabled+lots+are+planned to lease+47%2C+and+ the+rest+will be%C3%A1n+used+by+the+company+for+management%C3%B3n+and+land+control
Sabendo+que+o+tri%C3%A2ngulo+ABC+%C3%A9+ret%C3%A2ngulo+e+que+um+de+seus+%C3%A2ngulos+mede+30+quanto+mede+o+terceiro+ tri%C3%A2ngulo
find missing measure for triangle area = 48 m square base = 10m heaighy = ? m
2x-5-x+2=5x-11
A property sold for $745,000 in a co-brokered transaction. The seller has agreed to pay a 7% commission to the listing firm. The listing firm has agreed to equally split the commission with the selling firm. If the buyer’s broker will receive 8% of the selling firm’s commission, how much commission will the buyer’s broker receive? $14,900 $3725 $$37250 $18625
X^X =49 X=?
a) 6x − 5 > x + 20
If the mean of the following numbers is 17, find the c value. Produce an algebraic solution. Guess and check is unacceptable. 12, 18, 21, c, 13
An export company grants a bonus of $100,000 pesos to distribute among three of its best employees, so that the first receives double the second and the latter receives triple the third. How much did each person receive?
15=5(x+3)
5 1/9 + 2 2/3