Answered step by step
Verified Expert Solution
Question
1 Approved Answer
# Enter your code here. Read input from STDIN. Print output to STDOUT #Task 1 #Write the function random that accept three parameters ( count
# Enter your code here. Read input from STDIN. Print output to STDOUT
#Task
#Write the function random that accept three parameters countllimitulimit
#Function should return mean and median of randomly generated numbers as list
#Instructions
#Set seed. Use set.seed to set seed
#Generate count number of random numbers between llimitulimit Hint Use runif
#Round the numbers. Example :
#Find the mean and median
#Return as list. Title of elements should be mean,median
#Enter code below
#End
random
#Task
#Write the function date which accepts three parameters dmy and return it in date format
#Instructions:
#Convert the values to type characters
#Concatenate the characters. Hint : Use paste function
#Return as date in format yyyymmdd
#Enter code below
#End
date
#Task
#Write the function stringcount which accepts a string as parameter and returns the count of words having more than characters
#Instructions:
#Split the string. Use strsplit to split the string
#Hint : Use length function to get the count of elements in list
#Hint : Use nchar function to find the number of characters in the string
#Return the count
#Enter code below
#End
stringcountIt was well after noon when Sam came up the narrow lane behind the
Parker place"
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started