Question: Please answer in KOTLIN program The goal is to create a simple program that calculates the arithmetic mean (average) of 3 integer numbers. You will
Please answer in KOTLIN program
The goal is to create a simple program that calculates the arithmetic mean (average) of 3 integer numbers. You will ask the user to enter three numbers. Then take the mean of these three numbers and print it out for the user to view. Ensure the output is correct (the last decimal may be off, that is okay) and display it to the user in a message created by concatenating the string "The mean was" with the mean you calculated. After this, ask the user to enter a fourth integer and store this as a variable. Then add this integer to the calculated mean and output it for the user to see in a similar message made by concatenation. Example output might look like the following: Enter a number: 3 Enter a number: 6 Enter a number: 1 The mean was 3.3333333333333335 Enter another number: 2 The mean plus 2 is 5.3333333333333335
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
