homework answer the following questions write your code in r below eac
# Answer the following questions.
# Write your code in R below each question.
# Run the code to see it really works.
# Run the codes to create the following vectors.
# This is a dataset about products, their inventory levels
# and unit costs at a company
productNames = c("x01","x02","y25", "y39", "z33", "z47", "z59")
inventoryLevels = c(1200, 1450, 1100, 900, 550, 730, 850)
productUnit Costs = c(11.50, 9.50, 13.00, 20.50, 25.00, 42.00, 35.00)
# 1) List first 3 product names
# 2) List inventory levels of product 2, 5, and 7
# 3) List cost of all products except 3 and 6
# 4) The company decided to discontinue product "z33". So, delete
this product's name, inventory and cost information from the
# 5) The company decided to make a new product called "x10" with
an initial inventory level of 100 and unit cost of 45.00 dollars.
# Add this new product's information at the end of the dataset.
# 6) The company needs to know how much money is tied at the
inventory (ie. value of the inventory).
For this calculation, you need to write a long equation
multiplying each product's inventory level by the unit cost,
and adding up for all products. Print inventory value at the end.
HINT: invValue = inv1 * cost1 + inv2 * cost2 + ...
*The amount will be in form of wallet points that you can redeem to pay upto 10% of the price for any assignment. **Use of solution provided by us for unfair practice like cheating will result in action from our end which may include permanent termination of the defaulter’s account.Disclaimer:The website contains certain images which are not owned by the company/ website. Such images are used for indicative purposes only and is a third-party content. All credits go to its rightful owner including its copyright owner. It is also clarified that the use of any photograph on the website including the use of any photograph of any educational institute/ university is not intended to suggest any association, relationship, or sponsorship whatsoever between the company and the said educational institute/ university. Any such use is for representative purposes only and all intellectual property rights belong to the respective owners.