Question: write a program to implement an inventory tracking system for a robot retail store. Given a transaction log 'logs' where each log item corresponds to

write a program to implement an inventory tracking system for a robot retail store. Given a transaction log 'logs' where each log item corresponds to one of three transaction types 'supply', 'sell', or 'upgrade'. Log items are generated in the following format ["supply",","",""]. The store receives units of and each costs .["sell","",""]. The store sells units of . If the robot is available at different prices, the store is guaranteed to have enough robots for all transactions. ["upgrade",","","",""] the store upgrades units of to a new price

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!