Question: R Loops and Vectors Redo your Lab 2 using R. All requirements stay the same. If you lost points in lab 2, you should fix

 R Loops and Vectors Redo your Lab 2 using R. All

R Loops and Vectors Redo your Lab 2 using R. All requirements stay the same. If you lost points in lab 2, you should fix the problems in lab 4. The following mostly repeats what's required in lab 2 but modified to suit this lab. Find a company that sells products related to your field of study. E.g. if you are a Business major, such a company can be a mortgage company that offers different mortgage plans. Select more than five different products as well as their price and quantity sold in 2017. E.g. 2500 clients (quantity) received the 30 -year mortgage (product name) at an interest rate of 5% (price) in 2017 . You can make up your data as long as your data looks real. Your program must meet the following requirements. 1. Have comments that a. states the author of the program and the date that the program was written or completed ( 5) b. describes the purpose for each code block (5) 2. Use vector(s) and loop(s). (20) 3. Perform the following tasks and generates correct output(s). a. Prepare data that is relevant to the tasks. (10) b. Find the average price of all products. (10') c. Find how many products were sold at a price above the average price found in (b). (10) d. Find the total income from transactions whose price is above the average price found in (b). (10) e. Find the total income from each product. (10') f. Find the total income generated from all sales. (10')

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!