Answered step by step
Verified Expert Solution
Question
1 Approved Answer
R PROGRAMMING Question 3: A grocery store is building a simple planning tool to assist in product management. The store sells produces 7 different types
R PROGRAMMING
Question 3: A grocery store is building a simple planning tool to assist in product management. The store sells produces 7 different types of products: Milk, Bread, Chicken, Beef, Chocolate, Olive Oil and Burgers. The tool should allow the user to enter the packaging date of the current batch of stock, as well as the shelf life (in days and hours) and the lead time for each product. Based on this information, your R script should be able to calculate the expiry date of the current batch of each product, as well as determine whether the current batch has expired or not. Based on the expiry date, a latest new order date should also be calculated taking into account the product lead time. Create and populate a dataframe in which all the user entered information as well as the expiry date, current status (i.e. Fresh or Expired), and latest new order date of the products is captured. The design and naming conventions of the dataframe columns may be defined as is logical for you. Question 3: A grocery store is building a simple planning tool to assist in product management. The store sells produces 7 different types of products: Milk, Bread, Chicken, Beef, Chocolate, Olive Oil and Burgers. The tool should allow the user to enter the packaging date of the current batch of stock, as well as the shelf life (in days and hours) and the lead time for each product. Based on this information, your R script should be able to calculate the expiry date of the current batch of each product, as well as determine whether the current batch has expired or not. Based on the expiry date, a latest new order date should also be calculated taking into account the product lead time. Create and populate a dataframe in which all the user entered information as well as the expiry date, current status (i.e. Fresh or Expired), and latest new order date of the products is captured. The design and naming conventions of the dataframe columns may be defined as is logical for youStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started