Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Statistics are often calculated with varying amounts of input data. Write a program that takes any number of non-negative integers as input, and outputs the

image text in transcribed
image text in transcribed
image text in transcribed
Statistics are often calculated with varying amounts of input data. Write a program that takes any number of non-negative integers as input, and outputs the max and average, respectively. Output the max and average with two digits after the decimal point. Ex if the input is: 14.25250.5.75 the output is: 25.0011.25 Write a program that gets a list of integers from input, and outputs negative integers in descending order (highest to lowest). Ex. If the input is: 1074396122 the output is 26739 For coding simplicity, follow every output value by a space. Do not end with newline. A contact list is a place where you can store a specific contact with other associated information such as a phone number, email address: birthday, etc. Write a program that first takes in word pairs that consist of a name and a phone number (both strings), separated by a comma. That list is followed by a name, and your program should output the phone number associated with that name Assume the search name is always in the list. Ex If the input is: Joe, 1235432 Linda, 9834123 Frank, 8675309 Frank the output is: 86]-5309 main.py Lood defaidt template

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Performance Indexing In SQL Server

Authors: Jason Strate, Grant Fritchey

2nd Edition

1484211189, 9781484211182

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago