#include using namespace std; int main () cout << "Enter 4 numbers: "; float a, b, c, d; cin >> a >> b >> c >> d; cout <<" Ascending Order:"; if (a>b && b>c && c>d) Cont << a << << b << <« " " << d << endl; else if (b>a && d>b && c>d) { Cont << a << <« b << " " << d << " " << c << endl; else if (c>a && b>c && d>b) cont << a << " " << c << " " << b << " " << d << endl; else if (c>a && d>c && b>d) <« " " << b << Cont << a << " ' endl; くくC else if (d>a && b>d && c>b) cont << a << "" << d << " " « b << " " << c< endl; else if (d>a && c>d && b>c) Cont << a << <« d << " " << c << " " << b << endl; else if (a>b && c>a && d>c) Cout << b << '« a << " " <b && d>a && c>d) Cout << b << <« a << " " << d << " " << c << くく endl; else if (c>d && d>c && a>d) cout << b << endl; <<""<< a く< else if (c>b && a>c && d>a) cont << b <<""<< c << " " << a << " " << d << endl; else if (d>b && a>d && c>a) cont << b << "" << d << " " << a << " " << c <« endl; else if (d>b && c>d && a>c) << d << " " << c << " " << a << Cont << b << endl; else if (a>c && b>a && d>b) Cont << c << << a << <« b <« " " << d <« endl; else if (a>c && d>a && b>d) cout << c << ""<< a << " " << d << " " << b <« endl; else if (b>c && a>b && d>a) a << "" << d << Cont << c << " " << b << "" < endl; else if (b>c && d>b && a>d) { cont << c << ""<< b << " " << d << " " << a <« くく endl; else if (d>c && b>d && a>b) cont << c << ""<< d << " " <« b << " " << a << endl; else if (d>c && a>d && b>a) Cont << c << <« d << " " <d && b>a && c>b) cont << d <<""<< a << " " <« b << " " << c< endl; else if (a>d && c>a && b>c) Cont << d << <« a << " " c <« "" << b <« くく endl; else if (b>d && a>b && c>a) cout << d << ""<< b << " " << a << " " << c <« endl; else if (b>d &&c>b && a>c) cont << d << endl; << b << " " << c << " " << a<< else if (c>d && b>c && a>b) cont << d << "" << c << " " << b << " " << a <« endl; くく else if (c>d && a>c && b>a) Cont << d << endl; <« c << " " << a << " " << b << return 0; 9:45 PM
#include using namespace std; int main () cout << "Enter 4 numbers: "; float a, b, c, d; cin >> a >> b >> c >> d; cout <<" Ascending Order:"; if (a>b && b>c && c>d) Cont << a << << b << <« " " << d << endl; else if (b>a && d>b && c>d) { Cont << a << <« b << " " << d << " " << c << endl; else if (c>a && b>c && d>b) cont << a << " " << c << " " << b << " " << d << endl; else if (c>a && d>c && b>d) <« " " << b << Cont << a << " ' endl; くくC else if (d>a && b>d && c>b) cont << a << "" << d << " " « b << " " << c< endl; else if (d>a && c>d && b>c) Cont << a << <« d << " " << c << " " << b << endl; else if (a>b && c>a && d>c) Cout << b << '« a << " " <b && d>a && c>d) Cout << b << <« a << " " << d << " " << c << くく endl; else if (c>d && d>c && a>d) cout << b << endl; <<""<< a く< else if (c>b && a>c && d>a) cont << b <<""<< c << " " << a << " " << d << endl; else if (d>b && a>d && c>a) cont << b << "" << d << " " << a << " " << c <« endl; else if (d>b && c>d && a>c) << d << " " << c << " " << a << Cont << b << endl; else if (a>c && b>a && d>b) Cont << c << << a << <« b <« " " << d <« endl; else if (a>c && d>a && b>d) cout << c << ""<< a << " " << d << " " << b <« endl; else if (b>c && a>b && d>a) a << "" << d << Cont << c << " " << b << "" < endl; else if (b>c && d>b && a>d) { cont << c << ""<< b << " " << d << " " << a <« くく endl; else if (d>c && b>d && a>b) cont << c << ""<< d << " " <« b << " " << a << endl; else if (d>c && a>d && b>a) Cont << c << <« d << " " <d && b>a && c>b) cont << d <<""<< a << " " <« b << " " << c< endl; else if (a>d && c>a && b>c) Cont << d << <« a << " " c <« "" << b <« くく endl; else if (b>d && a>b && c>a) cout << d << ""<< b << " " << a << " " << c <« endl; else if (b>d &&c>b && a>c) cont << d << endl; << b << " " << c << " " << a<< else if (c>d && b>c && a>b) cont << d << "" << c << " " << b << " " << a <« endl; くく else if (c>d && a>c && b>a) Cont << d << endl; <« c << " " << a << " " << b << return 0; 9:45 PM
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
Construct a flowchart of the
![#include <io stream >
using namespace std;
int main ()
cout << "Enter 4 num bers: ";
float a, b, c, d;
cin >> a >> b >> c >> d;
cout <<" Ascending Order:";
if (a>b && b>c &&c>d)
<« b << " " <<c << " " << d <<
Cout << a << '
endl;
else if (b>a && d>b && c>d)
cont << a << "" << b << " " << d << " " << c <«
endl;
else if (c>a && b>c && d>b)
<« c << " " < b << " " << d <<
Cont << a <<
endl;
else if (c>a && d>c && b>d)
Cout << a <<
'«d <« " " << b «
くくCくく
endl;
else if (d>a && b>d && c>b)
cont << a << ""<< d << " " << b << " " << c <<
endl;
else if (d>a && c>d && b>c)
Cout << a << " " << d <<
endl;
<« c << " " << b <<
else if (a>b && c>a && d>c)
cont << b << ""<< a << " " << c << " " << d <«
endl;
else if (a>b && d>a && c>d)
Cout << b <<
endl;
くく aくく
<< d <<
くくCくく
else if (c>d && d>c && a>d)
« d << " " <<a<<
Cout << b <<
endl;
くくCくく
else if (c>b && a>c && d>a)
<< a << " " << d <<
Cout << b <<
endl;
Cくく
else if (d>b && a>d && c>a)
cout << b << " " << d << " " << a << " " << c <<
endl;
else if (d>b &&c>d && a>c)
cout << b << ""<< d << " " <« c << " " << a<<
endl;
else if (a>c && b>a && d>b)
Cont << c << '
くくaくく
<« b << " " << d <<
endl;
else if (a>c && d>a && b>d)
Cout << c <<
<« a << " " << d << " " << b <<
endl;
else if (b>c && a>b && d>a)
<« b << "
<« a << " " << d <<
Cont << c <<
endl;
else if (b>c && d>b && a>d)
Cout << c <</
<« b << " " << d << " " << a <<
endl;
else if (d>c && b>d && a>b)
cont << c << ""<< d << " " <« b << " " << a<<
endl;
else if (d>c && a>d && b>a)
Cont << c << " " << d <<
endl;
<< a << " " << b <<
else if (a>d && b>a && c>b)
cont << d << ""<< a << " " << b << " " << c <«
endl;
else if (a>d && c>a && b>c)
<« c << " " << b <<
Cout << d <<
endl;
<< a <<
else if (b>d && a>b && c>a)
cont << d << " " << b << " " << a << " " << c <<
endl;
else if (b>d && c>b&& a>c)
<« b <<
Cout << d <<
endl;
<< c << " " << a <<
else if (c>d && b>c && a>b)
Cont << d <<
くくCくく
<< b << " " << a <<
endl;
else if (c>d && a>c && b>a)
<< c << " " << a << " " << b <<
Cout << d <<
endl;
return 0;
9:45 PM](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F11c31755-fbf4-4b24-8cb0-bf6a26554d1d%2Fba3fd406-45f1-4462-81ae-eaf044690351%2Fdi76f6y_processed.jpeg&w=3840&q=75)
Transcribed Image Text:#include <io stream >
using namespace std;
int main ()
cout << "Enter 4 num bers: ";
float a, b, c, d;
cin >> a >> b >> c >> d;
cout <<" Ascending Order:";
if (a>b && b>c &&c>d)
<« b << " " <<c << " " << d <<
Cout << a << '
endl;
else if (b>a && d>b && c>d)
cont << a << "" << b << " " << d << " " << c <«
endl;
else if (c>a && b>c && d>b)
<« c << " " < b << " " << d <<
Cont << a <<
endl;
else if (c>a && d>c && b>d)
Cout << a <<
'«d <« " " << b «
くくCくく
endl;
else if (d>a && b>d && c>b)
cont << a << ""<< d << " " << b << " " << c <<
endl;
else if (d>a && c>d && b>c)
Cout << a << " " << d <<
endl;
<« c << " " << b <<
else if (a>b && c>a && d>c)
cont << b << ""<< a << " " << c << " " << d <«
endl;
else if (a>b && d>a && c>d)
Cout << b <<
endl;
くく aくく
<< d <<
くくCくく
else if (c>d && d>c && a>d)
« d << " " <<a<<
Cout << b <<
endl;
くくCくく
else if (c>b && a>c && d>a)
<< a << " " << d <<
Cout << b <<
endl;
Cくく
else if (d>b && a>d && c>a)
cout << b << " " << d << " " << a << " " << c <<
endl;
else if (d>b &&c>d && a>c)
cout << b << ""<< d << " " <« c << " " << a<<
endl;
else if (a>c && b>a && d>b)
Cont << c << '
くくaくく
<« b << " " << d <<
endl;
else if (a>c && d>a && b>d)
Cout << c <<
<« a << " " << d << " " << b <<
endl;
else if (b>c && a>b && d>a)
<« b << "
<« a << " " << d <<
Cont << c <<
endl;
else if (b>c && d>b && a>d)
Cout << c <</
<« b << " " << d << " " << a <<
endl;
else if (d>c && b>d && a>b)
cont << c << ""<< d << " " <« b << " " << a<<
endl;
else if (d>c && a>d && b>a)
Cont << c << " " << d <<
endl;
<< a << " " << b <<
else if (a>d && b>a && c>b)
cont << d << ""<< a << " " << b << " " << c <«
endl;
else if (a>d && c>a && b>c)
<« c << " " << b <<
Cout << d <<
endl;
<< a <<
else if (b>d && a>b && c>a)
cont << d << " " << b << " " << a << " " << c <<
endl;
else if (b>d && c>b&& a>c)
<« b <<
Cout << d <<
endl;
<< c << " " << a <<
else if (c>d && b>c && a>b)
Cont << d <<
くくCくく
<< b << " " << a <<
endl;
else if (c>d && a>c && b>a)
<< c << " " << a << " " << b <<
Cout << d <<
endl;
return 0;
9:45 PM
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
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](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY