write c++ an algorithm to write a program to sort two numbers ascending or descending order​

Answers

Answer 1

Answer:

++ provides versions of these algorithms in the namespace std::ranges. Algorithms are the vast topic that covers topics from searching, sorting to min/max heaps. These can be categorized as:

Explanation of C++ Algorithm

Explanation:


Related Questions

Consider the code below. When you run this program, what is the output if the temperature is 77.3 degrees Fahrenheit?
temperature = gloat(input('what is the temperature'))
if temperature >70:
print('Wear short sleeves')
else:
print('bring a jacket')
print ('Go for a walk outside')

Answers

Answer:

The output would be "Wear short sleeves"

Explanation:

The temperature is 77.3 degrees and 77.3 > 70

What is the meaning of negative impact in technology

Answers

Answer:

the use of criminal thought by the name of education

Which of the following statements regarding the SAP Hana product implemented by Under Armour is NOT true?
A. All of the statements are true.
B. The program allows legacy silos to remain intact.
C. The program can run across platforms and devices.
D. The program provides real-time results.

Answers

Answer:A

Explanation:i need points

In TCP, a welcoming socket is (a) used by the server to receive incoming request from a client (b) closed by the server when interaction with that client is completed (c) bound to a specific port number (d) all of the above

Answers

Answer: (d) all of the above

Explanation:

The Transmission Control Protocol refers to a transport protocol which is used to ensure the transmission of packets on top of IP.

In TCP, a welcoming socket is:

• used by the server to receive incoming request from a client

• closed by the server when interaction with that client is completed

• bound to a specific port number.

Therefore, the correct option is "All of the above".

Select the correct answer. Which input device uses optical technology?
A. barcode reader
B. digital pen
C. digital camera
D. joystick​

Answers

Answer:

barcode reader is the correct answer


What software tool can you use to see the applications that are currently running?

Answers

Answer:

You can use the task manager to see what programs are currently running.

Explanation:

Answer:

The answer is Task Manager.

Explanation:

The Microsoft Windows Task Manager is a general, quick, and easy method of viewing what programs, background processes, and apps are running on the computer.

Using the Task Manager, you can also view how much memory a program is using, stop a frozen program, and view available system resources.

The following SQL is which type of join? SELECT CUSTOMER_T. CUSTOMER_ID, ORDER_T. CUSTOMER_ID, NAME, ORDER_ID FROM CUSTOMER_T,ORDER_T WHERE CUSTOMER_T. CUSTOMER_ID = ORDER_T. CUSTOMER_ID

Answers

Answer:

Self Join

Explanation:

Required

The type of JOIN

Notice that the given query joins the customer table and the order table without using the keyword join.

SQL queries that join tables without using the keyword is referred to as self join.

Other types of join will indicate the "join type" in the query

The _____ of the Open Systems Interconnection (OSI) modelspecifies the electrical connections between computers and the transmission medium and is primarily concerned with transmitting binary data, or bits, over a communication network.

Answers

Answer:

"Physical layer" is the correct answer.

Explanation:

It dealt mostly with bit-level transfer across various equipment as well as it provides industrial automation connections to meet quality standards to something like digital downloads.The purpose of this layer would be to consolidate essential networking system compatibility so that information is being sent successfully.

Thus, the above is the correct answer.

1. Imagine you are in a computer shop. Choose five things that would improve your digital lif​

Answers

Answer:

definitley a mac

Explanation:

im not much of an apple company person but i would love to try a mac im more of that disney person who likes the animated stuff like raya and the last dragon which came out in march and luca which came out last friday

How could you use your technology skill and Microsoft Excel to organize, analyze, and compare data to decide if a specific insurance is a good value for the example you gave

Answers

Answer:

The summary of the given question would be summarized throughout the below segment.

Explanation:

"Insurance firms voluntarily assume our charge probability," implies assurance undertakings will compensate including all our devastations throughout respect of products for something we have health coverage and that the vulnerability for both would be equivalent.If somehow the client receives significant losses, the firm must compensate that kind of money as well as, if there are no failures, it can invest earnings or rather an investment.

Used for monitoring web activity by users to make sure that sensitive information won't leave the building.

A, Web server
B, FTP server
C, POP server
D, Proxy server ​

Answers

Answer: PROXY

Explanation:

The basic objective of the web server is to store, process and deliver web pages to the users.

FTP server is to allow users to upload and download files. An FTP server is a computer that has a file transfer protocol (FTP) address and is dedicated to receiving an FTP connection. FTP is a protocol used to transfer files via the internet between a server (sender) and a client (receiver)

pop provides access via an Internet Protocol (IP) network for a user client application to a mailbox (maildrop) maintained on a mail server

proxy server is a system that isolates internal clients from the servers by downloading and storing files on behalf of the clients. it intercepts requests for web-based or other resources that come from

What does the abbreviation BBC stands for?

Answers

Answer:

British Broadcasting Corporation Microcomputer System

Explanation:

The British Broadcasting Corporation Microcomputer System, or BBC Micro, is a series of microcomputers and associated peripherals designed and built by the Acorn Computer company in the 1980s for the BBC Computer Literacy Project.

Answer:

British Broadcasting Corporation

Explanation:

This is a UK company which provides television and radio news in over 40 languages. This is the computer related meaning, there are other meanings to the abbreviation but they seem irrelevant in this case.

Hope this information was of any help to you. (:

which function would ask excel to average the values contained in cells C5,C6,C7, and C8

Answers

Answer:

=AVERAGE(C5:C8)

Explanation:

The function calculates the average of the values in the cell range C5:C8 - C5, C6, C7, C8.

seven and two eighths minus five and one eighth equals?

Answers

Answer: 2.125

Explanation

Frames control what displays on the Stage, while keyframes help to set up

Answers

Answer: A keyframe is a location on a timeline which marks the beginning or end of a transition. So for example, you have a movie and it transitions to another scene, keyframes tell it when and where to start the transition then when and where to stop the transition.

In this module you learned about advanced modularization techniques. You learned about the advantages of modularization and how proper modularization techniques can increase code organization and reuse.
Create the PYTHON program allowing the user to enter a value for one edge of a cube(A box-shaped solid object that has six identical square faces).
Prompt the user for the value. The value should be passed to the 1st and 3rd functions as arguments only.
There should be a function created for each calculation
One function should calculate the surface area of one side of the cube. The value calculated is returned to the calling statement and printed.
One function should calculate the surface area of the whole cube(You will pass the value returned from the previous function to this function) and the calculated value results printed.
One function should calculate the volume of the cube and print the results.
Make a working version of this program in PYTHON.

Answers

Answer:

Following are the code to the given question:

def getSAOneSide(edge):#defining a method that getSAOneSide that takes edge patameter

   return edge * edge#use return to calculate the edge value

def getSA(SA_one_side):#defining a method that getSA that takes SA_one_side patameter

   return 6 * SA_one_side#use return to calculate the SA_one_side value

def volume(edge):#defining a method that volume that takes edge patameter

   return edge * edge * edge#use return to calculate edge value

edge = int(input("Enter the length of edge of the cube:\n"))#defining edge variable that input value

SA_one_side = getSAOneSide(edge)#defining SA_one_side that holds getSAOneSide method value

print("Surface area of one side of the cube:", SA_one_side)

surfaceArea = getSA(SA_one_side)#defining a surfaceArea that holds getSA method value

print("Surface area of the cube:", surfaceArea)#print surfaceArea value

vol = volume(edge)#defining vol variable that holds Volume method value

print("Volume of the cube:", vol)#print vol Value

Output:

Please find the attached file.

Explanation:

In the code three method "getSAOneSide, getSA, and volume" method is declared that takes a variable in its parameters and use a return keyword that calculates and return its value.

In the next step,edge variable is declared that holds value from the user and defines three variable that holds method value and print its value with the message.

is defined as the condition in which all of the data in the database are consistent with the real-world events and conditions

Answers

[tex]\boxed{Data \:anomaly}[/tex] is defined as the condition in which all of the data in the database are consistent with the real-world events and conditions.

[tex]\red{\large\qquad \qquad \underline{ \pmb{{ \mathbb{ \maltese \: \: Mystique35}}}}}[/tex]

A company can either invest in employee training seminars or update its computer network. Since updating the computer network would result in more measurable benefits, the company would be best off updating its computer network. The argument above assumes that: Group of answer choices

Answers

Answer:

The more measurable a benefit, the greater value that benefit has to a company

Explanation:

Here, there are two choices ; organizing employee training seminars and computer network update. With an update in the company's computer network, accompanying benefits include ; Improved network performance, Extended feature accessibility, Enhanced firewall and security features, Enhanced efficiency leading to increased overall output. Employee training and seminar also comes with its own benefit which include enhanced employee knowledge. However , the measurable benefits of updating a computer network seems more numerous than employee training which could be a reason why the company chose to invest in its computer network as they feel that investments with more measurable benefits will impact more on the company.

Countdown until matching digits Write a program that takes in an integer in the range 11-100 as input. The output is a countdown starting from the integer, and stopping when both output digits are identical. Ex: If the input is the output is 93 92 91 90 89 88 Ex: If the input is 11 the output is 11 Ex: If the input is 9 or any number not between 11 and 100 (inclusive), the output is: Input must be 11-100 For coding simplicity, follow each output number by a space, even the last one. Use a while loop. Compare the digits do not write a large if-else for all possible same-digit numbers (11,22,33...99), as that approach would be cumbersome for larger ranges. 29999.1122120 LAB ACTIVITY 4.13.1: LAB: Countdown until matching digits 7/10 main.c Load default template... 1 include 2 3 int main() 4 int n, i: 5 scanf("%d", &n); if (n < 20 Il n98) { 7 printf("%d",n); } else { i-n: 1e while (1) printf("%d", 1); if (icie - i/10) 13 14 15 16 17 } 18 printf("\n"); 19 return : 20 ) 12 break; Latest submission - 11:16 PM on 02/05/21 Total score: 7/10 Only show failing tests Download this submission 1: Compare output A 3/3 Input Your output 93 92 91 90 89 88 2: Compare Output A Input 11 Your output 11 3: Compare output a 3/3 Input 20 Your output 20 19 18 17 16 15 14 13 12 11 4: Compare output A 0/2 Output differs. See highlights below. Special character legend Input 101 Your output 101 Expected output Input must be 11-100 5. Compare output A 0/1 Output differs. See highlights below. Special character legend Input Your output Expected output Input must be 11-100

Answers

Answer:

The program in C is as follows:

#include <stdio.h>

int main(){

   int n;

   scanf("%d", &n);

   if(n<11 || n>100){

       printf("Input must be between 11 - 100");    }

   else{

       while(n%11 != 0){

           printf("%d ", n);

           n--;        }

       printf("%d ", n);    }

   return 0;

}

Explanation:

The existing template can not be used. So, I design the program from scratch.

This declares the number n, as integer

   int n;

This gets input for n

   scanf("%d", &n);

This checks if input is within range (11 - 100, inclusive)

   if(n<11 || n>100){

The following prompt is printed if the number is out of range

       printf("Input must be between 11 - 100");    }

   else{

If input is within range, the countdown is printed

       while(n%11 != 0){ ----This checks if the digits are identical using modulus 11

Print the digit

           printf("%d ", n);

Decrement by 1

           n--;        }

This prints the last expected output

       printf("%d ", n);    }

The imperative programming paradigm is popular and is a part of object-oriented computing paradigm, because it: __________.
A. is based on computer organization and thus is efficient to execute on hardware.
B. matches the culture of doing things by following the step-wise instructions.
C. enforces the modularity and supports the development of large programs.
D. supports class inheritance and code reuse.

Answers

Answer:

B. Matches the culture of doing things by following the step-wise instructions.

Explanation:

Imperative programming paradigm follows a sequence of instructions and steps. The order of execution of the statement is necessary because their is sequence of statements. Operation is system oriented.

In imperative programming, the source code is a series of commands, this commands tell the computer what to do, when to do it and the order it will be done so as to achieve the best result. The code of imperative programming paradigm is quite easy to understand.

Please write 2 paragraphs on where you envision yourself academically, and personally in 5 years, and in 10 years.
(What would you have accomplished by the year 2026, and 2031).

Answers

Answer:

Explanation:

This is a personal answer because everyone envisions something different.

In 5 years, I hope to have a well established Front-End Development freelancing site and various clients. Hopefully, this will drastically increase my income and allow for more options. I also would like to start investing heavily in different areas of interest. As for personal life, I would like to learn an instrument and work on developing relationships with those close to me.

In 10 years, I hope to have a large sum of money invested in various assets. I would also love to buy a piece of land and build a small home for myself. I see myself also having worked for a startup company developing an application that would drastically better the lives of a specific group of individuals. If all of this were to become a reality, I guess the only thing left that I would love to do would be to travel the world with someone special by my side.

Again, everyone's vision is different/unique and special to them. Hope this helped.

) Python command line menu-driven application that allows a user to display, sort and update, as needed a List of U.S states containing the state capital, overall state population, and state flower. The Internet provides multiple references with these lists. For example:

Answers

Answer:

Explanation:

The following is a Python program that creates a menu as requestes. The menu allows the user to choose to display list, sort list, update list, and/or exit. A starting list of three states has been added. The menu is on a while loop that keeps asking the user for an option until exit is chosen. A sample output is shown in the attached picture below.

states = {'NJ': ['Trenton', 8.882, 'Common blue violet'], 'Florida':['Tallahassee', 21.48, 'Orange blossom'], 'California': ['Sacramento', 39.51, 'California Poppy']}

while True:

   answer = input('Menu: \n1: display list\n2: Sort list\n3: update list\n4: Exit')

   print(type(answer))

   if answer == '1':

       for x in states:

           print(x, states[x])

   elif answer == '2':

       sortList = sorted(states)

       sorted_states = {}

       for state in sortList:

           sorted_states[state] = states[state]

       states.clear()

       states = sorted_states

       sorted_states = {}

   elif answer == '3':

       state = input('Enter State: ')

       capital = input('Enter Capital: ')

       population = input('Enter population: ')

       flower = input('Enter State Flower: ')

       states[state] = [capital, population, flower]

   else:

       break

Exercise#1: The following formula gives the distance between two points (x1, yı) and (x2, y2) in the Cartesian plane:
[tex] \sqrt{(x2 - x1) ^{2} + (y2 - y1) ^{2} } [/tex]
Given the center and a point on circle, you can use this formula to find the radius of the circle. Write a C++ program that prompts the the user to enter the center and point on the circle. The program should then output the circle's radius, diameters, circumference, and area. Your program must have at least the following methods: findDistance: This mehod takes as its parameters 4 numbers that represent two points in the plane and returns the distance between them. findRadius: This mehod takes as its parameters 4 numbers that represent the center and a point on the circle, calls the method findDistance to find the radius of the circle, and returns the circle's radius. circumference: This mehod takes as its parameter a number that represents the radius of the circle and returns the circle's circumference. area: This mehod takes as as its parameter a number that represents the radius of the circle and returns the circle's area. .​

Answers

Ddgdgdgdfdgdfdgdgdgdgdgdgdgdggdgdgdgdgg

What is the value of x after the following code is executed?

x = 0
while x < 20 :
x = x + 1
else :
x = 10

Answers

I think it is X equals X +1 and while ex alt 20

write the output of given program:​

Answers

Answer:

24

16

80

0

Explanation:

A+B=>20+4=24

A-B=>20-4=16

A*B=>A x B = 20 x 4 = 80

A MOD B=> Remainder of A/B = 0

1.               The smallest unit in a digital system is a​

Answers

Answer:

a bit

Explanation:

<3

_ is a term used for license like those issues by creative commons license as an alternative to copyright

Answers

, . , .

Explanation:

'

what is function of java​

Answers

Explanation:

Java is an object-orinted programming language used for software develpment.

sita didnt go to school. (affirmative)
me​

Answers

What is this supposed to be a question??

Choose a topic related to a career that interests you and think about how you would research that topic on the Internet. Set a timer for fifteen minutes. Ready, set, go! At the end of fifteen minutes, review the sources you have recorded in your list and think about the information you have found. How w

Answers

Answer:

Following are the solution to the given question:

Explanation:

The subject I select is Social Inclusion Management because I am most interested in this as I would only enhance my wide adaptability and also people's ability to know and how I can manage and understand people.

Under 15 min to this location. The time I went online but for this issue, I began collecting data on the workability to tap, such as a connection to the monster, glass doors, etc.

For example. At example. I get to learn through indeed.com that the HR manager's Avg compensation is about $80,600 a year. I can gather from Linkedin data about market openings for HR at tech companies like Hcl, Genpact, etc. Lenskart has an HR director open vacancy.

This from I learns that for qualified practitioners I have at least 3 years experience in the management of human resources & that I need various talents like organizing, communications, technical skills, etc.

Other Questions
A public company has declared a property dividend of one share of its investment in M corporation for every 10 shares of its common stock outstanding. The M shares were originally purchased by the company for $50 per share; on the date the dividend was declared, the market value was $75 per share. As a result of this declaration, the company should recognize A. An appropriate gain or loss based on the market value on the date of distribution. B. A gain of $25 per share to be distributed. C. A loss of $25 per share to be distributed. D. No gain or loss. 3 Qu ttulo completa mejor el siguiente esquemaparcialI.A. El gobierno nacional no puedeimponer impuestos directosB. Falta de una monedanacional nicaC. Falta de un lder ejecutivo elegido Which was the first computer commissioned by the Army Ordnance Corps? To help ensure team well-being, CERT leaders may:A Prevent volunteers from taking breaksB Gradually phase out workers from high-stress to low-stress jobsC Ask survivors to help hand out waterD Work for days without a nap The graph below is the graph of a function true or false A tendency to overestimate the extent to which a stranger's violent behavior stems from his or her aggressive personality best illustrates .Write a letter to your sister who has just arrived in a city to live with an uncle, advising her to be well behaved while in the city. The Sugar Sweet Company is going to transport its sugar to market. It will cost 4500 to rent trucks, and it will cost an additional 255 for each ton of sugar transported.Let C represent the total cost (in dollars), and let S represent the amount of sugar (in tons) transported. Write an equation relating C to S Then use this equation to find the total cost to transport 16 tons of sugar. In a chemical reaction, the number of moles of the reactants A. should always be equal to the number of moles of the products. B. depends on the amount of product that is formed. C. should never be equal to the number of moles of the products. D. may or may not be equal to the number of moles of the products. which will result in a perfect square trimonial What is the entire object shown in the image?A cell with a nucleus and other structures is shown.prokaryoteeukaryotechloroplastmitochondrion example of made up negative feedback loop Consuela is a business analyst for her company. She is working from home and on a video conference with several other team members. Her video conferencing client displays a message indicating that the quality of her connection is unstable. What is the most likely problem What is the momentum, in kg m/s, of a tyre of mass 6 kg rolling along at a velocity of 3m/s? Old Ironsides answer key The chart below demonstrates the number of genetic differences between 9 species. Which two species are least closely related to each other according to the information provided? what is the answer to this question?? in what ways did the federal government start protecting the environment in the 1970s? It has been argued that the traditional model of a full-service, lead advertising agency is becoming obsolete. Discuss the changes occurring in the industry and how they are affecting the traditional lead agency model. Please help me I need to solve for x.