Skip to content

Sweep: create a new type of customer that just looks at books #4

@szepix

Description

@szepix

Details

This client will have a list of the books that he looks at, add him to simulation

Checklist
  • looker_customer.h

• Create a new class LookerCustomer that inherits from the Customer class.
• Add a new private attribute, a vector of books that the customer has looked at.
• Add a public method to add a book to the looked at list.
• Override the interaction method to implement the behavior of just looking at books.

  • looker_customer.cpp

• Implement the methods defined in the LookerCustomer header file.

  • simulation.h

• Modify the select_random_data method to also generate LookerCustomers for the simulation.

  • simulation.cpp

• Implement the changes made in the Simulation header file.
• In the select_random_data method, add code to generate LookerCustomers.
• In the run method, add code to handle interactions with LookerCustomers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    sweepAssigns Sweep to an issue or pull request.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions