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
DanielleElmas [232]
3 years ago
6

Add each element in origList with the corresponding value in offsetAmount. Print each sum followed by a space. Ex: If origList =

{4, 5, 10, 12} and offsetAmount = {2, 4, 7, 3}, print: 6 9 17 15
Computers and Technology
1 answer:
Darya [45]3 years ago
5 0

Answer:

#include <stdio.h>

int main(void) {

const int NUM_VALS = 4;

int origList[NUM_VALS];

int offsetAmount[NUM_VALS];

int i;

origList[0] = 20;

origList[1] = 30;

origList[2] = 40;

origList[3] = 50;

offsetAmount[0] = 5;

offsetAmount[1] = 7;

offsetAmount[2] = 3;

offsetAmount[3] = 4;

for(i=0;i<NUM_VALS;i++)

{

printf("%d ",origList[i]+offsetAmount[i]);

}

printf("\n");

return 0;

}

Explanation:

  • Initialize the origList and offsetAmount variables.
  • Loop up to the value of NUM_VALS variable.
  • Display the output by combining origList and offsetAmount.
You might be interested in
WILL GIVE BRAINLIEST ANSWER!!!<br><br> How do you manage your screen time?
Aloiza [94]
You can set it up in settings and set strict hours for screen time.
7 0
3 years ago
Read 2 more answers
__________ is a computer tool for evaluating the risk of exposure to wildfires.
Brut [27]

Answer:

The statement is true

Explanation:

5 0
2 years ago
Read 2 more answers
8.Arun wrote a program to divide two numbers by accepting from user. But he was not getting the intended result when the divisor
Kryger [21]
Kakapo our new generation is a lot more work
4 0
4 years ago
What is the result of adding 1234.5674 and
Charra [1.4K]

Answer:

C. 1280.245

Explanation:

1234.567 + 45.678 = 1280.245

3 0
3 years ago
21
Tanzania [10]

Answer:

A website that sells computer hardware to large organizations --> .com

A website operated by the state of California --> .gov

The website of the US Coast Guard --> .mil

The website of a group of individuals who work toward protecting gray wolves --> .org

Explanation: I took the test and got it right ;)

5 0
3 years ago
Other questions:
  • Jill edited James's document using Track Changes. James agrees with all of the edits and wants to incorporate them into his text
    6·1 answer
  • If you see ##### in a cell, you should
    10·1 answer
  • Give me 3 companies that utilize audio/video technology
    8·1 answer
  • Which one of these is not an example of common presenter mistakes?
    9·1 answer
  • If someone runs a red light in front of you and you choose not to slow down or steer away you will
    8·1 answer
  • 2. Assuming that the bits in an integer are numbered from 0, from right (least significant) to left (most significant), write an
    15·1 answer
  • Select the correct answer from each drop-down menu.
    10·1 answer
  • Select the correct answer from each drop-down menu.
    6·2 answers
  • A user calls and complains that she cannot access important company files from her personal device. You confirm that Intune poli
    13·1 answer
  • PLZ HELP I DIDNT MEAN TO CLICK THAT ANSWR I NEEDD HELP
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!