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
99 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 length of the altitude of an equilateral triangle whose side measures 10 units?
+
Question: Find the derivative of f(x) = 3x^2 - 2x + 5.
+
What is the mean, mode, median, range, and average age of a group consisting of 12, 15, 18, 22, 25, and 28?
+
New questions in Mathematics
1 + 1
a runner wants to build endurance by running 9 mph for 20 min. How far will the runner travel in that time period?
5) A family with a father, mother and 3 children must sit on five chairs in a row and the only restriction is that the mother must be at one end. In how many different ways can they be seated?
(-5/6)-(-5/4)
is the x element (180,270), if tanx-3cotx=2, sinx ?
(5y 9)-(y 7)
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
What is 28 marks out of 56 as a percentage
Prove that it is not possible to arrange the integers 1 to 240 in a table with 15 rows and 16 columns in such a way that the sum of the numbers in each of the columns is the same.
Three squares have a total area of 35.25 𝑐𝑚2 . The larger square has twice the side-length of the middle-sized square. The smaller square has its side length exactly 0.5 cm smaller than the middle-sixed square. Find the side lengths of each of the three squares.
In the telephone exchange of a certain university, calls come in at a rate of 5 every 2 minutes. Assuming a Poisson distribution, the average number of calls per second is: a) 1/8 b) 1/12 c) 1/10 d) 2/5 e) 1/24
From 1975 through 2020 the mean annual gain of the Dow Jones Industrial Average was 652. A random sample of 34 years is selected from this population. What is the probability that the mean gain for the sample was between 400 and 800? Assume the standard deviation is 1539
Congratulations, you have saved well and are ready to begin your retirement. If you have $1,750,000.00 saved for your retirement and want it to last for 40 years, and will earn 10.8% compounded monthly: What is the amount of the monthly distribuion? 216.50 How much interest is earned in retirement?
cube root of 56
Which statement best describes the key changes in perspectives on inclusion? An inclusive program must consider the unique experiences of every child and family as well as the child's strengths and needs. There is a shift in thinking about individual programs as "inclusive programs" to thinking about inclusion as something that reflects the cultural influence of the family. There is a greater emphasis on barriers to full participation and the acknowledgement that all children are unique and must be fully and meaningfully engaged in a program. In an inclusive program all participants are accepted by their peers and other members of the community.
Associate each 2nd degree equation with its respective roots. A) x2+6x+8=0 B)x2-5x-6=0
You buy a $475,000 house and put 15% down. If you take a 20 year amortization and the rate is 2.34%, what would the monthly payment be?
A nondegenerate ideal gas of diatomic molecules with a kilomolar mass of 2 kg/kmol and a characteristic rotational temperature of 86 K is adsorbed on the walls of a container, where the binding energy is 0.02 eV. The adsorbed molecules move freely on the walls, and their rotation is confined to the plane of the walls. Calculate the surface density of adsorbed molecules at 12 K if the gas pressure is 103 Pa! What result would you get at 68 K and the same pressure?
4m - 3t + 7 = 16
Sin(5pi/3)