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
Sergio [31]
3 years ago
12

Write a flowchart and program that does the following: Asks the user for the average temperature in each of the last 12 months A

fter the user has entered the temperatures, the program should display them Uses a "for" loop to ask for the data, and use another "for" loop to display the data Stores the data in an array called "temperature"
Computers and Technology
1 answer:
Anit [1.1K]3 years ago
6 0

Answer:

Written in C++

#include<iostream>

using namespace std;

int main(){

float temperature[12];

for(int i =0; i<12;i++){

 cout<<"Temperature "<<1 + i<<": ";

 cin>>temperature[i];

}

for(int i =0; i<12;i++){

 cout<<"Temperature "<<1 + i<<": "<<temperature[i]<<endl;

}

return 0;

}

Explanation:

This line declares temperature as an array of 12 elements

float temperature[12];

The following loop prompts user for (and gets) input of temperature in the last 12 months

for(int i =0; i<12;i++){

 cout<<"Temperature "<<1 + i<<": ";

 cin>>temperature[i];

}

The following loop prints the input data

for(int i =0; i<12;i++){

 cout<<"Temperature "<<1 + i<<": "<<temperature[i]<<endl;

}

<em>See Attachment for flowchart</em>

You might be interested in
The statistically multiplexed wan technology that is specifically designed to carry multiple kinds of traffic (data and voice is
Flura [38]
To manage and organise multiple kinds of traffic, the wide area network statistically multiplexed technology that could be used would be the ATM. Also known as the asynchronous transfer mode, this type of connection using fixed cells in encoding data with regards to the situational traffic.
5 0
3 years ago
What is the significance of the scientific method?
Gnom [1K]
Hello there! The significance of the scientific method is that it ensures accuracy and it ensures that the experiment was done in the right order.

The scientific method is a widely accepted way of revising and rechecking the work of scientists to see if:

1. The answers match up

2. The experiment was performed correctly

3. The results are accurate

Through the scientific method, the probability is very high that things will not go wrong. The significance of this is that if the scientific method is not applied to an experiment, nobody knows the results. If nobody knows the results, there are many possible unintended consequences that could happen. Hope this helps!
6 0
1 year ago
What are the benefits of having Friends who are different from us
AURORKA [14]

You shouldn't judge anyone who is "different" because everyone's the same so the benefit would just be that you would have a friend

7 0
3 years ago
Who is tim berners-lee
Juli2301 [7.4K]

Answer:

He is a Professorial Fellow of Computer Science at the University of Oxford and a professor at the Massachusetts Institute of Technology.

6 0
3 years ago
Read 2 more answers
Im getting hit offline can someone help or give me some advice
Lubov Fominskaja [6]

Answer:

What do you mean bro?

Explanation:

4 0
3 years ago
Other questions:
  • What does Tristan need to do to add a row at the
    14·1 answer
  • Kindly answer in Just 7,8 lines please
    7·1 answer
  • Write a file path for a document file that is saved on the F drive then a folder called homework, then a folder called math. The
    12·1 answer
  • What message would you have gotten if your computer became infected with the elk cloner virus?
    7·1 answer
  • List the memory units inside and outside of the CPU, along with short descriptions of their
    11·1 answer
  • Which of these is not an application software?
    6·2 answers
  • You don't have to answer them all, just give me 2 or 3. Thanks
    7·1 answer
  • Assume variable age = 22, pet = "dog", and pet_name = "Gerald".
    6·1 answer
  • Unscramble the risks of sharing files on the Intern
    15·1 answer
  • You recently created a new network segment for the development department. Because the hosts are now on a different network segm
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!