Menu

Coral Prorgamming Langauage Part 1 Given 3 Integers Output Average Product Using Integer A Q43901785

IN CORAL PRORGAMMING LANGAUAGE

Part 1

Given 3 integers, output their average and their product, usinginteger arithmetic.

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

11 1000

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

Submit the above for grading. Your program will fail the testcases (which is expected), until you complete part 2 below butcheck that you are getting the correct average and product usinginteger division.

Part 2

Also output the average and product, using floating-pointarithmetic.

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

11 100011.666666666666666 1000.0

3.7 Variables/Assignments: Simple statistics CHALLENGE ACTIVITY 3.7.1: Simple statistics. Jump to level 1 Part 1 Given 3 inte

3.7 Variables/Assignments: Simple statistics CHALLENGE ACTIVITY 3.7.1: Simple statistics. Jump to level 1 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 2 // Your solution goes here Variables Not shown when editing Code Flowchart Check Try again View your last submission V Feedback? Show transcribed image text 3.7 Variables/Assignments: Simple statistics CHALLENGE ACTIVITY 3.7.1: Simple statistics. Jump to level 1 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 2 // Your solution goes here Variables Not shown when editing Code Flowchart Check Try again View your last submission V Feedback?

Expert Answer


Answer to IN CORAL PRORGAMMING LANGAUAGE Part 1 Given 3 integers, output their average and their product, using integer arithmetic…

OR