Question: 2. Sorting data is an important task that many data storage systems use. This problem will be based on the bubble sort. The bubble sort

2. Sorting data is an important task that many data storage systems use. This problem will be based on the bubble sort. The bubble sort will compare adjacent entries and swap them if the entries are not in the correct order. This is repeated until all the data is in the correct order. Write a C++ program that will compute that will perform the following operations. It will require that the person using the code enter six numbers sequentially (one number at a time). After all the numbers have been entered, the code will use a bubble sort method to ensure that the numbers are sorted in ascending order (smallest to largest This program will read six numbers typed in by you And then sort and print out the sorted numbers Please type in the first number Please type in the second number Please type in the third number 4 Please type in the fourth number Please type in the fifth number 2 Please type in the sixth number 1 23456
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
