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
Leviafan [203]
3 years ago
12

Write a loop that sets each array element to the sum of itself and the next element, except for the last element which stays the

same. be careful not to index beyond the last element. ex: initial scores: 10, 20, 30, 40 scores after the loop: 30, 50, 70, 40 the first element is 30 or 10 + 20, the second element is 50 or 20 + 30, and the third element is 70 or 30 + 40. the last element remains the same.
Mathematics
1 answer:
jeka943 years ago
4 0
int scores[] = { 10, 20, 30, 40 };
int nrElements = sizeof(scores) / sizeof(scores[0]);

for (int i = 0; i <nrElements - 1; i++)
{
   scores[i] += scores[i + 1];
}

You might be interested in
A bag of rice weighs 2.5 pounds. How many ounces is that?
blondinia [14]

40 ounces is 2.5 pounds because each pound is 16 ounces


3 0
4 years ago
Read 2 more answers
a photographer shines a camera light at a particular painting forming an angle of 50 degrees with a camera platform at the light
umka2103 [35]

Answer:

The painting is 42.13 feet above  the platform

Step-by-step explanation:

Refer the attached figure .

A particular painting forming an angle of 50 degrees with a camera platform .

∠ABC = 50°

We are also given that the light is 55 feet from the wall where the painting hangs

i.e. AB = 55 feet.

Now we are required to find how high above the platform is the painting​. i.e. AC

So, we will use trigonometric ratio :

sin\theta = \frac{Perpendicular}{Hypotenuse}

sin50^{circ} = \frac{AC}{AB}

sin50^{circ} = \frac{AC}{55}

0.766*55 = AC

42.13= AC

Thus the painting is 42.13 feet above  the platform

8 0
4 years ago
Hey can anybody help me with this question please
PIT_PIT [208]
A. is 2 and so is B
6 0
3 years ago
ILL BRAINLIEST YOU PLEASE HELP ME
gtnhenbr [62]

Answer:

Option C

The length of RT is 14

Step-by-step explanation:

For a given Right Triangle

m∠R = 90°, RG = 17, TG = 22

Now, <u>By Pythagoras Theorem</u>

(RT)² + (RG)² = (TG)²

(RT)² = (TG)² - (RG)²

(RT)² = (22)² - (17)²

(RT)² = 484 - 289

(RT)² = 195

RT = √195

RT = √195 = 13.96 = 14

Thus, The length of RT is 14

<u>-TheUnknownScientist</u>

4 0
3 years ago
What is the average cost of 7 articles if 3 of them cost 30k each and the rest cost 12.5k each ​
LenKa [72]

{\bold{\red{\huge{\mathbb{QUESTION}}}}}

what is the average cost of 7 articles if 3 of them cost 30k each and the rest cost 12.5k each

\bold{ \red{\star{\blue{GIVEN }}}}

TOTAL NUMBER OF ARTICLE= 7

ARTICLES FOR 30K = 3

ARTICLES FOR 12.5K = 7-3= 4

\bold{\blue{\star{\red{TO \:  \: FIND}}}}

Average cost of 7 articles

\bold{  \green{ \star{ \orange{FORMULA \:  USED}}}}

\red{AVERAGE  =  \frac{TOTAL \:  COST}{ NUMBER  \: OF\: ARTICLES }}

\huge\mathbb{\red A \pink{N}\purple{S} \blue{W} \orange{ER}}

Average \:  cost  \: of  \: 7  \: articles -  >  \\  \frac{(3 \times 30k) + (12 .5k \times 4)}{7}  \\  \frac{90k + 50k}{7}  \\  \frac{140k}{7}  \\  \blue {Average \:  cost  \: of  \: 7  \: articles -  >} \\ 20k

5 0
3 years ago
Other questions:
  • Let f(x) =45x^2 – 2x + 1.  What is the value of f(5) · f(–10) – f(–5) · f(10)?
    7·1 answer
  • 16. For quadrilateral ABCD, determine the most precise name for it. A(2,3), B (12,3), C(8,6) and D(5,6). Show your work and expl
    13·1 answer
  • MATH HELP
    11·2 answers
  • PLS ANSWER QUICKLY
    11·2 answers
  • Squaring a number and then multiplying the result by 4 what is that number
    5·1 answer
  • Can some solve this<br> for me please
    5·1 answer
  • Derrick had $100 to spend at a sporting goods store. He bought a pair of shorts for $11.36 and a pair of athletic shoes for $47.
    6·2 answers
  • What is the measure of &lt;2
    7·1 answer
  • Number 1 is the question. the second picture is the one i want you to draw the answer on please ty
    5·1 answer
  • 20men working 8hours a day took 18days to complete a work . How long will 24 men working 5 hours a day take to complete the some
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!