Temperature for the month of April 2017 has been recorded by the zambia metrological department as follows : 24.0,17.5,33.0,36.5,36.0,22.5,12.5,44.0,15.5,33.0,41.5,23.5 explain in detail how these temperatures can be accessed and arranged in a 2DA matrix. Write a program to show how they can be arranged in a 3*3 matrix. Find the total sum of all the temperatures using 2DA

Answers

Answer 1

Answer:

The sum of the temperatures is: 336

Explanation:

2-Dimensional Array:

A two dimensional array is defined as

int temp [3] [3]  

This is how a two dimensional array is defined in C++ programming language.

Here we have defined a 2-D array named temp which can store 3*3 = 9 int values

These 9 values are stored in 3 rows and 3 columns as below:

1, 2, 3

4, 5, 6

7, 8, 9

We are given the temperature for the month of April 2017 recorded by the Zambia metro-logical department.

24.0, 17.5, 33.0, 36.5, 36.0, 22.5, 12.5, 44.0, 15.5, 33.0, 41.5, 23.5

The given temperature values are 12 therefore, we would need a matrix of 3 rows and 4 columns ( 4 rows and 3 columns is also valid)

3*4 = 12 values

These 12 values will be arrange as below:

1, 2, 3, 4

5, 6, 7, 8

9, 10, 11, 12

C++ Program:

#include <iostream>

using namespace std;

int main()

{

// initialize the number of rows and columns

   int row = 3;

   int col = 4;

// initialize variable sum to store the sum of temperature values

   int sum = 0;

// initialize 2d array with given temperature values  

   float temp[row][col] = { {24.0, 17.5, 33.0, 36.5}, {36.0, 22.5, 12.5, 44.0}, {33.0, 41.5, 23.5, 15.5} };    

// we need two for loops to keep track of rows and columns

 for(int i = 0; i < row; ++i)

   {

       for(int j = 0; j < col; ++j)

       {

// to display individual temperature values

          cout<< "temp[" << i << "][" << j << "] = " << temp[i][j] <<endl;

// to sum the elements of the 2d array

          sum+=temp[i][j];

       }    

   }

// to display the sum of temperature values

cout<<"The sum of the temperatures is: "<<sum<<endl;

return 0;

}

Output:

temp[0][0] = 24

temp[0][1] = 17.5

temp[0][2] = 33

temp[0][3] = 36.5

temp[1][0] = 36

temp[1][1] = 22.5

temp[1][2] = 12.5

temp[1][3] = 44

temp[2][0] = 33

temp[2][1] = 41.5

temp[2][2] = 23.5

temp[2][3] = 15.5

The sum of the temperatures is: 336

Note:

The index start at 0 not 1 that is why you see rows from 0 to 2 and columns from 0 to 3.

Temperature For The Month Of April 2017 Has Been Recorded By The Zambia Metrological Department As Follows

Related Questions

What is output by the code below?

int[] nums = new int[10];

for (int i=0; i < nums.length; i++)

{

nums[i] = i*2;

}

System.out.println(nums[5]);

a.16
b. 10
c. 14
d. 18
e. 12​

Answers

Answer: I think it is a

Explanation:Sorry if it it is worng

what is network topology​

Answers

DescriptionNetwork topology is the arrangement of the elements of a communication network. Network topology can be used to define or describe the arrangement of various types of telecommunication networks, including command and control radio networks, industrial fieldbusses and computer networks.

on hearing my name you may think that i am interative, but i play a vital role in network by boosting the signal strenght to overcome attenuation. who am i?

Answers

Answer: A Network Repeater or Repeater

Explanation:

A Network Repeater also called Signal booster is an electronic device that receives a signal and retransmits the signals in such a way that can cover a wide range of distance without reducing the signal strength or causing Attenuation( a reduction or loss in signal strength which occurs when there is a transmission of signals over long distances).

An example is a Radio repeater.

Who do many employees think is responsible for safety in the workplace

Answers

Answer:

Supervisors.

Explanation:

Supervisors have an overall responsability to ensure the safety of the workers. They must take every precaution reasonable in the circumstances the worker is found in.

what does this mean, i am so confused- Explain the importance of identifying the purpose/use for pre-production documents

brainiest to be given

Answers

Answer: These are mostly used in interior design, fashion design, and advertising. they are often used to generate ideas for a client to meet their approval before making the final product. It can help in terms of planning because it could be used to create a design or a theme.

Explanation: yw

why are medical related professions and human resources important? ​

Answers

Answer:

See below.

Explanation:

Medical related professions are identified as one of the core building blocks of a healthcare system. The role of "medical related professionals" in healthcare industry is confined to managing safety and legal issues, ensuring efficient performance, and developing problem solving and decision-making skills.

Assume you need to create a presentation on the effects of global warming. Keeping the topic in mind, you need to
focus on certain key guidelines while creating the presentation. In a table, list those appropriate guidelines that you
would follow to create an effective presentation. Your table should have guidelines related to image choices, font
size for the heading and body text, background and text color for the slide, number of bullet points you will use,
and number of words per line. Also, provide your rationale about the choices for these elements.

Answers

Answer:

................................................................................................

Explanation:

Find the error in the statement below.
if height_variable > 59;
print("You can ride this roller coaster.")
The opening parenthesis should be at the beginning of the second line.
The second line should not be indented.
The semi-colon should be a colon.
The > should be a <

Answers

Answer:

The semi-colon, should be a colon

Explanation:

The error in the statement below is a semi colon should be a colon.

What is error?

Error is defined as a violation of a code of conduct due to ignorance or imprudence. A bug is a mistake in computer data. An mistake, flaw, failure, or fault in a computer program or system that results in it producing an inaccurate or unexpected result or behaving in an unexpected manner is known as a software bug.

The second line should begin with the opening parenthesis. There is no need to indent the second line. if the measurement tool or instrument is the same between the two operators. It's not required for two operators to produce results that are similar. There are three different sorts of faults: burst errors, multiple bit errors, and single bit errors.

Thus, the error in the statement below is a semi colon should be a colon.

To learn more about error, refer to the link below:

https://brainly.com/question/19575648

#SPJ5

John recently worked on a project about various programming languages. He learned that though procedural language programs are useful, they have disadvantages too. What is a disadvantage of programs written in procedural languages? A. Programs do not represent data complexity. B. Programs take more time to execute. C. Programs are prone to security threats. D. Programs do not interface with multiple platforms.

Answers

Answer:

Option A  Programs do not represent data complexity.

Explanation:

In procedural languages like C, it doesn't support object oriented design that could encapsulate data in an object that entails a set of relevant attributes and methods which can represent an entity in real life better. This means the procedural language is limited by creating an object-like data structure that can represent data complexity. The procedural language only support the running a program by following a set of instructions in order.

How many different name servers need to be visited in order to find location of www.flamingflamingo.eu including ROOT server

Answers

Answer:

10

Explanation:

How do you access the dark web? What are the negatives of doing this?

Answers

the dark web is illegal and therefore people can hack you, obtain your information (identity theft) etc.

A friend tells you that they cannot afford to pay for the standardized tests that need to be taken to apply for college and military academies. How could you respond?

Answers

Answer:

you could respond by giving your money to them.

Explanation:

A customer seeks to buy A new computer for private use at home. The customer primarily needs the computer to use the microsoft powerpoint application for the purpose of practising representation skills. As a salesperson what size hard disc would you recommend and why?

Answers

Answer:

I think 128GB of storage would be fine.

Explanation:

It sounds like this person he's only looking to do basic tasks as you would still have room to do other things.

Jonah has finished his assignment and now wants to save his work with the title "Renaissance."
Which steps should Jonah follow to accomplish this?
navigate to the Quick Access bar, click the Save icon
navigate to the backstage view, click the Save As icon
click the File tab, click Save, type in the title, click Save
click the File tab, click Save As, type in the title, click Save

Answers

Answer:

Your answer is D.click the File tab, click Save As, type in the title, click Save

Explanation:

Answer:

C

Explanation:

took the quiz

1.
When did text messages over cell phones first begin to occur? |
I

Answers

it was first used on December 3rd, 1992

hope this helps

Type the correct answer in the box. Spell all words correctly.
Natasha came across a website that had a building image, where each window in the building was clickable. She clicked on one of the windows,
Upon clicking the link information was sent to another computer. This computer processed the information and returned the appropriate page
about a window. Which attribute is used in this case to identify the type of image map?
The
attribute is used in this case to identify the type of image map.

Answers

Answer:

Redirection

Explanation:

This is something called redirection, you can sometimes get paid for it, or just some sort of reward, sometimes even a virus scanner.

Answer:

The  ismap  attribute is used in this case to identify the type of image map.

Explanation:

Using ismap indicates to your browser that the link is processed by another computer (server). Once the server processes the information about the link, it returns the appropriate page.


Which of the following are peripherals?
Rasterize
Sneaker-net
Media access control
None of the above

Answers

Answer:

D

Explanation:

A peripheral or peripheral device is ancillary device used to put information into and get information out of the computer.

Answer: D

Explanation:

1...difference between repeater and hub .
2... difference between bridge and router .​

Answers

Answer:

Explanation:I don't say you have to mark my ans as brainliest but if you think it has really helped you plz don't forget to thank me..

1. A repeater amplifies and extends signals, while a hub is a multi-port device that broadcasts data to all connected devices, creating a shared collision domain.

2. A bridge connects network segments at the data link layer and forwards packets based on MAC addresses, while a router connects networks at the network layer and forwards packets based on IP addresses.

1. Difference between a Repeater and a Hub:

Repeater:

Operates at the physical layer (Layer 1) of the network.

Regenerates and amplifies network signals to extend their reach and overcome signal degradation.

Does not inspect or manage network traffic.

All devices connected to a repeater share the same collision domain.

Transparent to network protocols and does not interpret data.

Hub:

Operates at the physical layer (Layer 1) of the network.

Multi-port device that broadcasts incoming data to all connected devices.

Creates a single collision domain, causing devices to contend for network bandwidth.

Lacks intelligent traffic management and filtering capabilities.

Limited in terms of network performance and scalability due to shared bandwidth

2. Difference between a Bridge and a Router:

Bridge:

Operates at the data link layer (Layer 2) of the network.

Connects and joins separate network segments or LANs to form a single logical network.

Forwards data packets based on MAC addresses.

Builds and maintains a table (MAC table) of MAC addresses and associated network interfaces.

Bridges are commonly used to reduce network congestion and improve performance within smaller networks.

Does not perform IP address-based routing.

Router:

Operates at the network layer (Layer 3) of the network.

Connects multiple networks and routes data packets between them based on IP addresses.

Determines the best path for packet delivery using routing tables and protocols (e.g., RIP, OSPF, BGP).

Performs network address translation (NAT) and offers features like firewall and network traffic management.

Enables communication between networks with different IP address schemes.

To learn more on Bridge and Router click here:

https://brainly.com/question/13486343

#SPJ4

What G-Suite Apps integrate with Forms
Google Classroom
Google Sites
Google Sheets
All of the Above

Answers

Answer:

google sheets

Explanation:

This is a python program.

I managed to get this program to say hello to a user after they input their first and last name, however, I cannot manage to get the program to tell the user how many letters are in the user's name.

Answers

Answer:

word = input("Type your name: ")

print(len(word))

Explanation:

The len function will count all the chars in the string.

which of the following actions do not contribute to recommedations you see online

Answers

Answer:

All of these actions contribute to recommendations you see online.

What invention do you wish existed during this quarantine? (I have to do a sales pitch for an invention in Spanish, the invention can be related to quarantine or after quarantine too.)

Answers

Answer:

Money

Explanation:

Car Insurance

Trevor works for many different clients and creates a wide variety of business publications. Which two factors in the list below have the most influence over his layout designs? (multiple choice)


audience

color scheme

dynamic tension

goals

Answers

Answer:

• Audience

• Goals

Explanation:

Trevor works for many different clients and creates a wide variety of business publications. The two factors in the list below have the most influence over his layout designs are:

a) Audience

From the above question,we can see that Trevor creates different publications for different clients. This is because, the taste, wants or desires of each clients varies. It is not the same. Therefore, the layout of his publication is influence by the target audience that the publication is meant for.

For example, a client may want a publication with big fonts because the target audience who would be reading the publication are elderly people.

Another clients may want his publication designed with smaller fonts and a unique font style.

It is Trevor's duty to make sure that he caters to the needs his client's target audience by satisfying their desires, however different they may be.

b) Goals

The goals of the publication is one of the things that can influence the layout design of Trevor's publication. Let's take for example, a client is creating a publication to reach the teen society, probably a publication on pop music or fashion, this is the goal. Trevor would have to create the publication such that it attracts teens. The layout of the publication would have to come in catchy colours, interesting fonts, musical symbols that would catch the eye of teens and make them want to read such publication.

Within a word processing program, predesigned files that have layout and some page elements already completed are called
text boxes
templates.
frames
typography

Answers

Answer:

I think it's B) templates

     

                   Sorry if it's wrong I'm not sure!!

Explanation:

Within a word processing program, predesigned files that have layout and some page elements already completed are called: B. templates.

In Computers and Technology, word processor can be defined as a processing software program that is typically designed for typing and formatting text-based documents. Thus, it is an application software that avail end users the ability to type, format and save text-based documents such as .docx, .txt, and .doc files.

A template refers to a predesigned file or sample in which some of its page elements and layout have already completed by the software developer.

In this context, predesigned files in a word processing program, that have layout and some page elements already completed by the software developer is referred to as a template.

Read more on template here: https://brainly.com/question/13859569

What is the disadvantage of server based network?

Answers

Answer:

do u have different networks too?

Answer:

The disadvantage of server based network are:

If one of the servers go down all the users are affected and it may bring the whole network down.More expensive to set up and maintain.ExpensiveAdministrating specialist staff such as a network manager is needed.

Which of the following is NOT correct?
A. Computer is capable of processing only
digital signals.
B. Appropriate software is required for
processing the data.
C. Computer is capable of processing digital
as well as analog signals.
D. Computer is capable of analyzing both
quantitative and qualitative data.

Answers

Answer:A

Explanation:

Discuss the evolution of file system data processing and how it is helpful to understanding of the data access limitations that databases attempt to over come

Answers

Answer:

in times before the use of computers, technologist invented computers to function on disk operating systems, each computer was built to run a single, proprietary application, which had complete and exclusive control of the entire machine. the  introduction and use of computer systems that can simply run more than one application required a mechanism to ensure that applications did not write over each other's data. developers of Application addressed this problem by adopting a single standard for distinguishing disk sectors in use from those that were free by marking them accordingly.With the introduction of a file system, applications do not have any business with the physical storage medium

The evolution of the file system gave  a single level of indirection between applications and the disk the file systems originated out of the need for multiple applications to share the same storage medium. the evolution has lead to the ckean removal of data redundancy, Ease of maintenance of database,Reduced storage costs,increase in Data integrity and privacy.

Explanation:

Phillip is using an optical device to look at the stars. He knows that it uses mirrors, but cannot remember its name. He is using a ......

refracting telescope
reflecting telescope
refracting microscope
reflecting microscope

EXPLAIN WHY YOU CHOOSE THAT ANSWER​

Answers

Answer:

He is using a REFLECTING TELESCOPE.

Explanation:

A telescope is an optical instrument that is used by scientists or astronomers to view objects that are very faraway such as objects that are in space. For example: the galaxies, the stars, the moon, the planet e.t.c.

The mode of operation of a telescope is, a telescope makes use of either a lens or mirrors which are curved. This lens or mirrors focus the light rays from the faraway objects and uses them to form an image.

We have two types of telescopes.

a. Refracting Telescope: Another name for a refracting telescope is a refractor. The refracting telescope uses a lens to focus the rays of light and form an image.

b. Reflecting telescope: This is also called a reflector. It is different from the refracting telescope because it makes use of curved mirrors to focus the rays of light and form an image. The images formed by reflecting telescopes are very big and clear. Those images are also free from any form of abberation such as chromatic abberation.

From the above question, Phillip is using an optical device to look at the stars. He knows that it uses mirrors, but cannot remember its name. He is using a REFLECTING TELESCOPE. The reason for my answer is because it is said in the question that the optical device makes use of mirrors and it is only a reflecting telescope that uses mirrors.

What are the benefits of using disk cleanup as part of regular maintenance on a computer? Check all of the boxes that apply.

Trash is emptied to clear space on the hard drive.

Files that are no longer needed are deleted to clear space and help the computer run faster.

Accumulated temporary files are deleted to help the computer run faster.

Unnecessary program files that may slow down the computer are deleted.

Answers

Answer:

all of the above

Explanation:

Answer:

Trash is emptied to clear space on the hard drive.

Files that are no longer needed are deleted to clear space and help the computer run faster.

Accumulated temporary files are deleted to help the computer run faster.

Unnecessary program files that may slow down the computer are deleted.

Explanation:

It's all of the above

How was the addition of an improvement over early web design?
Webpages could finally incorporate tables into the design.
Webpage layout could finally format content blocks separately.
Webpage layouts were finally designed using HTML code.
Webpages could finally incorporate images as layout elements.

Answers

Answer- B: Webpage layout could finally format content blocks separately.

Explanation: Found it on Quizlet.

Answer:

Webpage layout could finally format content blocks separately.

Explanation: this the answer on edge.

Other Questions
What are some examples of physical vs chemical weathering Even if you are not intoxicated and you are under the age of 21 and have any detectable amount of alcohol in your system while operating a motor vehicle, you may be charged with: Both Circe and calypso are goddesses who fall in love with Odysseus yet the two are very different. How do the characters and actions of Circe and calypso differ? 2. What did Francois make for Buck's feet?(Ch. 3) You bought a magazine for $5 and 20 erasers. If you spent a total of $11, how much did each eraser cost When Apollo saw Icarus flying, he thought Icarusresembled a great swan. In contrast, Apollo thoughtDaedalus' flight was?A. swifter and more graceful.B. slower and clumsier.C. higher and bolder.D. braver and much riskier. Help ASAP will give brainly Jack and his cousin Emma are picking apples in their grandparents' orchard. Jack has filled 11 baskets with apples and is filling them at a rate of 5 baskets per hour. Emma has 8 full baskets and will continue picking at 6 baskets per hour. Once the cousins get to the point where they have filled the same number of baskets, they will carry them to the barn and then eat lunch. How long will that take? How much fruit will they have picked by then? Do charges exit a circuit with less energy than they had when they entered the circuit Lois considers herself an act utilitarian. Accordingly, which of the following statements is Lois MOST likely to make? 13.12 / .10 equals what please help me Match each term with its correct definition.ethnic groupto cause something to stopfunctioning in the desired waydestabilizea country with a population thatshares the same origins and cultureadvocateto speak or write in support of anargumentnation-statea group of people who share thesame customs, culture, and origins The cycling of carbon between the living and non-living parts of the Earth system is an important result of which of the following processes?a. Herbivores digesting plant material to get nutrientsb. Plants and animals exchanging gases with the atmospherec. Condensation of water vapor leading to cloud formationd. Methane entering the atmosphere from volcanic activity write an acrostic poem about quarantine BRAINLIST AND 30 PTS ASAP In CDE, the measure of E=90, DC = 5, CE = 4, and ED = 3. What ratio represents the sine of C? This graph relates the length in centimeters to the approximate length in inches. Lengths in Centimeters and Inches a coordinate plane, the x-axis is labeled Length in centimeters and the y-axis is labeled Length in inches. A line goes through points (0, 0), (1, 0.39), (2, 0.78). According to the graph, which must be true? A length of 8 centimeters is approximately 3.12 inches. A length of 3 inches is approximately 1.17 centimeters. A length of 5 centimeters is approximately 1.56 inches. A length of 6 inches is approximately 2.34 centimeters. A sample of tin (Cp = 0.227 J/gC) is placed in a freezer. Its temperature decreases from 15.0C to 10.0C as it releases 543 J of energy. What is the mass of the sample? Round your answer to three significant figures. gA sample of tin (Cp = 0.227 J/gC) is placed in a freezer. Its temperature decreases from 15.0C to 10.0C as it releases 543 J of energy. What is the mass of the sample? Round your answer to three significant figures. gA sample of tin (Cp = 0.227 J/gC) is placed in a freezer. Its temperature decreases from 15.0C to 10.0C as it releases 543 J of energy. What is the mass of the sample? Round your answer to three significant figures. Use the quadratic function to predict f(x) if x equals 2.f(x) = -3x^2 + 180x - 285 what is the equivalent expression for a+a+a