Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 you

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

The Structure Of The Relational Database Model

Authors: Jan Paredaens ,Paul De Bra ,Marc Gyssens ,Dirk Van Gucht

1st Edition

3642699588, 978-3642699580

More Books

Students also viewed these Databases questions

Question

=+2 How does the preparation and support for each type of IE vary?

Answered: 1 week ago