College

We appreciate your visit to A grocery store company is revising its cashier and check out staffing The company wants you to develop an object oriented software simulator to determine. This page offers clear insights and highlights the essential aspects of the topic. Our goal is to provide a helpful and engaging learning experience. Explore the content and find the answers you need!

A grocery store company is revising its cashier and check-out staffing. The company wants you to develop an object-oriented software simulator to determine if their new policy will meet the needs of both customers and the store.

The store has eight checkout lanes. One lane is always marked "Express: nine items or less," and another is marked "Express: nineteen items or less." Not all checkout lanes are always staffed.

The time taken for a cashier to complete a transaction with a customer depends on:
- The number of items that the customer has.
- Whether the customer is paying by (a) cash, (b) cheque, or (c) debit card.
- A small random factor.

Assume the following:
- It takes a cashier 5 seconds per item.
- It takes a customer 1 minute to pay by cash, 2 minutes to pay by debit card, and 2.5 minutes to pay by cheque.

The time taken for a customer to pass through a checkout lane also depends on how busy the checkout registers are when the customer decides to enter a lane and the time to process the customers ahead in the lane.

The company wants to run the same pattern of customers through various cashier configurations to see what configuration works best. Therefore, they want three separate programs:

1. The first program creates a file specifying the customers for a given simulation. This file should list the customers in the order of their arrival at the checkouts, the number of items that the customer intends to buy, and the method of payment the customer intends to use.

2. The second program creates a file specifying the configuration of cashiers for a given simulation. This file should list when a cashier comes on duty and when the cashier goes off duty. For simplicity, assume that there is a fixed number of cashiers available at any given time and that they are all tending tills.

3. The third program runs a simulation by reading a customer file and a cashier file and simulating and timing the interactions. At a minimum, the third program should measure how often cashiers are idle and how often customers must wait a long time to be served.

Here are some questions you might want to think about:
1. How do you decide when the express check-out lanes are staffed?
2. Can you use a debit card on either of the express lanes?
3. How does a customer choose which lane to stand in?
4. What happens if there is a lineup when cashiers are at the end of their shift?
5. How long does it take for cashiers to switch at a till?

I need this solution in a C++ program.

Answer :

Final answer:

To develop an object-oriented software simulator for a grocery store company to test different cashier configurations, you will need to create classes for the grocery store, cashier, and customer. Implement methods to handle staffing of express check-out lanes, use of debit cards on express lanes, customer lane selection, transition between shifts, and time taken for cashiers to switch at a till. Finally, develop three separate programs to create customer and cashier files, and run the simulation.

Explanation:

To develop an object-oriented software simulator for the grocery store company, you will need to follow these steps:

  1. Create a class for the grocery store that includes attributes such as the number of checkout lanes and the types of payment methods.
  2. Create a class for the cashier that includes attributes such as the time taken per item, the time taken for different payment methods, and the random factor.
  3. Create a class for the customer that includes attributes such as the number of items and the chosen payment method.
  4. Implement a method in the grocery store class to determine when the express check-out lanes should be staffed. This can be based on the number of items in the customer's cart.
  5. Implement a method in the grocery store class to handle the use of debit cards on the express lanes.
  6. Implement a method in the customer class to choose which lane to stand in. This can be based on factors such as the number of items in each lane and the busyness of the checkout registers.
  7. Handle the scenario where there is a lineup when cashiers are at the end of their shift by implementing a method in the grocery store class to manage the transition between shifts.
  8. Implement a method in the cashier class to calculate the time taken for cashiers to switch at a till.
  9. Develop three separate programs: one to create a file specifying the customers for a given simulation, one to create a file specifying the configuration of cashiers for a given simulation, and one to run the simulation by reading the customer and cashier files and timing the interactions.

Learn more about developing an object-oriented software simulator for a grocery store company to test different cashier configurations here:

https://brainly.com/question/32864158

#SPJ14

Thanks for taking the time to read A grocery store company is revising its cashier and check out staffing The company wants you to develop an object oriented software simulator to determine. We hope the insights shared have been valuable and enhanced your understanding of the topic. Don�t hesitate to browse our website for more informative and engaging content!

Rewritten by : Barada