main.cpp 5. Sorting My Todo List 1 #include by CodeChum Admin 2 using namespace std; 3 Thanks to your help, Programmer. I have reached this point in 4 int main(void) { my life where I feel like I could bounce back and fight again. int todo[100] = { 1,3,2,4,5,7,6,8,9,11, 100,13,0,14,16,17,3,18,20,10, 12,8,15,14,-5,17,19,18,1,9,5, 10,13,11,14,16,22,0,18,20,3, 99,13,15,14,22,17,19,0,23,2, 12,13,15,22,16,17,56,18,44,99, 2,13,22,14,16,89,19,69,101,34, 12,22,15,14,78,17,69,18,2,33, 4,13,77,7,10,17,19,91,4,22, 5 Thank you for being a good friend ? 7 I just need one last help please, if it's still okay with you. You see, I already have a plan for my life, all that's left to do is to prioritize these things. I want to tackle the biggest items in the 8 10 11 list first. 12 13 Can you help me sort these in descending order please? 14 15 12,98,15,14,15,17,19,18,7 }; Instructions: 16 17 1. You are given an array which contains predefined // TODO: Sort the items in descending order 18 elements. 19 20 2. Your task is to sort the array in descending order and then // TODO: Print all the items in descending order 21 print all the elements in 1 line. 22 23 24 return 0; Output 25 } 101 100 99 99 98 -91 89 78 77- 69 69...
main.cpp 5. Sorting My Todo List 1 #include by CodeChum Admin 2 using namespace std; 3 Thanks to your help, Programmer. I have reached this point in 4 int main(void) { my life where I feel like I could bounce back and fight again. int todo[100] = { 1,3,2,4,5,7,6,8,9,11, 100,13,0,14,16,17,3,18,20,10, 12,8,15,14,-5,17,19,18,1,9,5, 10,13,11,14,16,22,0,18,20,3, 99,13,15,14,22,17,19,0,23,2, 12,13,15,22,16,17,56,18,44,99, 2,13,22,14,16,89,19,69,101,34, 12,22,15,14,78,17,69,18,2,33, 4,13,77,7,10,17,19,91,4,22, 5 Thank you for being a good friend ? 7 I just need one last help please, if it's still okay with you. You see, I already have a plan for my life, all that's left to do is to prioritize these things. I want to tackle the biggest items in the 8 10 11 list first. 12 13 Can you help me sort these in descending order please? 14 15 12,98,15,14,15,17,19,18,7 }; Instructions: 16 17 1. You are given an array which contains predefined // TODO: Sort the items in descending order 18 elements. 19 20 2. Your task is to sort the array in descending order and then // TODO: Print all the items in descending order 21 print all the elements in 1 line. 22 23 24 return 0; Output 25 } 101 100 99 99 98 -91 89 78 77- 69 69...
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
CODE USING C++
5. Sorting My Todo List
by CodeChum Admin
Thanks to your help, Programmer. I have reached this point in my life where I feel like I could bounce back and fight again. Thank you for being a good friend ?
I just need one last help please, if it's still okay with you. You see, I already have a plan for my life, all that's left to do is to prioritize these things. I want to tackle the biggest items in the list first.
Can you help me sort these in descending order please?
Instructions:
- You are given an array which contains predefined elements.
- Your task is to sort the array in descending order and then print all the elements in 1 line.
Output
101·100·99·99·98·91·89·78·77·69·69...
![main.cpp
C++
5. Sorting My Todo List
1 #include <iostream>
by CodeChum Admin
2 using namespace std;
Thanks to your help, Programmer. I have reached this point in
my life where I feel like I could bounce back and fight again.
int main(void) {
int todo[100] = {
1,3,2,4,5,7,6,8,9,11,
100,13,0,14,16,17,3,18,20,10,
12,8,15,14, -5,17,19,18,1,9,5,
10,13,11,14,16,22,0,18,20,3,
99,13,15,14,22,17,19,0,23,2,
12,13,15,22,16,17,56,18,44,99,
2,13,22,14,16,89,19,69,101,34,
12,22,15,14,78,17,69,18,2,33,
4,13,77,7,10,17,19,91,4,22,
12,98,15,14,15,17,19,18,7
};
Thank you for being a good friend ?
6
I just need one last help please, if it's still okay with you. You
see, I already have a plan for my life, all that's left to do is to
prioritize these things. I want to tackle the biggest items in the
9
10
11
list first.
12
13
Can you help me sort these in descending order please?
14
15
Instructions:
16
17
1. You are given an array which contains predefined
18
// TODO: Sort the items in descending order
elements.
19
20
2. Your task is to sort the array in descending order and then
21
// TODO: Print all the items in descending order
print all the elements in 1 line,
22
23
24
return 0;
Output
25 }
101 100 99 99 98 91- 89 78 77- 69 69...](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F6811427c-5cb2-4236-853f-6e2e2426c5ba%2Ff4091643-9f0b-466e-8194-9b2186d5f4b3%2Fg7ymzz_processed.png&w=3840&q=75)
Transcribed Image Text:main.cpp
C++
5. Sorting My Todo List
1 #include <iostream>
by CodeChum Admin
2 using namespace std;
Thanks to your help, Programmer. I have reached this point in
my life where I feel like I could bounce back and fight again.
int main(void) {
int todo[100] = {
1,3,2,4,5,7,6,8,9,11,
100,13,0,14,16,17,3,18,20,10,
12,8,15,14, -5,17,19,18,1,9,5,
10,13,11,14,16,22,0,18,20,3,
99,13,15,14,22,17,19,0,23,2,
12,13,15,22,16,17,56,18,44,99,
2,13,22,14,16,89,19,69,101,34,
12,22,15,14,78,17,69,18,2,33,
4,13,77,7,10,17,19,91,4,22,
12,98,15,14,15,17,19,18,7
};
Thank you for being a good friend ?
6
I just need one last help please, if it's still okay with you. You
see, I already have a plan for my life, all that's left to do is to
prioritize these things. I want to tackle the biggest items in the
9
10
11
list first.
12
13
Can you help me sort these in descending order please?
14
15
Instructions:
16
17
1. You are given an array which contains predefined
18
// TODO: Sort the items in descending order
elements.
19
20
2. Your task is to sort the array in descending order and then
21
// TODO: Print all the items in descending order
print all the elements in 1 line,
22
23
24
return 0;
Output
25 }
101 100 99 99 98 91- 89 78 77- 69 69...
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY