From cd24fcbde3cb7923832fa2d71bfd9bfbb14a9eda Mon Sep 17 00:00:00 2001 From: lorelyne <89626636+lorelyne@users.noreply.github.com> Date: Mon, 27 Nov 2023 20:01:37 -0700 Subject: [PATCH] Update spec.md --- labs/ec/spec.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/labs/ec/spec.md b/labs/ec/spec.md index 2e15cb2..5942a32 100644 --- a/labs/ec/spec.md +++ b/labs/ec/spec.md @@ -85,17 +85,17 @@ The Movie class should also have the following methods: - This method takes in the number of tickets the user requested to purchase - This method should return true if there are enough tickets available for purchase at this movie, and false otherwise. -- purchaseTickets: +### - purchaseTickets: - This method should take in the number of tickets that will be purchased. - This method should adjust the number of tickets available after purchase. - For example, if there are 40 tickets available and the user purchases 5 tickets, there should be 35 tickets available. The user should not be allowed to purchase more tickets than there are available. - This method should return the amount spent. Otherwise, return 0.0. - For example, if I buy 5 tickets at $20.0 each, the method should return 100.0. -- printMovieDetails: +### - printMovieDetails: - This method should print the main attributes of a movie (movieName, genre, ticketPrice, and numTicketsAvailable) in a nicely formatted way. -- printConcessionDetails: +### - printConcessionDetails: - This method should print the remaining attributes of a movie (popcornPrice, sodaPrice, and candyPrice) in a nicely formatted way