Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You now must spend some time to understand how the code works, what it produces, and how it interacts with the user. The best

You now must spend some time to understand how the code works, what it produces, and how it interacts with

You now must spend some time to understand how the code works, what it produces, and how it interacts with the user. The best way to do this is to create a new C# Console Application project and import the given file. You then should run the code step-by-step in the debug mode to explore the control flow. 2. To demonstrate that you are a more experienced programmer than your leaving colleague, you should ensure the function composition and avoid any code duplication because of the aforementioned reasons. Find all sequences of commands that should be placed together to form logically complete methods parametrised with a set of arguments. Work on this to make your code as clean as possible. In addition, add comments so that your methods and key points of your program make sense in case you want to return to it later. Once finished, save your source code file as 'RevisedCode.cs'. You will need to submit this as part of your solution. 3. As you can see, this is a Task Planner program that partitions tasks into a number of categories. The tasks in a same category form a priority list. All tasks are printed in a table format. The program provides a very limited functionality and is for sure not competitive. Because of this, the customer requested BuggySoft to add the following capabilities: The user must be given an option to add new and delete existing categories. If a category is removed, all associated tasks should be removed as well. The user must be given an option to delete an existing task. It must be possible to move a task in its respective priority list by setting the place (priority). It must be possible to move a task from one category to another. It must be possible to highlight important tasks so that they appear in red in the terminal. Every task must be characterised by a due date printed along with the name. This might need to enlarge the size of the table's columns. From what you see, the customer does not specify a particular design and leaves this with you. You, as a programmer, are also free to implement the internal logic of the program as you decide. However, a proper design will likely rely on composition. For example, you might have already noticed that tasks. are to be "a part of" category and they are deleted along with their category. Remember that the class composition ensures the whole/part or parent/child relationship; that is, the life cycle of the part (or child) is controlled by the whole (or parent) that owns it. If the parent object is destroyed, then the child nhincte alen reare to aviet

Step by Step Solution

3.48 Rating (155 Votes )

There are 3 Steps involved in it

Step: 1

I can provide you with a general outline of how to refactor and extend the given code to meet the customers requirements for the Task Planner program ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Management Accounting Information for Decision-Making and Strategy Execution

Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young

6th Edition

137024975, 978-0137024971

More Books

Students also viewed these Programming questions