1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
crimeas [40]
4 years ago
6

Write a function named sortie that takes three integer parameters by reference and rearranges them in ascending order--the first

parameter being the smallest, the third parameter being the largest. A program file is provided. A comment in the file indicates where the function should be written.
Computers and Technology
1 answer:
Nadusha1986 [10]4 years ago
7 0

Write a function named sortie that takes three integer parameters by reference and rearranges them in ascending order--the first parameter being the smallest, the third parameter being the largest.

Explanation:

#include <stdio.h>

using namespace std;

int main()

{

cout<<"Enter 3 number";

int first, second, third;

cin>>first>>second>>third;

cout<<endl;

cout<<"Unsorted :"<<first<<","<<second<<","<<third<<endl;

sortie(first,second,third);

cout<<"Sorted :"<<first<<","<<second<<","<<third<<endl;

return 0;

}

  • Three numbers are inputted from the user.
  • Sortie function is used to sort the data in specified places.
You might be interested in
Write a function writel that will write the length of a side of a square. If only one argument is passed to the function, it is
Levart [38]

def writel(length, file_name = ""):

   if file_name!="":

       f = open(file_name, "w")

       f.write(str(length))

       f.close()

   else:

       print(str(length))

writel(3, "FileName.txt")

I hope this helps!

Remember, you must have the file created prior to running this program. Best of luck.

7 0
3 years ago
Type the correct answer in the box. Spell all words correctly.
tiny-mole [99]

Answer:

Modern CPUs contain multiple cores.  Think of it as multiple smaller CPU's on the single CPU chip.  The multiple cores can handle different processes in parallel allowing for multiple programs to be running at the same time.  This is not considered true multi-processing since the architecture still has a single I/O bus and can be subject to a single point of failure.  But the operating system will take advantage of the additional cores as if they were multiple physical CPU's - enhancing performance and productivity.

Explanation:

7 0
3 years ago
13. A 2-sided coin has an equal likelihood of landing on each side. One side is called "heads" and the other is called "tails".
serious [3.7K]

Answer: c

Explanation:

only reasonable answer

7 0
3 years ago
What is the main difference between EDBAC and EDNIAC......​
lawyer [7]

Answer:

EDVAC (Electronic Discrete Variable Automatic Computer) was the successor to ENIAC, was binary based, and used stored programs, and was also designed by Eckert and Mauchly, UNIVAC I (UNIVersal Automatic Computer I) was the first commercial computer. It was designed by the same two men who designed ENIAC and EDVAC.

Explanation:

6 0
4 years ago
Read 2 more answers
How can social media be useful for brand awareness ?
shutvik [7]
It lets them reach out to people on that platform that can advertise their products
4 0
3 years ago
Other questions:
  • What does this mean?
    7·2 answers
  • What does hdr stand for?
    6·2 answers
  • Which of the following will affect the size of your monthly mortgage payment
    8·2 answers
  • How many times will the while loop that follows be executed? var months = 5; var i = 1; while (i &lt; months) { futureValue = fu
    12·1 answer
  • When you use information hiding by selecting which properties and methods of a class to make public, you are assured that your d
    14·1 answer
  • What will you see on the next line?
    6·2 answers
  • Compare and contrast the uses of NetWitness Investigator and Wireshark used in the lab. Why would a network administrator use Wi
    8·1 answer
  • Identify an advantage of the software as a service (SaaS) approach in public cloud computing. Group of answer choices The user h
    5·1 answer
  • How can you have internet without subscribing to cable?
    13·1 answer
  • Scripting languages are unique computer languages with a specialized function. explain what scripting languages do, and how this
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!