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
Why can’t I see one individual’s questions in the app through their profile, but I can see their questions on the website?
Mumz [18]

Answer:

I think thats just a software issue. i have the same problem

Explanation:

7 0
3 years ago
Read 2 more answers
What are the binary symbols?
alexgriva [62]

Answer:

Explanation:

a binary number is a number expressed in the base-2 numeral system or binary numeral system

4 0
3 years ago
Read 2 more answers
Mary uploaded some images on her website. She chose an image and downloaded it. She found that the image she saw on screen did n
zalisa [80]

Answer:

A.

Some image resolution was lost while uploading it

As she uploaded them on her website not downloading as choice B&D show while E is false and C is rarely occur

7 0
3 years ago
Which of the following is something that would NOT appear in the Reviewing pane?
Sophie [7]

Answer:

A

Explanation:

7 0
3 years ago
When writing HTML code, what is meant by 'syntax'?​
aleksandrvk [35]

Answer:

   Syntax is essentially the punctuation and grammar rules for a computer language.

Explanation:

  Certain characters and words have special meanings and must appear in a particular order for the computer code to make any sense. A simple example from line 3 in Figure 2.2 is the piece of HTML code <head>.

8 0
3 years ago
Other questions:
  • What is the best way to protect computer equipment from damage caused by electrical spikes?
    9·2 answers
  • Does the steelseries arctis 9x work with a pcie bluetooth card in windows
    13·1 answer
  • Assuming your computer only has one network card installed; explain how your virtual machine is able to share that card with you
    10·1 answer
  • 14. What is the simplest way to permanently get rid of an unwanted file?
    9·1 answer
  • Write a program in c++ to displaypascal’s triangle?
    14·1 answer
  • The major objective of this lab is to practice class and object-oriented programming (OOP), and separate files: 1. We will reuse
    5·1 answer
  • Celeste is writing a paper. However, two pages in, her computer shuts down unexpectedly. She never saved her paper, and all her
    12·2 answers
  • What is the correct way to write h1 tag
    12·1 answer
  • A large number of genetic codes are stored as binary values in a list. Which one of the following conditions must be true in ord
    5·2 answers
  • Please tell fast plzzzzzzzzzzz.​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!