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 criterion for the equal sign of triangles in terms of their corresponding sides and angles?
+
What is the length of the side opposite a 50° angle in a triangle with side lengths 7 and 10?
+
What is the relationship between the lengths of the corresponding sides and angles of congruent triangles?
+
New questions in Mathematics
A company is wondering whether to invest £18,000 in a project which would make extra profits of £10,009 in the first year, £8,000 in the second year and £6,000 in the third year. It’s cost of capital is 10% (in other words, it would require a return of at least 10% on its investment). You are required to evaluate the project.
If f(x) = 3x 2, what is the value of x so that f(x) = 11?
What will be the density of a fluid whose volume is 130 cubic meters contains 16 technical units of mass? If required Consider g=10 m/s2
Director of reservations believes that 9% of the ticketed passengers are no-shows. If the directors right what is the probability that the proportion of no-shows in a sample of 789 ticketed passengers with differ from the population proportion buy more than 3% round your answer to four decimal places.
The expected market return is 13,86% and the risk free rate 1%. What would then be the risk premium on the common stocks of a company which beta is 1,55? (in %, 2 decimal places)
What is the total tolerance for a dimension from 1.996" to 2.026*?
Solve : 15/16 divide 12/8 =x/y
Determine the increase of the function y=4x−5 when the argument changes from x1=2 to x2=3
At the dance there are 150 boys the rest are girls. If 65% are girls what is the total amount in the room
The volume of a cube decreases at a rate of 10 m3/s. Find the rate at which the side of the cube changes when the side of the cube is 2 m.
Find sup { x∈R, x²+3<4x }. Justify the answer
How many cards do you expect to pull from a poker deck until you get an ACE?
Find the equation of a straight line that has slope 3 and passes through the point of (1, 7) . Write the equation of the line in general forms
If sin A=0.3 and cos A=0.6, determine the value of tan A.
22. Let [AB] be a chord in a circle C, and k a circle which is internally tangent to the circle C at a point P and to the chord [AB] at a point Q. Show that the line P Q passes through the midpoint of the arc AB opposite to the arc APB.
Calculate NPV, IRR and PAYBACK through a cash flow for a period of five years, with discount rate of: a) 10% b) 12% c) 15% initial annual cost $41,400,000
25) Paulo saves R$250.00 per month and keeps the money in a safe in his own home. At the end of 12 months, deposit the total saved into the savings account. Consider that, each year, deposits are always carried out on the same day and month; the annual yield on the savings account is 7%; and, the yield total is obtained by the interest compounding process. So, the amount that Paulo will have in his savings account after 3 years, from the moment you started saving part of your money monthly, it will be A) R$6,644.70. B) R$ 9,210.00. C) R$ 9,644.70. D) R$ 10,319.83. E) R$ 13,319.83
A candy manufacturer must monitor deviations in the amount of sugar in their products They want their products to meet standards. They selected a random sample of 20 candies and found that the sandard deviation of that sample is 1.7. What is the probabilty of finding a sample variance as high or higher if the population variance is actually 3277 Assume the population distribution is normal.
Find the distance from the point (2,-1) to the line 2x-5y+10=0
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?