Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me with some Statistics Questions using R code to solve. Thank you so much 4.Ask user to enter as much as number. To

Please help me with some Statistics Questions using R code to solve. Thank you so much

4.Ask user to enter as much as number. To finish entering the numbers, the user has to writestop. When all the values available, calculate the mean, variance, standard deviation, minimum and maximum of the given values.

Hint: an empty vector by usingvector(). You can calculate the mean, variance, standard deviation, minimum and maximum of the given values by usingmean, var, sd, max and min, respectively.

5 How to get thenthsmallest value of given array? (Use for loop for this problem. Do not use existing codes and sort functions.

For example, in given list [11,23,58,31,56,77,43,12,65,19], if n is defined as 3. The program will print 19.

6.How to get thenthlargestevenvalue of given array? (Usewhile loop and if-statementfor this problem. Do not use existing codes.For example, in given list [10,36,58,31,56,77,43,12,65,19], if n is defined as 2. The program will print 56.

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

Applied Linear Algebra

Authors: Peter J. Olver, Cheri Shakiban

1st edition

ISBN: 131473824, 978-0131473829

More Books

Students also viewed these Mathematics questions