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: What is the result of dividing 4/5 by 2/3?
+
Question: What is the probability of rolling a sum of 7 or 11 with two fair dice?
+
What is the result of factoring the mixed number 3¼ and adding it to the product of factoring the number 15 and squaring the real number 5?
+
New questions in Mathematics
Calculate to represent the function whose graph is a line that passes through the points (1,2) and (−3,4). What is your slope?
Solution to the equation y'' - y' - 6y = 0
The Lenovo company manufactures laptop computers, it is known that for every 60 laptops produced, 54 go on the market with the highest quality standards. If a sample of 15 laptops is taken, calculate the probability that: Exactly 2 are not of high quality
Suppose 56% of politicians are lawyers if a random sample of size 564 is selected, what is the probability that the proportion of politicians who are lawyers will differ from the total politicians proportions buy more than 4% round your answer to four decimal places
A pair of die is thrown and the absolute difference of the two scores is recorded. What is the probability of the absolute difference being 4 or more?
prove that if n odd integer then n^2+5 is even
In a grocery store, when you take out 3 peppers and 4 carrots, there are 26 peppers and 46 carrots left. How many peppers and carrots were there initially?
sin 30
What’s the slope of a tangent line at x=1 for f(x)=x2. We can find the slopes of a sequence of secant lines that get closer and closer to the tangent line. What we are working towards is the process of finding a “limit” which is a foundational topic of calculus.
A circular window has a rubber molding around the edge. If the window has a radius of 250 mm, how long is the piece of molding that is required ? (To the nearest mm)
Is -11/8 greater than or less than -1.37?
ind the z-score for which 72% of the distribution's area lies between -z and z. -1.7417, 1.7417 -1.1538, 1.1538 -1.0803, 1.0803 -2.826, 2.826
Calculate the difference between 407 and 27
A person runs 175 yards per minute write a variable that represents the relationship between time and distance
A 20,000 kg school bus is moving at 30 km per hour on a straight road. At that moment, it applies the brakes until it comes to a complete stop after 15 seconds. Calculate the acceleration and the force acting on the body.
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
Perform operations with the polynomials P(x) = x3 and Q(x) = 2x2 + x – 3x3 : a) P(x) - Q(x)
Farm Grown, Inc., produces cases of perishable food products. Each case contains an assortment of vegetables and other farm products. Each case costs $5 and sells for $15. If there are any not sold by the end of the day, they are sold to a large food processing company for $3 a case. The probability that daily demand will be 100 cases is 0.30, the probability that daily demand will be 200 cases is 0.40, and the probability that daily demand will be 300 cases is 0.30. Farm Grown has a policy of always satisfying customer demands. If its own supply of cases is less than the demand, it buys the necessary vegetables from a competitor. The estimated cost of doing this is $16 per case. (a) Draw a decision table for this problem (b) What do you recommend?
Today a father deposits $12,500 in a bank that pays 8% annual interest. Additionally, make annual contributions due of $2,000 annually for 3 years. The fund is for your son to receive an annuity and pay for his studies for 5 years. If the child starts college after 4 years, how much is the value of the annuity? solve how well it is for an exam
Sarah is lining a square tray with 1 inch square tiles. the side length of the tray is 9 inches. How many tiles does Sarah need?