Create a generic bubble sort method

Assignment Help Visual Basic Programming
Reference no: EM132321015

Programming Languages and Logics Assignment -

1. Bubble Sort

Create a generic bubble sort method. Refer to the file attached to the Blackboard assignment for this test, BubbleSortTest.cs, for an implementation of a non-generic Bubble Sort. Your method must be able to sort an array of any type of objects that implements the IComparable interface. The method is also to have a bool parameter called isAscending to indicate whether the array is to be sorted in ascending or descending order. Create a main method that creates an array of 50 integers. The integers are to be randomly selected, ranging from 0 to 99, inclusive. Also create an array of 50 strings. The strings are to be randomly generated, consisting of only lowercase letters, and ranging in a randomly selected length from 1 to 10 characters. Display the contents of both arrays before sorting, after sorting in ascending order, and after sorting in descending order.

2. Count Numbers

Write a program that reads an unspecified number of integers and prints the numbers and their count of occurrences sorted in ascending order first by number, and then by the number of times they occur. The input ends when the input is 0. For example, if you entered 2 3 3 5 4 -3 3 3 2 0, the output would look something like:

Number

Count

-3

1

4

1

5

1

2

2

3

4

The program should be implemented using a SortedDictionary to track occurrences, and use LINQ to sort the results. The LINQ used may either be SQL or method syntax.

3. Sorting Letters and Removing Duplicates

Write a console app that inserts 30 random letters (Upper and Lower case) into a List<char>. Perform the following queries on the List and display your results:

1. Use LINQ to sort the List in ascending order.

2. Use LINQ to convert all of the letters in the List to upper case, filter the list so it only contains characters from M-Z, and sort the List in descending order.

3. Display the List in ascending order with duplicates removed.

Attachment:- Assignment Files.rar

Reference no: EM132321015

Write visual basic program to accept values of any unit

Write down VISUAL BASIC program to accept numeral values of any unit, sum up the total, compute the average, and then Output result with proper unit.

Permit a user to manipulate database using vb

Use VB to permit a user to manipulate database according to following: Permit the user to scroll through list of students while showing student ID, student name, advisor name,

Create an application user to enter the following employee

Create an application that allows the user to enter the following employee data: First Name, Middle Name, Last Name, Employee Number, Department, Telephone Number, Telephone E

Appropriate design for the gui application

Decide on an appropriate design for the GUI application which will be SELF Contained and allow the user to select and run the various calculations that are made available to

Add the functionality to its cash register

The Chocolate Delights Candy Company needs to add the following functionality to its cash register: When a customer is checking out, the cash register needs to store the req

Accept data regarding the purchase of fruit

Continually accept data regarding the purchase of fruit until a sentinel value is entered. Prompt the user for each item, and accept the name of the fruit (e.g., "dried apples

Write the code to play a number guessing game

Write the code to play a number guessing game. Allow the user to select a lower and upper range to guess between. Ask the user how many guesses they want to guess the number.

Prepare a problem on lottery number generator

Create an interface and develop an application for a Pick 3 Lottery Game. The application needs to show 3 randomly generated numbers based on a range of numbers provided by th

Reviews

len2321015

6/12/2019 10:29:05 PM

Please follow the directions, and submit the zipped C# Solutions for each question. Instructions - Submit the files in the designated slot on Blackboard. You are required to work independently. You are not permitted to receive assistance from classmates or other individuals. You may reference the textbook and course materials as well as the C# documentation. You are not permitted to use code from sources other than the course materials and textbook examples and previous programming assignments. Ensure your programs run properly with C# and Visual Studio 2017 or 2019. Submit files by the due date indicated on Blackboard. Good luck!

Write a Review

 
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd