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)
Question: Find the integral of ∫ (sin(x) + cos(x)) dx using the standard formulas.
+
Question: What is the area under the curve of f(x) = 3x^2 + 2x - 1 from x = -2 to x = 4? (
+
What is the value of 3 to the power of 4 multiplied by the square root of 25?
+
New questions in Mathematics
Add. 7/w²+18w+81 + 1/w²-81
12-6x=4x+2
What is the amount of interest of 75,000 at 3.45% per year, at the end of 12 years and 6 months?
a) A tap can supply eight gallons of gasoline daily to each of its 250 customers for 60 days. By how many gallons should each customer's daily supply be reduced so that it can supply 50 more customers for twenty more days?
The length and breadth of my rectangular vegetable garden is 12,5m and 7,25m respectively. What is the perimeter of the garden?
Two numbers differ by 7, and the sum of their squares is 29. Find the numbers.
An integer is taken at random from the first 40 positive integers. What is the probability that the integer is divisible by 5 or 6?
A regional candy factory sells a guava roll at a price of $48, the monthly fixed costs amount to $125,000 and the variable cost for making a guava roll is $28. Determine: a) The equation of the total income from the production of guava rolls.
A vaccine has a 90% probability of being effective in preventing a certain disease. The probability of getting the disease if a person is not vaccinated is 50%. In a certain geographic region, 60% of the people get vaccinated. If a person is selected at random from this region, find the probability that he or she will contract the disease. (4 Points)
In an audience of 4000 people, 2 people are chosen, at random, to appear on stage. How many ways can the people be chosen?
Which of the methods below can be used to workout 95% of an amount? a. Dividing the amount 100 and multiply by 95 b. Working out 5% of the amount and taking it away from the full amount c. Dividing 95 by 100 and multiplying the answer by the amount d. Dividing the amount by 95 and then multiply by 100
Buffalo Company makes and sells shampoo. Each unit requires $1.40 labor costs, material costs per unit are $0.90 and other variable costs are $0.30. It sells shampoo for $4.45 to retailers. Fixed costs are $15,000. It sold 25,000 units in the current month. What is the Break-Even point in units? What is the Break-Even point in dollars? What is the contribution margin of Buffalo Company?
Calculate the area of the parallelogram with adjacent vertices (1,4, −2), (−3,1,6) 𝑦 (1, −2,3)
a) 6x − 5 > x + 20
To verify that a 1 kg gold bar is actually made of pure gold, a dynamometer is used to record the weight of the bar submerged in water and out of water. a) What would be the value of the weight of the ingot recorded by the dynamometer out of the water? b) What magnitude of thrust does the ingot receive when it is submerged? c) What would the weight of the ingot have to be when it is submerged? Data Pagua = 1000 kg/m³ Pagua= 19300 kg/m³
Identify the slope and y intercept y=11+2/3x
did an analysis of dropout from the nursing faculty at the Universidad Veracruzana. With a poblation of 122 students, it turned out that according to the gender data, the female sex predominates with 82%, and the male sex male is found with 12%. The main factors why students drop out are, first of all, "Not "re-enrolled" at 49%, second place "Personal reasons" at 20%, third place "change of school" in 11%, "lack of documents" and "economic reasons" in 7%, change of residence and lack of social service in 3%. Of this sample, how many students dropped out for other reasons?
t+72/t=-17
(3.1x10^3g^2)/(4.56x10^2g)
A plant found at the bottom of a lake doubles in size every 10 days. Yeah It is known that in 300 days it has covered the entire lake, indicate how many days it will take to cover the entire lake four similar plants.