cla15

.py

School

University of the Cumberlands *

*We aren’t endorsed by this school

Course

131

Subject

Computer Science

Date

Oct 30, 2023

Type

py

Pages

1

Uploaded by ColonelClover4830

Report
#cla15.py #Ke'Shawn Stafford #10/25/2023 #a program that performs maximum, minimum, and average functions def maximum(num1,num2,num3): if (num1 >= num2) and (num1 >= num3): maxnum = num1 elif (num2 >= num1) and (num2 >= num3): maxnum = num2 else: maxnum = num3 return maxnum def mininum(num1,num2,num3): if (num1 <= num2) and (num1 <= num3): minnum = num1 elif (num2 <= num1) and (num2 <= num3): minnum = num2 else: minnum = num3 return minnum def average(num1,num2,num3): avgnum = (num1+num2+num3)/3 return avgnum num1 = int(input("enter an integer: ")) num2 = int(input("enter an integer: ")) num3 = int(input("enter an integer: ")) maxnum = maximum(num1,num2,num3) minnum = mininum(num1,num2,num3) avgnum = average(num1,num2,num3) print("maximum of",num1,num2,num3,"is",maxnum) print("minimum of",num1,num2,num3,"is",minnum) print("average of",num1,num2,num3,"is {:.1f}".format(avgnum))
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help

Browse Popular Homework Q&A

Q: Use the graph of the function f to solve the inequality. (a) f(x) > 0 (b) f(x) 0 is (Type your…
Q: To determine whether training in a series of workshops on creative thinking increases IQ scores, a…
Q: Why is internal control so critical to the success of a business?
Q: Two ice skaters (Shidaho & Lindiana) are at rest and are facing each other. Then Shidaho pushes…
Q: Write a program that determines the number of digits in an integer: Enter an integer: 374 The…
Q: A point charge Q moves on the x-axis in the positive direction with a speed of 370 m/s. A point P is…
Q: 4. Draw all of the target products for the reactions below. Identify the major product(s). a. HINT:…
Q: The overhanging edge of a roof, usually at the bottom of a slope is O Header O Eave O Cornice O…
Q: Follow the steps to sketch the magnitude characteristic of the Bode plot for the following transfer…
Q: why will people be against bill to establish a national ballot initiative to bypass congressional…
Q: An RLC series circuit as shown is operating at its resonant frequency. At this frequency, how are…
Q: Orbit Services, Inc. pays $740,000 to acquire 35% (100,000 shares) of the voting stock of State…
Q: n eq_world_map_3.py, we specified the title manually when defining my_layout, which means we have to…
Q: <Ms is taken. What is the probability that this random sample of 100 M&Ms will contain 17% or fewer…
Q: Cara tracked the population of fish in a pond. At the end of the first year, she counted 8 fish.…
Q: Write an equation in slope-intercept form for the linear function that meets these conditions. Don't…
Q: Journalize the following transactions (use a 360-day year in interest calculations):   Mar. 1…
Q: Exercise 11.2. Prove Proposition (b) An injective covering map is a homeomorphism.
Q: How would you engage front line staff in QI programs when the day-to-day functions alone can be so…
Q: Fiona cleans offices. She is allowed 7 seconds per square foot. She cleans building A, which is…
Q: (e) f is continuous and closed but not open. (f) f is open and closed but not continuous.
Q: SCH₂ H OH H OH W W and Z X and Z X and Y W and Y NH₂ W and X =0 I CH₂ H OH X H H H NH₂ CH₂ OH OH Y…