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
116 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: What is the maximum value of the quadratic function f(x) = -2x^2 + 5x + 3 over the interval [-3, 4]?
+
What is the standard deviation of a data set: 2, 4, 6, 8, 10?
+
What is the measure of an angle bisector when two adjacent angles have measures 40° and 120°?
+
New questions in Mathematics
𝑦 = ( 𝑥2 − 3) (𝑥3 + 2 𝑥 + 1)
The sum of an infinite geometric series is 13,5 The sum of the same series, calculated from the third term is 1,5. Q. Calculate r if r>0.
the value of sin 178°58'
A consulting company charges a fee of $50 per hour for consulting. If their monthly fixed costs are $1,000 and they want to make a monthly profit of $2,500, how many consulting hours should they bill per month?
7273736363-8
Suppose X has a Poisson distribution, with a mean of 0.4. Determine the probability that x is at most 2.
9b^2-6b-5
calculate the normal vector of line y = -0.75x + 3
determine the polynomial F of degree 2 that interpolates. f at points (0;1) (2;5) (4;6). calculate F(0.8). Note: Using the polynomial expression with difference operator.
Determine the reduced form of the slope equation equal to 2
3%2B2
A company has had the following data for two consecutive years. Total, asset item 3,100,500 euros 3,300,550 euros. Net amount of business figures 4,755,250 euros /5,100 euros Average number of workers employed during the year 64/70 You can present a balance sheet in an abbreviated form
Find the equation of a straight line that has slope 3 and passes through the point of (1, 7) . Write the equation of the line in general forms
Gender and communication : Answer the question ( 1 paragraph is ok) . Please can you write about women? Compared to your other identities, how much of a role does gender play in your life? And has your own sex/gender offered you privileges or disadvantages? How so?
Cuboid containers (open at the top) should be examined with regard to their volume. The figure below shows a network of such containers (x ∈ Df). Determine a function ƒ (assignment rule and definition area D) that describes the volume of these containers and calculate the volume of such a container if the content of the base area is 16 dm². Show that this function f has neither a local maximum nor a global maximum
Evaluate ab+dc if a=56 , b=−34 , c=0.4 , and d=12 . Write in simplest form.
2x-4=8
The inner radius of a spherical ball is 13 cm. How many liters of air are in it? Justify your answer!
Write an equation of the affine function whose graph is perpendicular to the graph of f(x) = 5x − 1 and passes through the point (5, 20).
A plant found at the bottom of a lake doubles in size every 10 days. Yeah It is known that in 300 days it has covered the entire lake, indicate how many days it will take to cover the entire lake four similar plants.