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 range of the sine function when evaluating angles from 0 to 360 degrees?
+
Question: What is the derivative of ∫(5x^2 + 3x + 1)dx from x = 1 to x = 3?
+
What is the area of a triangle if the base is 7 units and the height is 4 units?
+
New questions in Mathematics
a ferry travels 1/6 of the distance between two ports in 3/7 hour. The ferry travels at a constant rate. At this rate, what fraction of the distance between the two ports can the ferry travel in one hour.
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
Determine all solutions to the inequality |2x + 6| − |x + 1| < 6. Write your final answer in interval notation
I) Find the directional derivative of 𝑓(𝑥, 𝑦) = 𝑥 sin 𝑦 at (1,0) in the direction of the unit vector that make an angle of 𝜋/4 with positive 𝑥-axis.
A bird randomly chooses to land on 1 of 12 perches available in its aviary. Determine the Probability of it landing on a perch numbered 8 and then on a perch marked with a prime number; take into account that he never lands on the same perch in the sequence.
-3x 2y = -6; -5x 10y = 30
Log(45)
41/39 - 1/38
Find 2 numbers whose sum is 47 and whose subtraction is 13
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)
If X1 and X2 are independent standard normal variables, find P(X1^2 + X2^2 > 2.41)
The function h(t)=-5t^2+20t+60 models the height in meters of a ball t seconds after it’s thrown . Which describe the intercepts and vertex of this function
3+7
factor the polynomial completely over the set of complex numbers b(x)=x^4-2x^3-17x^2+4x+30
Solve for B write your answer as a fraction or as a whole number. B-1/7=4
Given two lines 𝐿1: 𝑥 + 4𝑦 = −10 and 𝐿2: 2𝑥 − 𝑦 = 7. i. Find the intersection point of 𝐿1 and 𝐿2.
2.3 X 0.8
Sally’s sales for last Sunday were $1,278. That was an increase of 6.5% over her sales for the previous Saturday. What were her sales for the previous Saturday?
Convert (324)𝑓𝑖𝑣𝑒 into base-ten
Beren spent 60% of the money in her piggy bank, and Ceren spent 7% of the money in her piggy bank to buy a joint gift for Deren, totaling 90 TL. In the end, it was observed that the remaining amounts in Ceren and Beren's piggy banks were equal. Therefore, what was the total amount of money that Beren and Ceren had initially? A) 120 B) 130 C) 150 D) 160 E) 180