Programming Fundamentals HS7021 Assignment Help
Individual Assignment
Individual Assignment Guidelines and Specifications
Note: Most of the constructs you may need to solve the problems in this assignment have already been covered in your lectures and/or tutorials. However, please note that some concepts may require extra research, which is part of your learning experience.
Question (50 marks)
Project: To-Do List
Description:
Create a simple To-Do List program that allows users to manage a list of tasks. The system will offer basic functionalities to add tasks, view tasks, and mark tasks as done.
Requirements:
-
User Interface:
-
Provide a user-friendly console interface for interaction.
-
Simple menu options to navigate between different functionalities.
-
Functionality:
Task Input:
-
Implement a function to add a new task to the list.
-
Validate that the task has a non-empty name.
Task Management:
-
Implement a function to view all tasks and their statuses (done or not done).
-
Implement a function to mark a task as done.
-
Report Generation:
Generate a simple report that includes:
-
Total number of tasks
-
Number of tasks completed
-
Number of tasks remaining
-
Validation:
-
Validate user inputs to ensure task names are not empty.
-
Error Handling:
-
Handle potential errors gracefully and provide informative messages to the user.
Implementation Steps:
-
Setup:
-
Create a Python script file (e.g. todo_list.py).
-
Set up the basic structure and user interface.
-
Task Input:
-
Implement the function to add tasks to the list.
-
Integrate this function into the user interface.
-
Task Management:
-
Implement functions to view tasks and mark them as done.
-
Integrate these functions into the user interface.
-
Report Generation:
-
Design a simple summary report format.
-
Implement a function to generate and display the report.
-
Validation and Error Handling:
-
Add input validation and error handling throughout the script.
Sample Output:
Marking Rubric
Leave A Comment