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
wlad13 [49]
3 years ago
5

Write in C. Given an array temps of double, containing temperature data, and an int variable n that contains the number of eleme

nts in temps: Compute the average temperature and store it in a variable called avgTemp. Besides temps, n, and avgTemp, you may use only two other variables -- an int variable k and a double variable total, which have been declared.
Computers and Technology
1 answer:
Doss [256]3 years ago
4 0

Answer:

#include <stdio.h>

int main()

{  

   int n = 5;

   double temps[5] = {10.1, 6.4, 14.9, 8.8, 9.2};

   

   double avgTemp, total = 0;

   

   for (int k=0; k<n; k++) {

       total += temps[k];

   }

   avgTemp = total / n;

   

   printf("%lf", avgTemp);

   return 0;

}

Explanation:

Initialize the variables as described in the question

Create a for loop that iterates through the temps array

Inside the loop, add the temperature values in temp to the total

When the loop is done, calculate the average - divide the total by n

Print the average

You might be interested in
At its time of construction, one of the fastest computers in the world is referred to as a(n) _________________.​
Cerrena [4.2K]
The answer for your problem is "super computer" These types of computers can processes 1 million or more digit numbers in one second. 
4 0
3 years ago
I don’t understand how to make a hyperlink or put an image in an html file
Mademuasel [1]

To use image as a link in HTML, use the <img> tag as well as the <a> tag with the href attribute. The <img> tag is for using an image in a web page and the <a> tag is for adding a link. Under the image tag src attribute, add the URL of the image. With that, also add the height and width.

-tutorialspoint

8 0
4 years ago
Cisco Next Generation Intrusion Prevention System (NGIPS) devices include global correlation capabilities that utilize real-worl
madreJ [45]

To configure and set up Sourcefire NGIPS–managed devices, you must define blocking rules, set up the IPS to capture traffic, and, if necessary, block untrusted IP addresses. Sourcefire NGIPS is widely deployed in many enterprise environments that help protect the perimeter from intrusions.

Review the Sourcefire Installation Guides to set up a Defense Center and managed devices. The appliance will be configured as a Next Generation firewall.

Log in to the Sourcefire management interface and select the device you have configured.

Sourcefire NGIPS Interfaces Tab

Enter the specific details within the Device section. Click the pencil icon to edit the device-specific details.

Sourcefire Managed Device Setup

We have two separate security zones created on this device: the BIG-IP load balanced security zone, which is the zone for all the IPS-managed device interfaces, and the VLAN-35 security zone, which is the network for all the application server nodes (i.e., FTP, HTTPS, WEB). The Sourcefire NGIPS– managed device will inspect network flows coming from the BIG-IP appliance and then connect to the back-end server pools.

8 0
4 years ago
Help me out for this one
Cloud [144]

Answer:

How many questions do you have?!?

Explanation:

No answer... sorry

3 0
3 years ago
Information technology please help​
malfutka [58]

Answer:

Read Technical Books. To improve your technical skills and knowledge, it's best to read technical books and journals. ...

Browse Online Tutorials. ...

Build-up online profile. ...

Learn new Tools. ...

Implement what you learned. ...

Enrich your skillset. ...

Try-out and Apply.

6 0
3 years ago
Other questions:
  • Which of the following option is correct about HCatalog?
    14·1 answer
  • WHAT DOES THE WORD MONOCHROME MEAN?
    11·1 answer
  • _______ technology is used in many hospitals to verify that the correct medication is being dispensed to the applicable patient.
    15·1 answer
  • The growing network of physical objects that will have sensors connected to the Internet is referred to as the ________.
    13·1 answer
  • Select the characteristics that describe the evolution of computers that predate the personal computer (select all correct answe
    12·1 answer
  • Problem 3. Consider the following recurrence, defined for n a power of 4 (for the time of some algorithm): T(n) = 3 if n = 1 2T(
    5·1 answer
  • "Businesses around the world all need access to the same data, so there needs to be one type of information system that is desig
    13·1 answer
  • Need the answer ASAP!!! I’ll mark brainliest if correct
    12·2 answers
  • Hello guys please help me <br>list and identify the components of computer ​
    15·1 answer
  • How to fix this? Zoom it in to see it better
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!