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
Paul [167]
3 years ago
7

Daily STEM Newsletter Questions 5

Computers and Technology
1 answer:
Alexxx [7]3 years ago
5 0

Answer:

32

Explanation:

A duck has 2 wings, a spider has no wings and a cat also has no wings. So a cat costs as much as a spider.

You might be interested in
Write a program in C++ to swap two variables usingfunctions?
lilavasa [31]

Answer:

#include <iostream>

using namespace std;

void swap(int& m, int& n)  /* passing by reference so that changes will be made in the original values.*/

{

   int t=m;

   m=n;

   n=t;

}

int main()

{

   int val1,val2;

   cout<<"Enter the values"<<endl;

   cin>>val1>>val2;

   cout<<"Values before swap "<<val1<<" "<<val2<<endl;

   swap(val1,val2); //calling the function swap..

   cout<<"Values after swap "<<val1<<" "<<val2<<endl;

return 0;

}

Explanation:

Created a function swap with 2 arguments m and n passed by reference.

8 0
4 years ago
Suppose that you sort a large array of integers by using a merge sort. Next you use a binary search to determine whether a given
klio [65]

Answer:

See explaination

Explanation:

Merge sort working-

1.type of recursive sorting algorithm.

2.divides given array into halves.

3. Sort each halves. Merge this halves to give a sorted array.

4. Recursive call continues till array is divided and each piece has only one element.

5. Merge this small pieces to get a sorted array.

Binary search-

1. It is a search algorithm.

2. Requires a sorted array to work on.

3.Works repetively dividing a half portion of list that could contain item until it has narrowed down the possible location to just one.

Comparing Merge sort and Binary Search using Big O notation-

Merge Sort - O(n*log(n)) in all scenario whether best, average or worst case.

Binary Search- O(log(n)) in average and worst case. O(1) in best case.

So seeing the above comparison Binary search is faster.

Comparing Binary search and displaying the integers-

Binary Search- O(log(n)) in average and worst case. O(1) in best case.

Displaying the integer-O(1) if already initialized, O(n) in case of loop or function.

So seeing above one can conclude that binary search is fast. But in best case both works in a similar manner.

6 0
3 years ago
Given a list of syntax errors from a compiler, a programmer should focus attention on which error(s), before recompiling?
Ahat [919]

Given a list of syntax errors from a compiler, a programmer should focus attention on the first errors before recompiling,

<h3>What is first error?</h3>

This is referred to a type of error which occurs during compilation in a syntax operation.

This error is suaully as a resuklt of incorrect spelling of variable or function name or parenthesis absence and should be corrected alone before recompiling is done thereby making it the most appropriate choice.

Read more about Syntax here brainly.com/question/18497347

#SPJ1

3 0
2 years ago
What has a code that is freely available for use or modification?
liq [111]

Answer:

Open source software

Explanation:

Open source software is exactly what you think it is, the code to compile the software and run it is available to the public for use or modification.

6 0
3 years ago
1. What type of programmer uses HTML application?
jok3333 [9.3K]

Answer:

Front end developers and Full Stack developers

Explanation:

Although most programmers know HTML (HyperText Markup Language), front-end developers who work on making the user's visual experience with an application the best have to be proficient in HTML. It is used to define the structure of web content on a website for example.

Full Stack developers have a strong grasp of the tools and suites a front-end and back-end developer might use to develop complete software

3 0
3 years ago
Other questions:
  • Which of the following statements is correct? A. The columns will be listed in the results in the same order they are stored in
    7·1 answer
  • You have created a new DHCP scope with address range 192.168.1.1 to 192.168.1.254. You have five servers configured with static
    8·1 answer
  • Case-Based Critical Thinking Questions​Case 1: Tony’s Pizza &amp; Pasta​Tony’s Pizza &amp; Pasta restaurant uses an application
    9·1 answer
  • Social media is an effective form of e-commerce. True False
    12·1 answer
  • A firm can survive and succeed in the long run if it successfully develops strategies to confront the _______________ that shape
    9·1 answer
  • The number of pixels displayed on the screen is known as ​
    12·1 answer
  • To access WordPad, Jill will click on Start, All Programs, Accessories, and WordPad. To access Notepad, Karl will click on Start
    14·1 answer
  • Ok so I know this is the most random question to ask on brainly, but does anyone know how to copy on placement in sims 4 for pc?
    14·2 answers
  • PROGRAM LANGUAGE C
    5·1 answer
  • What does altgr mean on a keyboard.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!