// Dart - Problem 1: Lemonade Sale (Fresh version) void main() { print("Welcome to the Lemonade Sale!"); double pricePerGlass = 2.0; double c = 25, f = (c * 9/5) + 32; print("Today's temperature: ${c}°C = ${f}°F"); List customersPerHour = [7,9,8,10,6,12,9,8,10,11,7,13]; int total = 0, freeCups = 0, hourReached = 0; for (int h = 0; h < customersPerHour.length; h++) { for (int i = 1; i <= customersPerHour[h]; i++) { int next = total + 1; if (next % 5 == 0) freeCups++; total++; if (total >= 100) { hourReached = h + 1; break; } } print("Hour ${h+1} -> total: $total (free: $freeCups)"); if (total >= 100) break; hourReached = h + 1; } int paid = total - freeCups; double revenue = paid * pricePerGlass; if (total > 50) revenue *= 0.90; print("Final revenue: \$${revenue.toStringAsFixed(2)} (hours: $hourReached)"); }