McMaster University Create a C Programming Code Computer Language Task

User Generated

nuqsxsujso

Programming

McMaster University

Description

Unformatted Attachment Preview

2020/11/20 Lab Assignment 4 (Fall 2020): Programming in .NET - COMP-10204-05 - 12972.202035 Lab Assignment 4 (Fall 2020) To do this lab, you will need to use C# in Visual Studio Professional 2019. You can access this program in Mohawk Apps, while either on campus or at home. Alternatively, while on campus a local version can be accessed from the Start Menu, or, you can download and install it as described by the instructions in the Student Resources sub-section located in the Modules section of the course page. To Be Graded – General Details: This program will be marked for 6% of your final grade Please examine the Marking Scheme (https://mycanvas.mohawkcollege.ca/courses/45074/pages/lab-assignment-4-fall-2020#jump) to see the marks breakdown This program needs to have appropriate internal comments, as well as XML comments for every class and every method This program also needs to have an appropriate comment block at the top of all code files that contains: Your name and student number The file date The program's purpose Your Statement of Authorship (https://mycanvas.mohawkcollege.ca/courses/45074/pages/statement-of-authorship) Bundle your project into one Zip file, and upload it to the appropriate Lab Assignment (https://mycanvas.mohawkcollege.ca/courses/45074/assignments/366643) on MyCanvas Please read about documentation (https://mycanvas.mohawkcollege.ca/courses/45074/pages/program-documentation) style Programs that are late will be penalized 10% per day (includes each day of a weekend) Programs that do not compile or do not include a Statement of Authorship (https://mycanvas.mohawkcollege.ca/courses/45074/pages/statement-of-authorship) will be penalized 10% for each Part A: It Takes All Sorts In Lab 1 you read a file of Employee objects into an array. That array could be sorted on any of the fields of the class. Since then, we've learned about properties, generics, collections, and lambda expressions. Using your solution (or mine (https://mycanvas.mohawkcollege.ca/courses/45074/files/6314807/download) ) rewrite Lab 1 so that it:  Eliminates the need for Get()/Set() methods in the Employee class by using properties instead Eliminates the array (and the arbitrary limit) that stores all of the Employee objects, and instead utilizes a generic List collection Eliminates the Sort() method that you researched and instead relies on the built-in Sort() method of the List collection Makes use of the IComparable interface so that each field of the Employee class can be sorted Alternatively, you can use a lambda expression for sorting instead of the IComparable technique Looks and behaves identically to the solution for Lab 1 but utilizes the above changes Contains a highly modularized Main() method Part B: A Tangled Web Project Name: Lab4b Write a Windows Form App (.NET Framework) that: Makes use of a GUI interface that has menu options The File=>Load menu option displays an OpenFileDialog to allow the user to select a valid HTML file Makes use of the OpenFileDialog.Filter property to allow only HTML files to be selected https://mycanvas.mohawkcollege.ca/courses/45074/pages/lab-assignment-4-fall-2020 1/2 2020/11/20 Lab Assignment 4 (Fall 2020): Programming in .NET - COMP-10204-05 - 12972.202035 Uses a generic Stack collection to read the HTML file and determine if the HTML container tags are properly balanced (that is, each opening tag has a corresponding closing tag) Displays a status indicating whether the container tags are balanced, or not balanced Ignores certain HTML tags that are not container tags (such as , or ) Contains a modularized Process=>Check Tags method You may download this sample program (https://mycanvas.mohawkcollege.ca/courses/45074/files/6314981/download) for a demonstration of program behaviour Here are examples of good and bad test files that you can use to test your program: TestFiles.zip (https://mycanvas.mohawkcollege.ca/courses/45074/files/6314985/download) (right-click to view) Marking Scheme Documentation: Comments, Naming Conventions /5 Part A: It Takes All Sorts Properties: Generic List: Sort, IComparable/Lambda Identical Behaviour: /2 /3 /2 Part B: A Tangled Web Data Entry: File Name, Reads File Generic Stack: Stores Tags Output: Message Displayed Total: https://mycanvas.mohawkcollege.ca/courses/45074/pages/lab-assignment-4-fall-2020 /3 /4 /1 / 20 2/2 2020/11/20 Lab Assignment 4 (Fall 2020): Programming in .NET - COMP-10204-05 - 12972.202035 Lab Assignment 4 (Fall 2020) To do this lab, you will need to use C# in Visual Studio Professional 2019. You can access this program in Mohawk Apps, while either on campus or at home. Alternatively, while on campus a local version can be accessed from the Start Menu, or, you can download and install it as described by the instructions in the Student Resources sub-section located in the Modules section of the course page. To Be Graded – General Details: This program will be marked for 6% of your final grade Please examine the Marking Scheme (https://mycanvas.mohawkcollege.ca/courses/45074/pages/lab-assignment-4-fall-2020#jump) to see the marks breakdown This program needs to have appropriate internal comments, as well as XML comments for every class and every method This program also needs to have an appropriate comment block at the top of all code files that contains: Your name and student number The file date The program's purpose Your Statement of Authorship (https://mycanvas.mohawkcollege.ca/courses/45074/pages/statement-of-authorship) Bundle your project into one Zip file, and upload it to the appropriate Lab Assignment (https://mycanvas.mohawkcollege.ca/courses/45074/assignments/366643) on MyCanvas Please read about documentation (https://mycanvas.mohawkcollege.ca/courses/45074/pages/program-documentation) style Programs that are late will be penalized 10% per day (includes each day of a weekend) Programs that do not compile or do not include a Statement of Authorship (https://mycanvas.mohawkcollege.ca/courses/45074/pages/statement-of-authorship) will be penalized 10% for each Part A: It Takes All Sorts In Lab 1 you read a file of Employee objects into an array. That array could be sorted on any of the fields of the class. Since then, we've learned about properties, generics, collections, and lambda expressions. Using your solution (or mine (https://mycanvas.mohawkcollege.ca/courses/45074/files/6314807/download) ) rewrite Lab 1 so that it:  Eliminates the need for Get()/Set() methods in the Employee class by using properties instead Eliminates the array (and the arbitrary limit) that stores all of the Employee objects, and instead utilizes a generic List collection Eliminates the Sort() method that you researched and instead relies on the built-in Sort() method of the List collection Makes use of the IComparable interface so that each field of the Employee class can be sorted Alternatively, you can use a lambda expression for sorting instead of the IComparable technique Looks and behaves identically to the solution for Lab 1 but utilizes the above changes Contains a highly modularized Main() method Part B: A Tangled Web Project Name: Lab4b Write a Windows Form App (.NET Framework) that: Makes use of a GUI interface that has menu options The File=>Load menu option displays an OpenFileDialog to allow the user to select a valid HTML file Makes use of the OpenFileDialog.Filter property to allow only HTML files to be selected https://mycanvas.mohawkcollege.ca/courses/45074/pages/lab-assignment-4-fall-2020 1/2 2020/11/20 Lab Assignment 4 (Fall 2020): Programming in .NET - COMP-10204-05 - 12972.202035 Uses a generic Stack collection to read the HTML file and determine if the HTML container tags are properly balanced (that is, each opening tag has a corresponding closing tag) Displays a status indicating whether the container tags are balanced, or not balanced Ignores certain HTML tags that are not container tags (such as , or ) Contains a modularized Process=>Check Tags method You may download this sample program (https://mycanvas.mohawkcollege.ca/courses/45074/files/6314981/download) for a demonstration of program behaviour Here are examples of good and bad test files that you can use to test your program: TestFiles.zip (https://mycanvas.mohawkcollege.ca/courses/45074/files/6314985/download) (right-click to view) Marking Scheme Documentation: Comments, Naming Conventions /5 Part A: It Takes All Sorts Properties: Generic List: Sort, IComparable/Lambda Identical Behaviour: /2 /3 /2 Part B: A Tangled Web Data Entry: File Name, Reads File Generic Stack: Stores Tags Output: Message Displayed Total: https://mycanvas.mohawkcollege.ca/courses/45074/pages/lab-assignment-4-fall-2020 /3 /4 /1 / 20 2/2
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Attached. Please let me know i...


Anonymous
Just the thing I needed, saved me a lot of time.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags