Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Continuing Education Data Structure - C#

dickersonka
dickersonka 


Your IT supervisor is working on a project to implement storage for information related to the continuing educational of employees, and these data will eventually be sorted. Your supervisor needs the application to use an ADT for this storage because this application will be modified later, and ADTs will allow more flexibility. •Create a 2–3-page design document that includes the following: -A title page including course name, project name, student name, and date Analysis of the following: Provide a rationale for the choice of data structure and implementation of the sort method. Justify your choices based on effective use of system resources and suitability to the task. •Write source code, keeping the following in mind: Note: Your code does not have to have any user interaction. It must only demonstrate code that would achieve the implementation requirements listed below. The implementation and type of data structure you use internally for the class will be your choice, but your class must work with strings and will expose methods for the following operations: ¦Include variable declaration for the internal data structure. Include initialization of the data structures with sample data using the insert() method. insert(): This method will add a new data item to your structure. sort(): This method will sort the data items and list them in ascending order using a print statement. Include implementation of sort() function. -Include in-code comments describing the major parts of the implementation, specifically pointing out the required implementation points above. Attachments
Tags Clarifications

Answers

Continuing Education Data Structure

dickersonka
dickersonka 



Attached is my own original work... Attachments
ContinuingEdADTSolution.zip (34 K) Download









Preview
for sorting public void Sort(CourseComparer.ComparisonType comparisonType) { //Create our course compare class CourseComparer courseCompare = new CourseComparer(comparisonType); this.courses.Sort(courseCompare); PrintList(); } //Method to print our list private void PrintList() { foreach (Course course in this.courses) {

Preview
public class ContinuingEducationApp { public ContinuingEducationApp() { } public void RunTheApp() { //Create our class ContinuingEducation education = new ContinuingEducation(); //Add the items education.Insert("Advanced

Preview
return courseName.CompareTo(p2.CourseName); case CourseComparer.ComparisonType.CourseNumber: return courseNumber.CompareTo(p2.CourseNumber); case CourseComparer.ComparisonType.CreditHour: return creditHours.CompareTo(p2.CreditHours); default: return courseNumber.CompareTo(p2.CourseNumber); } } //Overridden to string, for ease of printing public override string ToString() { return "Course Number: " + CourseNumber +

Preview
IComparer<Course> Members //Overridden compareto method to allow sorting public int Compare(Course x, Course y) { //This calls into our course class to do the actual sorting return x.CompareTo(y, ComparisonMethod); } #endregion

Preview
Studio 2008\Projects\ContinuingEdADT\ContinuingEdADT\bin\Debug\ContinuingEdADT.exe C:\Users\kdickerson\Documents\Visual Studio

Preview
using System; using System.Collections.Generic; using System.Text; namespace ContinuingEdADT { class

Preview
assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM

ADTAnalysis.doc (30 K) Download Preview
easily able to implement the abstract data type, and allowing our list to only contain type course by using List<Course> as our instance variable. The performance of this list will also not be affected by list manipulation. System resources will be impacted very minimally by sorting or retrieving a specific

Screenshots
Purchase Answer