Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The Solution you have on the website doesn\'t work when i tryto compile it. It a

ID: 3618491 • Letter: T

Question

The Solution you have on the website doesn't work when i tryto compile it. It always reads 'main' must return 'int' i tried changing the main function to an int main( ) and itcompiled but when i ran it, it did not come out right. I was wondering if your could tell me why or maybe post thecorrect soultion on your website. Thank You The Solution you have on the website doesn't work when i tryto compile it. It always reads 'main' must return 'int' i tried changing the main function to an int main( ) and itcompiled but when i ran it, it did not come out right. I was wondering if your could tell me why or maybe post thecorrect soultion on your website. Thank You

Explanation / Answer

x.Hlor="red">please rate - thanks in response to your message in addition to changing void main() to int main() I fixed the output. it was printing every number on a new line, while in the functions. I also added printing the arrays after // Ben Roman // Chapter 8, Problem 10 #include using namespace std; void BubbleSort(int arr[],int); void SelectionSort(int arr[],int); int main() {      int array1[8]={5,1,4,6,3,8,2,7};      int array2[8]={5,1,4,6,3,8,2,7};      int i;         cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote