Preparing your design workspace

Loading the problem and your saved attempt…

Design and Implement Movie Theater Ticket Pricing

Model and implement an extensible quote calculation for formats, showtimes, seat tiers, and fixed-price add-ons.

Design and implement a movie-theater ticket-pricing system. A ticket has a movie-format base price, a showtime multiplier, a seat-tier multiplier, and zero or more fixed-price add-ons. Calculate Price = (movie base price + sum of add-on prices) × showtime multiplier × seat-tier multiplier.

The design should accept new formats, showtimes, seat tiers, and add-ons without major changes to the existing workflow.

For this exercise, assume one request prices one ticket. Catalog entries are immutable during a quote; money uses integer cents; multipliers use basis points where 10,000 means 1.0; and the final value rounds half up once after both multipliers. Catalog resolution rejects unknown identifiers and duplicate add-ons before the bounded calculation, which uses arbitrary-precision integers and rejects negative prices or non-positive multipliers. Booking, seat availability, payment, refunds, persistence, and user-interface concerns are outside scope.