Evaluation of chapter 4: To-Do list manager
Conditions d’achèvement
Ouvert le : mercredi 24 juin 2026, 12:43
Create a Dart program that allows the user to manage a list of tasks. For that:
- Create a class "Task" with optional and required attributes for the title, description, and status of the task (completed or not).
- Consider "cost" as a private attribute.
- Create different constructors (1st, 2nd, 3rd ways).
- Use a list to store multiple tasks.
- Implement functions to: add a new task, display all tasks with their status and cost.
- Use conditions to validate user input (e.g., to avoid adding empty tasks, to mark a no existing task,…).
- Test the program in the main function.