Practice

Theme Park Booking

2025/Oct/Nov·Variant 3
EASYArithmetic

Calculate the total cost of a theme park booking based on the number of adult and child tickets required.

Input: Two integers on separate lines: number of adult tickets, then number of child tickets. Output: The total cost of the booking including a fixed booking fee, formatted exactly as shown.

  • Adult tickets cost $12.99 each.
  • Child tickets cost $7.99 each.
  • A booking fee of $1.99 is added to every booking.

Example:

Input:  2
        2
Output: The total cost is 43.95
Premium is coming soon. All grading features are currently unlocked.

Sample Test Cases

Test 1: 2 adults, 2 children
Inputs: 2, 2
Expected: The total cost is 43.95
Test 2: 1 adult, 0 children
Inputs: 1, 0
Expected: The total cost is 14.98
Press Ctrl+Enter to run your code
or Ctrl+Shift+Enter to grade