void main() { // 1. Set Ticket Prices double ticketPrice = 50.0; int soldTickets = 50; // 2. Calculate Revenue double totalRevenue = ticketPrice * soldTickets; print("Total revenue from initial sales: \$${totalRevenue}"); // 3. Track Age Group int customerAge = 65; if (customerAge >= 60) { print("Customer is $customerAge years old: Senior discount applies!"); } else if (customerAge < 12) { print("Customer is $customerAge years old: Child discount applies!"); } else { print("Customer is $customerAge years old: Regular price applies."); } // 4. Loop through Ticket Sales print("\n--- Simulating Ticket Sales ---"); while (soldTickets < 200) { soldTickets += 20; // Selling 20 tickets per iteration print("Tickets sold so far: $soldTickets"); } // 5. Ternary Operator for Late Fee int purchaseHour = 22; // 10 PM double finalPrice = (purchaseHour > 20) ? ticketPrice + 10.0 : ticketPrice; print("\nPurchase at hour $purchaseHour. Final price per ticket (with possible late fee): \$$finalPrice"); }