Answer:
The answer is below
Explanation:
There are various reasons to apply arrays in a program. Some of which includes:
1. Arrays provides users to easily save specified numbers of the element in them.
2. It easily store data of similar types and sizes.
3. It allows users to store data in various dimensional arrays.
4. It eliminates deficit of memories for the location of its elements
Answer:
Network switch has been disconnected or switched off
Explanation:
An organization networking can be done by using several switches, routers, modems, etc. A network switch works between modem and systems, connecting the systems to the network.
A network switch is a multi-port switch that connects multiple devices to the network. mostly every floor has a network switch connected with the floor systems.
When a system is connected to switch, its indicator light on NIC is active. but as per the scenario, no system has active indicator lights on NIC, which means that there is some problem with the switch or switch is powered off.
Answer:
#include <iostream>
using namespace std;
int main() {
double temps[10]={32.2,30.1,33.5,32.8,35.0,36.7,36.8,35.6,34.9,36.9};//initialized 10 temps values.
double avgTemp,total=0;//two varaibles declared.
for(int k=0;k<10;k++)//for loop to calculate the average..
{
total+=temps[k];//adding temperature values to the total..
}
avgTemp=total/10;//calcualting the average..
cout<<"The average temperature is "<<avgTemp<<endl;//printing the average temperature.
return 0;
}
Output:-
The average temperature is 34.45.
Explanation:
The above written code is in C++. An array of double temps is initialized with arbitrary 10 values.Then the average is calculated using the integer k and the average is stored in the variable avgTemp. Then it is printed on the screen.