Back to problems

Product Price Query System

Object-Oriented Programming · Square · Easy

A retailer keeps a daily history of product prices. Each record is a comma-separated string in this format: " , , ". Here’s what each part means: item_name: a product name that can include spaces. date: a unique ISO date string in the form "yyyy-mm-dd". price: an integer price in cents. Design a class called ProductPriceManager that allows fast retrieval of prices and computing how much a price changed over time. Class Definition Initializes the manager with the provided…

Checking your access…