# PRG/211 Week 1 Lab 3.7: Simple statistics

Availability: In stock

Regular Price: \$8.00

Special Price: \$3.00

OR Double click on above image to view full picture  ## Quick Overview

PRG/211 Week 1 Lab 3.7.1: Simple statistics

Part 1
Given 3 integers, output their average and their product, using integer arithmetic.

Ex: If the input is 10 20 5, the output is:

11 1000
Note: Integer division discards the fraction. Hence the average of 10 20 5 is output as 11, not 11.666666666666666.

Submit the above for grading. Your program will fail the test cases (which is expected), until you complete part 2 below but check that you are getting the correct average and product using integer division.

Part 2
Also output the average and product, using floating-point arithmetic.

Ex: If the input is 10 20 5, the output is:

11 1000
11.666666666666666 1000.0

Regular Price: \$8.00

Special Price: \$3.00

## Details

PRG/211 Week 1 Lab 3.7.1: Simple statistics

Part 1
Given 3 integers, output their average and their product, using integer arithmetic.

Ex: If the input is 10 20 5, the output is:

11 1000
Note: Integer division discards the fraction. Hence the average of 10 20 5 is output as 11, not 11.666666666666666.

Submit the above for grading. Your program will fail the test cases (which is expected), until you complete part 2 below but check that you are getting the correct average and product using integer division.

Part 2
Also output the average and product, using floating-point arithmetic.

Ex: If the input is 10 20 5, the output is:

11 1000
11.666666666666666 1000.0