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 are the foci and the vertices of the hyperbola with equation (x^2/9) - (y^2/16) = 1?
+
What is an example of two triangles with equal corresponding sides and equal corresponding angles?
+
Differentiate y = cos(3x) - sin(2x)
+
New questions in Mathematics
A=m/2-t isolate t
Find the measures of the sides of ∆KPL and classify each triangle by its sides k (-2,-6), p (-4,0), l (3,-1)
4X^2 25
4x-3y=5;x+2y=4
If f(x,y)=6xy^2+3y^3 find (∫3,-2) f(x,y)dx.
The equation of the straight line that passes through the coordinate point (2,5) and is parallel to the straight line with equation x 2y 9 = 0 is
find x in the equation 2x-4=6
Find all real numbers x that satisfy the equation \sqrt{x^2-2}=\sqrt{3-x}
determine the polynomial F of degree 2 that interpolates. f at points (0;1) (2;5) (4;6). calculate F(0.8). Note: Using the polynomial expression with difference operator.
show step by step simplification: (¬𝑑∨((¬b∧c)∨(b∧¬c)))∧((𝑎 ∧ 𝑏) ∨ (¬𝑎 ∧ ¬𝑏))∧(¬𝑐∨((¬𝑑∧𝑎)∨(𝑑∧¬𝑎)))
Solve the following equation for x in exact form and then find the value to the nearest hundredths (make sure to show your work): 5e3x – 3 = 25
The function h(t)=-5t^2+20t+60 models the height in meters of a ball t seconds after it’s thrown . Which describe the intercepts and vertex of this function
Determine the increase of the function y=4x−5 when the argument changes from x1=2 to x2=3
If the regression equation is given by 4x –y + 5 = 0, then the slope of regression line of y on x is
A popular cell phone family plan provides 1500 minutes. It charges 89.99/month for the first 2 lines and 9.99 for every line after that. Unlimited text messages for all phone lines costs $30.00/month, and Internet costs $10.00/month per phone line. If a family with a $200 monthly budget buys this plan and signs up for unlimited text messaging and Internet on each phone line, how many cell phone lines can they afford? Use an inequality to solve this problem. Graph your solution on the number line and explain the meaning of your graph in a sentence.
Find the zero of the linear function 8x + 24 = 0
The mean of 4 numbers is 5 and the mean of 3 different numbers is 12. What is the mean of the 7 numbers together? Produce an algebraic solution. Guess and check is acceptable.
A rectangular swimming pool has a length of 14 feet, a width of 26 feet and a depth of 5 feet. Round answers to the nearest hundredth as needed. (a) How many cubic feet of water can the pool hold? cubic feet (b) The manufacturer suggests filling the pool to 95% capacity. How many cubic feet of water is this? cubic feet
97,210 ➗ 82 division
Find the number of liters of water needed to reduce 9 liters of lotion. shave containing 50% alcohol to a lotion containing 30% alcohol.