import 'dart:io'; /* Student Name: Yasser Ali Al-Mansari University ID: 241001991 Task 1: Store Sales Management System */ void main() { print("Welcome to the Store Sales Management System!"); double pricePerItem = 15.0; int itemsSold = 0; print("Please enter the customer's age:"); String? ageInput = stdin.readLineSync(); int age = int.parse(ageInput ?? '0'); if (age >= 60) { print("Senior discount applied (20% off)!"); pricePerItem *= 0.80; } else if (age < 12) { print("Child discount applied (10% off)!"); pricePerItem *= 0.90; } else { print("Regular price applied."); } print("\n--- Recording Sales for 5 hours ---"); for (int hour = 1; hour <= 5; hour++) { print("Enter items sold in hour $hour:"); int hourlySales = int.parse(stdin.readLineSync() ?? '0'); itemsSold += hourlySales; } double totalRevenue = itemsSold * pricePerItem; print("\n--- Final Report ---"); print("Total items sold: $itemsSold"); print("Final total revenue: \$${totalRevenue.toStringAsFixed(2)}"); String storeStatus = (itemsSold >= 50) ? "Target Achieved" : "Target Not Met"; print("Performance: $storeStatus"); }