answer exercise1 and show full stepSolutionSince programming
answer exercise#1 and show full step
Solution
#Since programming language was not specified, answering the solution in R
data<-sample(x=10:20, size = 100, replace = TRUE) # Generates 100 whole random numbers in the range 10 to 20
even_number<-data[which(data%%2==0)] # Extract only even number from the data and store in another object
write.table(x = even_number, file = \"myEvenRandoms.txt\", row.names = FALSE, col.names = FALSE) # Write the even numbers extracted to a text file
