Part - 2 Walkthrough

txt

School

Seneca College *

*We aren’t endorsed by this school

Course

145

Subject

Computer Science

Date

Apr 3, 2024

Type

txt

Pages

4

Uploaded by ColonelDiscovery13270

Report
1. One senior, two adults, and one child go to the A La Carte venue at 8:00 PM to see the musical “Trump Squeaks”. Using your process determine how much the ticket charges cost. 001: Start the execution 003: Pay $50 to secure reservation 004: Get the QR code 005: Prompt input: Are you interested in Musical or Theatrical Events?: Enter 'M' for Musical or 'T' for Theatrical?: 006: Input: M 007: Is Input = 'M' or 'm': YES 008: event = m 009: Prompt input: Are you booking a Matinée (12pm-4pm) or Evening (6pm-9pm) event Enter 'M' for Matinée or 'E' for Evening?: 010: Input: E 011: Is Input = 'M' or 'm'? : NO 012: Is Input = 'E' or 'e'? : YES 013: Is (event = 'M' or 'm') and (time = 'M' or 'm')? : NO 014: Is (event = 'M' or 'm') and (time = 'E' or 'e')? : YES 015: fee = $150.00 016: Number of children: 1 017: Number of adults: 2 018: Number of seniors: 1 019: numPeople = 1 + 2 + 1 = 4 020: OUTPUT: Number of Persons = 4 021: Is numPeople = 1? NO 022: Is numPeople = 2? NO 023: Is numPeople = 3? NO 024: Is numPeople = 4? YES 025: OUTPUT: OUTPUT: Great. You benefit from a 20% discount. 026: childCharge = 1 * 0.75 * (1 - 0.2) = 0.6 027: adultCharge = 2 * 4 * (1 - 0.2) = 6.4 028: seniorCharge = 1 * 1.5 * (1 - 0.2) = 1.2 029: Output: Number of Children: 1 Output: Price per child: 0.75 Output: Subtotal Children: 0.6 Output: Number of Adults: 2 Output: Price per Adult:4 Output: Subtotal Adults: 6.4 Output: Number of Seniors: 1 Output: Price per Senior: 1.5 Output: Subtotal Seniors: 1.2 Output: Your desired Event is "musical" and your chosen time is "evening"! Ouput: Your Fee for the venue is: "150.00"! 030: totalcoverCharge = 0.6 + 6.4 + 1.2 = 8.2 031: Total charge = 8.2 021: Output: Total Amount = 8.2 + 150.00 = 158.2 022: MAKE_PAYMENT 023: Output: Reservation confirmed. Please scan your QR code upon arrival. 024: Scan QR_CODE 025: Go ahead and enjoy the show. 2. One senior, two adults, and one child go to the A La Carte venue at 3:00 PM to see the musical “Doug Ford Barks”. Using your process determine how much the ticket charges cost. 001: Start the execution 003: Pay $50 to secure reservation 004: Get the QR code
005: Prompt input: Are you interested in Musical or Theatrical Events?: Enter 'M' for Musical or 'T' for Theatrical?: 006: Input: M 007: Is Input = 'M' or 'm': YES 008: event = m 009: Prompt input: Are you booking a Matinée (12pm-4pm) or Evening (6pm-9pm) event Enter 'M' for Matinée or 'E' for Evening?: 010: input = M 011: Is Input = 'M' or 'm'? : YES 012: time = M 013: Is (event = 'M' or 'm') and (time = 'M' or 'm')? : YES 014: fee = $70.00 015: Number of children: 1 016: Number of adults: 2 017: Number of seniors: 1 018: numPeople = 1 + 2 + 1 = 4 019: OUTPUT: Number of Persons = 4 020: Is numPeople = 1? NO 021: Is numPeople = 2? NO 022: Is numPeople = 3? NO 023: Is numPeople = 4? YES 024: OUTPUT: OUTPUT: Great. You benefit from a 20% discount. 025: childCharge = 1 * 0.75 * (1 - 0.2) = 0.6 026: adultCharge = 2 * 4 * (1 - 0.2) = 6.4 027: seniorCharge = 1 * 1.5 * (1 - 0.2) = 1.2 028: Output: Number of Children: 1 Output: Price per child: 0.75 Output: Subtotal Children: 0.6 Output: Number of Adults: 2 Output: Price per Adult:4 Output: Subtotal Adults: 6.4 Output: Number of Seniors: 1 Output: Price per Senior: 1.5 Output: Subtotal Seniors: 1.2 Output: Your desired Event is "musical" and your chosen time is "matinee"! Ouput: Your Fee for the venue is: "70.00"! 029: totalcoverCharge = 0.6 + 6.4 + 1.2 = 8.2 030: Total charge = 8.2 031: Output: Total Amount = 8.2 + 70.00 = 78.2 032: MAKE_PAYMENT 033: Output: Reservation confirmed. Please scan your QR code upon arrival. 034: Scan QR_CODE 035: Go ahead and enjoy the show. 3. One senior, two adults, and one child go to the A La Carte venue at 8:00 PM to see the theatre production of “Saw 1 – Where it Began”. Using your process determine how much the ticket charges cost. 001: Start the execution 003: Pay $50 to secure reservation 004: Get the QR code 005: Prompt input: Are you interested in Musical or Theatrical Events?: Enter 'M' for Musical or 'T' for Theatrical?: 006: Input: T 007: Is Input = 'M' or 'm': NO 008: Is Input = 'T' or 't'? : YES 009: event = T 010: Prompt input: Are you booking a Matinée (12pm-4pm) or Evening (6pm-9pm) event
Enter 'M' for Matinée or 'E' for Evening?: 011: Is Input = 'M' or 'm'? : NO 012: Is Input = 'E' or 'e'? : YES 013: time = 'E' 014: Is Input = 'M' or 'm'? : NO 015: Is Input = 'E' or 'e'? : NO 016: Is (event = 'T' or 't') and (time = 'M' or 'm') : NO 017: Is (event= 'T' or 't') and (time = 'E' or 'e')? : YES 018: fee = $115.00 019: Number of children: 1 020: Number of adults: 2 021: Number of seniors: 1 022: numPeople = 1 + 2 + 1 = 4 023: OUTPUT: Number of Persons = 4 024: Is numPeople = 1? NO 025: Is numPeople = 2? NO 026: Is numPeople = 3? NO 027: Is numPeople = 4? YES 028: OUTPUT: OUTPUT: Great. You benefit from a 20% discount. 029: childCharge = 1 * 0.75 * (1 - 0.2) = 0.6 030: adultCharge = 2 * 4 * (1 - 0.2) = 6.4 031: seniorCharge = 1 * 1.5 * (1 - 0.2) = 1.2 032: Output: Number of Children: 1 Output: Price per child: 0.75 Output: Subtotal Children: 0.6 Output: Number of Adults: 2 Output: Price per Adult:4 Output: Subtotal Adults: 6.4 Output: Number of Seniors: 1 Output: Price per Senior: 1.5 Output: Subtotal Seniors: 1.2 Output: Your desired Event is "theatre" and your chosen time is "evening"! Ouput: Your Fee for the venue is: "115.00"! 033: totalcoverCharge = 0.6 + 6.4 + 1.2 = 8.2 034: Total charge = 8.2 035: Output: Total Amount = 8.2 + 115.00 = 123.2 036: MAKE_PAYMENT 037: Output: Reservation confirmed. Please scan your QR code upon arrival. 038: Scan QR_CODE 039: Go ahead and enjoy the show. 4. One senior, two adults, and one child go to the A La Carte venue at 2:00 PM to see the theatre production of “Jaws 1 – Swim with Me”. Using your process determine how much the ticket charges cost. 001: Start the execution 003: Pay $50 to secure reservation 004: Get the QR code 005: Prompt input: Are you interested in Musical or Theatrical Events?: Enter 'M' for Musical or 'T' for Theatrical?: 006: Input: T 007: Is Input = 'M' or 'm': NO 008: Is Input = 'T' or 't'? : YES 009: event = T 010: Prompt input: Are you booking a Matinée (12pm-4pm) or Evening (6pm-9pm) event Enter 'M' for Matinée or 'E' for Evening?: 011: Is Input = 'M' or 'm'? : YES 012: time = 'M' 013: Is Input = 'M' or 'm'? : NO
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
014: Is Input = 'E' or 'e'? : NO 015: Is (event = 'T' or 't') and (time = 'M' or 'm') : YES 016: fee = $55.00 017: Number of children: 1 018: Number of adults: 2 019: Number of seniors: 1 020: numPeople = 1 + 2 + 1 = 4 021: OUTPUT: Number of Persons = 4 022: Is numPeople = 1? NO 023: Is numPeople = 2? NO 024: Is numPeople = 3? NO 025: Is numPeople = 4? YES 026: OUTPUT: OUTPUT: Great. You benefit from a 20% discount. 027: childCharge = 1 * 0.75 * (1 - 0.2) = 0.6 028: adultCharge = 2 * 4 * (1 - 0.2) = 6.4 029: seniorCharge = 1 * 1.5 * (1 - 0.2) = 1.2 030: Output: Number of Children: 1 Output: Price per child: 0.75 Output: Subtotal Children: 0.6 Output: Number of Adults: 2 Output: Price per Adult:4 Output: Subtotal Adults: 6.4 Output: Number of Seniors: 1 Output: Price per Senior: 1.5 Output: Subtotal Seniors: 1.2 Output: Your desired Event is "theatre" and your chosen time is "evening"! Ouput: Your Fee for the venue is: "115.00"! 031: totalcoverCharge = 0.6 + 6.4 + 1.2 = 8.2 032: Total charge = 8.2 033: Output: Total Amount = 8.2 + 55.00 = 63.2 034: MAKE_PAYMENT 035: Output: Reservation confirmed. Please scan your QR code upon arrival. 036: Scan QR_CODE 037: Go ahead and enjoy the show.