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)
Math Question: Find the limit as x approaches 1 of (e^(x-1) - 1) / (x^2 - 1).
+
What is the cosine of an angle if the adjacent side length is 4 and the hypotenuse is 5?
+
Question: What is the square root of -16?
+
New questions in Mathematics
12-6x=4x+2
String x = 5 Int y=2 System.out.println(x+y)
I) Find the directional derivative of 𝑓(𝑥, 𝑦) = 𝑥 sin 𝑦 at (1,0) in the direction of the unit vector that make an angle of 𝜋/4 with positive 𝑥-axis.
If L = (-2, -5) is reflected across y= -4 , what are the coordinates of L?
3x+5y=11 2x-3y=1
Derivative of x squared
7/6-(-1/9)
Mrs. Emily saved RM10000 in a bank. At the end of the eighth year, the amount of money accumulated amounted to RM19992.71. If the bank pays an annual interest of x% for a year compounded every 6 months. Calculate the value of x.
logy/logx + logz/logy + logt/logz = 8x².t x=?
Determine the reduced equation of the straight line that is perpendicular to the straight line r: y=4x-10 and passes through the origin of the Cartesian plane
7. Find the equation of the line passing through the points (−4,−2) 𝑎𝑛𝑑 (3,6), give the equation in the form 𝑎𝑥+𝑏𝑦+𝑐=0, where 𝑎,𝑏,𝑐 are whole numbers and 𝑎>0.
The physician orders 15mg of tramadol(liquid). On hand is 30mg/2mL vials. How many mL will the MA administer?
Is -11/8 greater than or less than -1.37?
Let A, B, C and D be sets such that | A| = |C| and |B| = |D|. Prove that |A × B| = |C × D|
Two minus log 3X equals log (X over 12)
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
A factory produces glass for windows. The thickness X of an arbitrarily selected pane of glass is assumed to be Normally distributed with expectation μ = 4.10 and standard deviation σ = 0.04. Expectation and Standard deviation is measured in millimeters. What is the probability that an arbitrary route has a thickness less than 4.00 mm?
Let G be the center of gravity of triangle ABC. We draw through A a parallel to BC on which we take a point D so that DG⊥BG. If the area of the quadrilateral AGBD is equal to s, show that AC·BD≥2·s.
Write the inequality in the form of a<x<b. |x| < c^2
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?