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
vlabodo [156]
3 years ago
12

C - Language Write three statements to print the first three elements of array runTimes. Follow each statement with a newline. E

x: If runTimes[5] = {800, 775, 790, 805, 808}, print: 800 775 790#include int main(void) {const int NUM_ELEMENTS = 5;int runTimes[NUM_ELEMENTS];int i;for (i = 0; i < NUM_ELEMENTS; ++i) {scanf("%d", &(runTimes[i])); }/* Your solution goes here */
return 0;}
Computers and Technology
1 answer:
Jobisdone [24]3 years ago
8 0

Answer:

Replace

/* Your solution goes here */

with

printf("%d",runTimes[0]);

printf("%d",runTimes[1]);

printf("%d",runTimes[2]);

Explanation:

The question requires that the first three elements of array runTimes be printed;

The first three elements are the elements at the first, second and third positions.

It should be noted the index of an array starts at 0;

  • So, the first element has 0 as its index
  • The second has 1 as its index
  • The third has 2 as its index

So, to make reference to the first three elements, we make use of

<em>runTimes[0], runTimes[1] and runTimes[2]</em> respectively

Having mention the above;

It should also be noted that array is of type integers;

So, to display integers in C, we make use of "%d";

Hence, the print statement for the first three elements is

printf("%d",runTimes[0]);

printf("%d",runTimes[1]);

printf("%d",runTimes[2]);

You might be interested in
Who usually signs a collection letter?
murzikaleks [220]
A collection letter is usually signed by THE OFFICE PROFESSIONAL. 
A collection letter refers to the letter written by a company to a debtor in order to remind him or her about pending debts. The letter is usually written by the office holder  that is responsible for that task. Professionals in the accounting department are often responsible for this.<span />
4 0
3 years ago
Read 2 more answers
Write any two features of Guided media​
BaLLatris [955]

Answer:

<h3>Guided media, which are those that provide a conduit from one device to another, include twisted-pair cable, coaxial cable, and fiber-optic cable. Guided Transmission Media uses a "cabling" system that guides the data signals along a specific path. The data signals are bound by the "cabling" system.</h3>

pa brainliest po thank you

6 0
3 years ago
Why is it that even though there aren't the max number of answers on a question, (or sometimes even NO answers) When I click the
maks197457 [2]
It has happened to me before. i think it’s just because someone is already typing an answer maybe ‍♀️ or try restarting the app and get back on it. might be jus a glitch from the app but either way hope you get it fixed :)
4 0
3 years ago
In the context of data quality management tools, _____ software is one that gathers statistics, analyzes existing data sources a
Dimas [21]

Answer:

Data-profiling software

Explanation:

Data-profiling software -

It refers to the software , that helps to collect the data or information from a particular existing source and performed it analysis , is referred to as a Data-profiling software .

The software helps to determine information about a topic , or analyse the pattern , for the process of comparison etc.

Hence , from the given information of the question ,

The correct answer is Data-profiling software .

5 0
3 years ago
How do you construct a JK Flip-flop from a T Flip-flop?
Ainat [17]
<span>Its very simple. All you have to do is short J and K inputs i.e. same inputs go into both J and K.
</span><span>Actually T flip flop is the special case of J-K flip flop when both the inputs of J-K flip flop are equal to 1 ( or logic high) j=k=1. Know electronics has well explained about its designing. A very good use of this flip flop or J=K=1 condition is in counters.

</span><span>The J-K flip flop is universal and can be used to make any of the other times. I agree with know electronics and VKP that it can be used in counters. Adding the practical use of conversion here . When you are working on ASIC or SOC Design, In the ECO stage if you want T or D flipflop and you have only JK flipflops then this conversion techniques can be helpful. similarly MUX conversions are helpful in realizing computational gates</span>

5 0
3 years ago
Other questions:
  • Suppose two hosts, A and B, are separated by 15,000 kilometers and are connected by a direct link of R = 5 Mbps. Suppose the pro
    11·1 answer
  • If userA wants to send a secure message to userB using an asymmetric cryptographic algorithm, which key does userB use to decryp
    11·1 answer
  • Which of the following statements is TRUE?
    11·2 answers
  • Fredrick wants to revise an employee policy. If he wants to inform all of the employees of the change, what type of document wil
    10·2 answers
  • Stella is surfing the Internet to look for affordable apartments in New York City. Every time she clicks on a link to a webpage,
    9·1 answer
  • What table element represents a field within a record in powerpoint A column B Row C header D footer
    14·1 answer
  • How do professionals address their problems?
    14·2 answers
  • 2.3 Code Practice: Question 1
    5·1 answer
  • RTOS stands for ______ Time Operating System.
    11·1 answer
  • Which of the following is not a strategy to help build empathy for your users?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!