You now must spend some time to understand how the code works, what it produces, and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
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 ... View the full answer
Related Book For
Management Accounting Information for Decision-Making and Strategy Execution
ISBN: 978-0137024971
6th Edition
Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young
Posted Date:
Students also viewed these programming questions
-
What are some of the important business issues that can cause legal problems for global marketers? If you were expanding your business in a global market, what would you do to make mitigate such...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Why do we need Normalization? How many forms of Normalization exist? What is the minimum normal form required? Describe each normal form List Normalization conversion process
-
When an air molecule is hit by an approaching faster moving molecule, does its rebound speed increase or decrease? How about when it hits a receding molecule?
-
What accounts can be found on a statement of stockholders equity? (a) Investments in other companies. (b) Treasury stock, accumulated other comprehensive income, retained earnings. (c) Market value...
-
What are some incentives or pressures to misappropriate assets?
-
Lovell Computer Parts Inc. is in the process of setting a selling price on a new component it has just designed and developed. The following cost estimates for this new component have been provided...
-
A trader creates a bear spread using call options with strike prices of $160, and $180 per share by trading a total of 40 option contracts (20 short 160-strike call contracts and 20 long 180-strike...
-
You are a financial analyst at a firm that has been returning cash to shareholders through stock repurchases. You want to determine how the level of repurchases will vary as a function of the sales...
-
The following data were taken from the books of Malakas Company: Annual usage of materials Cost of materials per unit Cost of placing one order Annual carrying cost per unit Required: 600,000 units P...
-
How do advanced techniques in artificial intelligence and machine learning contribute to process modeling, and what are the potential benefits and risks of incorporating AI-based approaches in...
-
Provide comprehensive information, and examples if applicable to support your answer. In what ways do goals and objectives help managers control the organization?
-
Complete the following Statement of EU FIFO methods Farmers Ltd operates a process costing system. Details of process 1 are as follows: All materials used are added at the beginning of the process....
-
A harmonic travelling wave has the equation: y ( x , t ) = 0 . 0 1 cos ( 1 . 2 x - 1 1 . 5 t ) Where x and y are measured in m and t is measured in s . What is the wavelength of this wave? Your...
-
Construct the probability distribution and calculate the expected value for the given scenario. Show all of your work and round your answers to the nearest hundredth, if needed. Then summarize your...
-
The Insurance Bureau of Canada is involved in several activities and provides a number of services to their members. Identify and describe these activities and services. Include in your answer a...
-
A fast-food restaurant averages 150 customers per hour. The average processing time per customer is 90 seconds. a. Determine how many cash registers the restaurant should have if it wishes to...
-
Midwest Office Products* John Malone, general manager of Midwest Office Products (MOP), was concerned about the financial results for calendar year 2003. Despite a sales increase from the prior year,...
-
What is the relationship between a demand forecast and a sales plan?
-
Service department cost allocation, direct method San Rafael Company has two production departments, assembly and finishing, and two service departments, machine setup and inspection. Machine setup...
-
How much farther from the sun is Earth compared to Venus if Venus is \(6.7667 \times 10^{7}\) miles from the sun and Earth is \(9.1692 \times 10^{7}\) miles from the sun?
-
Calculate the following: 1. \(\left(8.4 \times 10^{31} ight) /\left(2.1 \times 10^{7} ight)\) 2. \(\left(4.14 \times 10^{-13} ight) /\left(8.28 \times 10^{9} ight)\)
-
Calculate the following: \(7.9 \times 10^{-15}-6.8 \times 10^{-13}\)
Study smarter with the SolutionInn App