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 value of x where the exponential function f(x) = 10^x intersects with the exponential function g(x) = e^x. (
+
Math Question: What is the value of arccos(1/2)?
+
Question: What is the standard deviation of the set {2, 4, 6, 8, 10}?
+
New questions in Mathematics
If you have a bag with 18 white balls and 2 black balls. What is the probability of drawing a white ball? And extracting a black one?
Determine all solutions to the inequality |2x + 6| − |x + 1| < 6. Write your final answer in interval notation
90 divided by 40
How do you think the company has increased or decreased its income?
Consider numbers from 1 to 2023. We delete 3 consecutive numbers so, that the avarage of the left numbers is a whole number
Perpetual annuities are a series of payments whose duration has no end. Explain how can we calculate them, if they have no end?
4x/2+5x-3/6=7/8-1/4-x
Log5 625
It is known that the content of milk that is actually in a bag distributes normally with an average of 900 grams and variance 25 square grams. Suppose that the cost in pesos of a bag of milk is given by 𝐶(𝑥) = { 3800 𝑠𝑖 𝑥 ≤ 890 4500 𝑠𝑖 𝑥 > 890 Find the expected cost.
How many square feet of floor area are there in three two-storey apartment houses, each of which is 38 feet wide and 76 feet long?
Given (3x+2)E [2;14] how much money (in soles) does Sophia have if numerically it is the greatest value of x?
The maximum gauge pressure of a hydraulic ramp is 16 atm, with a support area whose diameter is 20 cm. What is the mass of the heaviest vehicle that can be lifted?
Use a pattern approach to explain why (-2)(-3)=6
-1%2F2x-4%3D18
(a) List the set of possible rational zeros of the polynomial function F(x) = 2x3 - 11x2 + 13x - 4. (b) Find all rational zeros of F(x). Only do part B
The business college computing center wants to determine the proportion of business students who have personal computers (PC's) at home. If the proportion is greater than 35%, then the lab will modify a proposed enlargement of its facilities. Suppose a hypothesis test is conducted and the test statistic is z= 2.6. Find the P-value for this test.
48 kg of 30% sulfuric acid in a mixture of 10% and 40% sulfuric acid arose. How many kilograms were each of the original solutions?
Identify the slope and y intercept y=11+2/3x
How much does 7.2 moles of ammonium dichromate weigh? (NH4)2Cr2O7
Slope (7,3) and (9,5)