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)
What is the amplitude and period of the sine function f(x) = sin x? Is the graph symmetric with respect to the origin? Is f(x) an odd function?
+
What is the value of sinh(arccos(x)) if x = 0.5?
+
What's the derivative of f(x) = 3x^4 - 2x^3 + 5x^2 - 7x + 9?
+
New questions in Mathematics
Using a remarkable product you must factor the expression: f(x) =36x^2-324 and you are entitled to 5 steps
a runner wants to build endurance by running 9 mph for 20 min. How far will the runner travel in that time period?
-6(3x-4)=-6
The gross domestic product the gdp for the United States in 2017 was approximately $2.05x10^3. If you wrote this number in standard notation , it would be 205 followed by how many zeros
3(2+x)-2(2x+6)=20-4x
Determine the correct value: A company knows that invoices pending collection have a normal distribution with a mean of $1.65 million, with a standard deviation of $0.2 million, then: The probability that an invoice pending collection has an amount that is within more than 2 deviations below the mean, is:
What will be the density of a fluid whose volume is 130 cubic meters contains 16 technical units of mass? If required Consider g=10 m/s2
what is the annual rate on ​$525 at 0.046​% per day for 3 months?
2x+4x=
Task 1 angel has 3 quarters 3/8 of a tank of gasoline and Miguel 7/8, who has more gasoline? number line on number line
You are the newly appointed transport manager for Super Trucking (Pty) Ltd, which operates as a logistics service provider for various industries throughout southern Africa. One of these vehicles is a 4x2 Rigid Truck and drawbar trailer that covers 48,000 km per year. Use the assumptions below to answer the following questions (show all calculations): Overheads R 176,200 Cost of capital (% of purchase price per annum) 11.25% Annual License Fees—Truck R 16,100 Driver Monthly cost R 18,700 Assistant Monthly cost R 10,500 Purchase price: - Truck R 1,130,000 Depreciation: straight line method Truck residual value 25% Truck economic life (years) 5 Purchase price: Trailer R 370,000 Tyre usage and cost (c/km) 127 Trailer residual value 0% Trailer economic life (years) 10 Annual License Fees—Trailer R 7,700 Fuel consumption (liters/100km) 22 Fuel price (c/liter) 2053 Insurance (% of cost price) 7.5% Maintenance cost (c/km) 105 Distance travelled per year (km) 48000 Truck (tyres) 6 Trailer (tyres) 8 New tyre price (each) R 13,400 Lubricants (% of fuel cost) 2.5% Working weeks 50 Working days 5 days / week Profit margin 25% VAT 15% Q1. Calculate the annual total vehicle costs (TVC)
A diamond ring was reduced from $999.99 to $689.99. Find the percent reduction in the price. Round the answer to the nearest tenth of a percent, if necessary.
X^3 - x^2 - 4 = 0, what are the values of x?
A block slides across the floor with a force of 20N, which has an angle of 30°. The mass of the block is 2kg and the coefficient of friction is 0.1. Calculate the value of all the forces involved in this system and finally the value of the acceleration.
Calculate NPV, IRR and PAYBACK through a cash flow for a period of five years, with discount rate of: a) 10% b) 12% c) 15% initial annual cost $41,400,000
2.3 X 0.8
Solve for z: 2z-6=10z+2
Arturo had hospitalization expenses of $8,300. Your policy for medical expenses Seniors have a deductible of $500 and expenses are paid at a 20% coinsurance. These are the first expenses ever this year, how much will Arturo have to pay in your bill for hospitalization expenses?
f(r) = 1/r+9 find f(x^2) + 1
Matilde knows that, when driving her car from her office to her apartment, she spends a normal time of x minutes. In the last week, you have noticed that when driving at 50 mph (miles per hour), you arrive home 4 minutes earlier than normal, and when driving at 40 mph, you arrive home 5 minutes earlier later than normal. If the distance between your office and your apartment is y miles, calculate x + y.