. 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...   source code:

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...
icon
Related questions
Question

(C LANGUAGE ONLY)

 

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:

  1. You are given an array which contains predefined elements.
  2. 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...
 
source code: 
 
←
X +
app.codechum.com/student/classes/3332/timeline/lessons/arrays/activity-1/question/5/
main.c
5. Sorting My Todo List
1 #include<stdio.h>
by CodeChum Admin
2
int main(void) {
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:
1. You are given an array which contains
predefined elements.
2. 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...
Score: 0/10
= Overview
5/5
Type here to search
View Lesson | Student
← Back to Timeline
IT
6
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 }
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
};
// TODO: Sort the items in descending order
// TODO: Print all the items in descending order
return 0;
a
n
J'
< >
+ C
Tests
CE Run Tests
Test Cases
O Test Case 1
Execute Code [F10]
33°C
Hidden
(4) ENG
Update:
asuero v
Submit Code
X
12:23 am
16/06/2022
Transcribed Image Text:← X + app.codechum.com/student/classes/3332/timeline/lessons/arrays/activity-1/question/5/ main.c 5. Sorting My Todo List 1 #include<stdio.h> by CodeChum Admin 2 int main(void) { 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: 1. You are given an array which contains predefined elements. 2. 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... Score: 0/10 = Overview 5/5 Type here to search View Lesson | Student ← Back to Timeline IT 6 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 } 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 }; // TODO: Sort the items in descending order // TODO: Print all the items in descending order return 0; a n J' < > + C Tests CE Run Tests Test Cases O Test Case 1 Execute Code [F10] 33°C Hidden (4) ENG Update: asuero v Submit Code X 12:23 am 16/06/2022
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
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 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)
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
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY