Professional Documents
Culture Documents
Programming For Analytics: HW 1 - 10 Marks: Guidelines
Programming For Analytics: HW 1 - 10 Marks: Guidelines
Guidelines
# Read the carsales.csv file
Car_Data<-read.csv(file="HW1CarSales.csv") – This file is provided in the BB folder HW1
# Q1: (2 Marks)
# Write a code which will print the following output using for loop
*
**
***
****
*****
#Q2 Write a code using for loop which will SUM ONLY the ODD numbers between 1 and 20 ;
# 1 and 20 are included in the set
#(2 marks)
# Q3) Which are the car Makes which have Sales > 500 for February ?
#(2) Marks
# Q4) What Car maker has the MAX Average montly price ?
# (4 Marks)
# HINT Use the max() function as operated on a Vector ; Note You need to compute the Average
Monthly prices first