Ejercicio Python
Publicado por Mau (3 intervenciones) el 26/02/2020 16:42:48
¿Alguien me podría decir como hacer este ejercicio de Python?
Write the code that asks the user age, sex and months of training and calculates the personal recommended weight of a gym exercise, such that: the minimum weight is 20 Kg, the maximum is 60 kg for older than 65 years or 80 kg otherwise, and the formula adds 2 kg for each month of training in case of men and 1 kg per month for women. EXAMPLE: For a 50 years old man with 16 months of training => the recommended weight is 52 kg
Write the code that asks the user age, sex and months of training and calculates the personal recommended weight of a gym exercise, such that: the minimum weight is 20 Kg, the maximum is 60 kg for older than 65 years or 80 kg otherwise, and the formula adds 2 kg for each month of training in case of men and 1 kg per month for women. EXAMPLE: For a 50 years old man with 16 months of training => the recommended weight is 52 kg
Valora esta pregunta


0