Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are given a tuple with numbers. Your job is to finds the sum and average of the given numbers in that tuple. =================================================================== Example

You are given a tuple with numbers. Your job is to finds the sum and average of the given numbers in that tuple.

===================================================================

Example 1:

Given tuple: (1, 18, 15, 12, 10, 25, 15, 18, 15, 18, 18, 20, 3, 34, 3)

Output:

The sum is: 225

The average is: 15.0

===================================================================

Example 2

Given tuple: (25, 18, 15, 12, 10, 25, 15, 10, 25, 5, 8, 8, 25)

Output:

The sum is: 201

The average is: 15.461538461538462

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

Step: 3

blur-text-image

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

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

More Books

Students also viewed these Databases questions

Question

What the major U.S. stock indexes are? LO.1

Answered: 1 week ago

Question

=+ (b) Show that X' and Y' are dependent but uncorrelated.

Answered: 1 week ago

Question

6. Are my sources reliable?

Answered: 1 week ago

Question

5. Are my sources compelling?

Answered: 1 week ago