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
51 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 probability of drawing two red cards from a standard deck of 52 cards without replacement?
+
What is the formula for calculating the area of a triangle given the length of its base and height?
+
What is the probability of rolling a multiple of 3 on a fair six-sided die?
+
New questions in Mathematics
If we have the sequence: 3, 6, 12, 24 Please determine the 14th term.
The patient is prescribed a course of 30 tablets. The tablets are prescribed “1 tablet twice a day”. How many days does a course of medication last?
-6(3x-4)=-6
For a temperature range between -3 degrees Celsius to 5 degrees Celsius, what is the temperature range in degrees Farenheight
X^2 = 25
A food delivery company charges on average a delivery fee of $5 per order (including food and shipping) and has monthly fixed costs of $600. If the average cost of each meal delivered that is revenue for the company is $10 and the company has a monthly profit of $800, how many orders must they deliver per month?
A person borrows rm 1000 from a bank at an interest rate of 10%. After some time, he pays the bank rm 1900 as full and final settlement of the loan. Estimate the duration of his loan.
The average number of babies born at a hospital is 6 per hour. What is the probability that three babies are born during a particular 1 hour period?
Two business partners have a bank balance of $17,942.00. After the first year their interest brings their balance to $18,928.91. What rate of interest is earned?
Calculate the boiling temperature and freezing temperature at 1 atmosphere pressure of a solution formed by dissolving 123 grams of ferrous oxide in 1.890 grams of HCl.
A storage maker price is $2.50 per square feet. Find the price of a custom shed 4 yards long, and 5yards wide and 8 feet tall
Take the limit of (sin(x-4))/(tan(x^2 - 16) as x approaches 4.
A loan is repaid with payments of $2226 made at the end of each month for 12 years. If interest on the loan is 5.2%, compounded semi-annually, what is the initial value of the loan? Enter to the nearest cent (two decimals). Do not use $ signs or commas.
2X+2=8
Calculate the change in internal energy of a gas that receives 16000 J of heat at constant pressure (1.3 atm) expanding from 0.100 m3 to 0.200 m3. Question 1Answer to. 7050J b. 2125J c. None of the above d. 2828J and. 10295 J
Find the vertex F(x)=x^2-10x
How much does 7.2 moles of ammonium dichromate weigh? (NH4)2Cr2O7
2p-6=8+5(p+9)
(3.1x10^3g^2)/(4.56x10^2g)
The car with an irresponsible driver starts to brake when it goes through a red light. When passing the traffic light, he does so at a speed of 115 kph in the right lane. Further ahead, 70 meters from the traffic light, a child is crossing the street and falls. If the effect of the car's brakes is equivalent to a deceleration of magnitude 5.7m/s². Is the child hit by the car or not? How far from the traffic light does the car stop?