Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

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

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions

Question

11 P 2 Perform the indicated calculation.

Answered: 1 week ago

Question

Describe the components of a needs assessment.

Answered: 1 week ago