Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C# program to sort a parallel array that consists of customer names and customer phone numbers. The solution should be in ascending order

Write a C# program to sort a parallel array that consists of customer names and customer phone numbers. The solution should be in ascending order of customer names. For instance, if the input is string[] custNames = { "ccc", "ddd", "aaa", "bbb" }; string[] custIds = { "687-3333", "456-4444", "789-1111", "234-2222" }; then, the solution is string[] custNames = { "aaa", "bbb", "ccc", "ddd" }; string[] custIds = { "789-1111", "234-2222", "687-3333", "456-4444"};

There are some restrictions: 1. Do not use Array.Sort(), List.Sort() methods. Instead, implement your own version of BubbleSort, InsertionSort, or SelectionSort (as discussed in classes) 2. Do not wrap the arrays inside a class. 3. Test the program with the sample data shown above. 4. Print your documented code and screenshots.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Database Systems For Advanced Applications 15th International Conference Dasfaa 2010 Tsukuba Japan April 2010 Proceedings Part 1 Lncs 5981

Authors: Hiroyuki Kitagawa ,Yoshiharu Ishikawa ,Wenjie Li ,Chiemi Watanabe

2010th Edition

3642120253, 978-3642120251

More Books

Students also viewed these Databases questions