Question: Write Python programs to do the following. 1. Display Good Afternoon! to the console. 2. Get a name of an animal as input from the
Write Python programs to do the following. 1. Display Good Afternoon! to the console. 2. Get a name of an animal as input from the user and display a message confirming which animal the user selected. 3. Get two numbers as input from the user and display their sum to the screen with an appropriate message. 4. Initialize four variables with integer values from 0 to 100. Display the average of the numbers to the screen with two decimal places. 5. Get the radius of a circle as input from the user and display the circumference and area of the circle to the console. 6. A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one liter of milk is $0.38, and the profit of each carton of milk is $0.27. a. Get the total amount of milk produced in the morning as input from the user. b. Display the number of cartons needed to hold the milk (round to the nearest integer). c. Display the cost of producing the milk. d. Display the profit from the days milk. 7. Get three integers as input from the user. Display the value of the largest integer to the console with an appropriate message. 8. Obtain the length of three sides of a triangle and display a message indicating whether the triangle is a right triangle or not.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
