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
Maru [420]
3 years ago
7

Write the definition of a function printarray, which has two parameters . the first parameter is an array of integers and the se

cond is an int , the number of elements in the array . the function does not return a value . the function prints out each element of the array , on a line by itself, in the order the elements appear in the array , and does not print anything else.
Mathematics
1 answer:
Lady bird [3.3K]3 years ago
7 0
Using pseudocode:

printArray(arr[], integers)
      DECLARE integers
      integers = SizeOf(arr)
      FOR i = 1 to integers // loop from 1 to the number of elements in arr[]
            print(i)
            print('')
            i = i + 1
      ENDFOR
END
You might be interested in
The length of a pool table is 71 feet and the width is 36 feet. Find the area of the surface of the pool table by multiplying th
Zarrin [17]

Answer:

2556 feet squared

Step-by-step explanation:

Area is calculated by multiplying length times width. 71x36=2556

5 0
3 years ago
Domain and range of Y=2x-1
LenaWriter [7]

Step-by-step explanation:

it would be 34y i got right answer

8 0
1 year ago
This is a 3 part 1 question each part on how to locate the plane and a small explanation report working out the recovery details
sesenic [268]

Third leg.

The crew flies at a speed of 560 mi/h in direction N-20°-E.

The wind has a speed of 35 mi/h and a direction S-10°-E.

We then can draw this as:

We have to add the two vectors to find the actual speed and direction.

We will start by adding the x-coordinate (W-E axis):

\begin{gathered} x=560\cdot\sin (20\degree)+35\cdot\sin (10\degree) \\ x\approx560\cdot0.342+35\cdot0.174 \\ x\approx191.53+6.08 \\ x\approx197.61 \end{gathered}

and the y-coordinate (S-N axis) is:

\begin{gathered} y=560\cdot\cos (20\degree)-35\cdot\cos (10\degree) \\ y\approx560\cdot0.940-35\cdot0.985 \\ y\approx526.23-34.47 \\ y\approx491.76 \end{gathered}

Then, the actual speed vector is v3=(197.61, 491.76).

The starting location for the third leg is R2=(216.66, 167.67) [taken from the previous answer].

Then, we have to calculate the displacement in 20 minutes using the actual speed vector.

We can calculate the movement in each of the axis. For the x-axis:

\begin{gathered} R_{3x}=R_{2x}+v_{3x}\cdot t \\ R_{3x}=216.66+197.61\cdot\frac{1}{3} \\ R_{3x}=216.66+65.87 \\ R_{3x}=282.53 \end{gathered}

NOTE: 20 minutes represents 1/3 of an hour.

We can do the same with the y-coordinate:

\begin{gathered} R_{3y}=R_{2y}+v_{3y}\cdot t \\ R_{3y}=167.67+491.76\cdot\frac{1}{3} \\ R_{3y}=167.67+163.92 \\ R_{3y}=331.59 \end{gathered}

The final position is R3 = (282.53, 331.59).

To find the distance from the origin and direction, we transform the cartesian coordinates of R3 into polar coordinates:

The distance can be calculated as if it was a right triangle:

\begin{gathered} d^2=x^2+y^2_{} \\ d^2=282.53^2+331.59^2 \\ d^2=79823.20+109951.93 \\ d^2=189775.13 \\ d=\sqrt[]{189775.13} \\ d\approx435.63 \end{gathered}

The angle, from E to N, can be calculated as:

\begin{gathered} \tan (\alpha)=\frac{y}{x} \\ \tan (\alpha)=\frac{331.59}{282.53} \\ \tan (\alpha)\approx1.1736 \\ \alpha=\arctan (1.1736) \\ \alpha=49.56\degree \end{gathered}

If we want to express it from N to E, we substract the angle from 90°:

\beta=90\degree-\alpha=90-49.56=40.44\degree

Answer: the final location can be represented with the vector (282.53, 331.59).

1) The distance from the origin is 435.63 miles and

2) the direction is N-40°-E.

7 0
1 year ago
Andrew Needs 995 tickets to get the prize he wants At the arcade. He Already has 319 tickets and can earn 4w tickets each time h
Anuta_ua [19.1K]
650 tickets
To win the e prize
8 0
3 years ago
Henry is going to invest in an account paying an interest rate of 4.3% compounded
DerKrebs [107]

Answer:

63.0769230769

Step-by-step explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • One line passes through the points (2,1) and (5,7). Another line passes through points (-3,8) and (8,3). Are the lines parallel,
    9·2 answers
  • G(x)=\dfrac{x+6}{2}g(x)=
    14·1 answer
  • What’s the simplified form of 2x+3-x+5
    11·2 answers
  • What is cardinality of A={1,4,9}​
    5·1 answer
  • Help with # 4 plz idk
    7·1 answer
  • Write an expression to match the statement 1/5 of the difference between 18 and 11
    13·1 answer
  • What is the area of a triangle base= 1.73 and hight= 0.5
    15·1 answer
  • !!!!!!!!!!!!!!!!!!!
    10·1 answer
  • What's the answer !!<br><br><img src="https://tex.z-dn.net/?f=%20%5Csqrt%7B58%20%5Ctimes%2058%7D%20" id="TexFormula1" title=" \s
    15·2 answers
  • A 4-L water filter is used to fill 200 mL cups and three 750 mL drink bottles How much water is left in the water filter
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!