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 measure of angle A in an isosceles triangle if its angle bisector divides angle A into two congruent angles?
+
What is the result of multiplying 25 by 8 and then adding 84?
+
What is the dot product of vectors v = (3, 2, -1) and w = (-4, 1, 6)?
+
New questions in Mathematics
-x+3x-2,si x=3
a ferry travels 1/6 of the distance between two ports in 3/7 hour. the ferry travels at a constant rate. at this rate, what fraction of the distance between the two ports can the ferry travel in one hour?
Use the digits of 1,9,2,3 to come up with all the numbers 98 and 95
Solve this mathematical problem if 3/5 of a roll of tape measures 2m. How long is the complete roll?
If the midpoint of point A on the x=3 line and point B on the y=-2 line is C(-2,0), what is the sum of the ordinate of point A and the abscissa of point B?
4x/2+5x-3/6=7/8-1/4-x
According to a survey in a country 27% of adults do not own a credit card suppose a simple random sample of 800 adults is obtained . Describe the sampling distribution of P hat , the sample proportion of adults who do not own a credit card
3. A rock is dropped from a height of 16 ft. It is determined that its height (in feet) above ground t seconds later (for 0≤t≤3) is given by s(t)=-2t2 + 16. Find the average velocity of the rock over [0.2,0.21] time interval.
A warehouse employs 23 workers on first​ shift, 19 workers on second​ shift, and 12 workers on third shift. Eight workers are chosen at random to be interviewed about the work environment. Find the probability of choosing exactly five first ​-shift workers.
The simple average of 15 , 30 , 40 , and 45 is
If a|-7 and a|9, then a|-63
9.25=2pi r solve for r
Fill in the P(X-x) values to give a legitimate probability distribution for the discrete random variable X, whose possible values are -5 ,3 , 4, 5 , and 6.
Calculate the difference between 407 and 27
A contractor gives a bank note for $10250 at a rate of 1% for one month. How much interest is charged for 4 months?
To find the increased amount on a standard term deposit with the following conditions: starting amount: BGN 13000, type of deposit: annual, annual compound interest rate: 1.4%, after 4 years;
Find sup { x∈R, x²+3<4x }. Justify the answer
Solve for B write your answer as a fraction or as a whole number. B-1/7=4
How many cards do you expect to pull from a poker deck until you get an ACE?
Sally’s sales for last Sunday were $1,278. That was an increase of 6.5% over her sales for the previous Saturday. What were her sales for the previous Saturday?