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
pogonyaev
4 years ago
4

Write a loop to print all elements in hourly_temperature. Separate elements with a -> surrounded by spaces. Sample output for

the given program with input: '90 92 94 95' 90 -> 92 -> 94 -> 95 Note: 95 is followed by a space, then a newline.
Computers and Technology
1 answer:
vekshin14 years ago
5 0

Answer:

The program to this question can be described as follows:

Program:

#include <iostream> //defining header file

using namespace std;

int main() //defining main method

{

int hourly_temperature[] ={90,92,94,95}; //defining integer array

int len= sizeof(hourly_temperature)/ sizeof(hourly_temperature[0]); //calculate length of array

for(int i=0;i<len-1;i++) //loop to print its value

{

   cout<<hourly_temperature[i]<<"->"; //print value

}

cout<<hourly_temperature[len-1]; //print last element value

return 0;

}

Output:

90->92->94->95

Explanation:

In the given code an integer array "hourly_temperature" is declared, which holds some value, that is "90,92,94,95", in the next step, an integer variable "len" variable is declared, that holds array size.

  • Then a for loop is declare that uses the "i" variable, which starts from 0 and ends when the "i" value is less than "len-1".
  • Inside the loop array values are printed with the "->" sign, and outside the loop, the last variable value is printed.  
You might be interested in
The danger in using soy solvents is that they: A) Are not approved by the FDA B) Take paint off of surfaces where used C) Are no
tatuchka [14]

Take paint off surfaces

sp2

8 0
3 years ago
Read 2 more answers
An effective problem statement ensures that
jeka94

Answer:

C: The software design effectively addresses the issues.

Explanation:

It's the correct answer.

5 0
4 years ago
I was scripting for my game design clas and i was just creating a story based game. its not really a question but could you guys
Natali [406]

Answer: sure thing

Explanation:

7 0
3 years ago
How do i open new tab
ipn [44]
Using a keyboard control pushing down the control (ctrl) key along with the (T) key will automatically open up a new tab
5 0
3 years ago
Read 2 more answers
Which type of computer application is apple keynote? a. word processor b. spreadsheet c. presentation d. database e. multimedia
maksim [4K]

The type of computer application which apple keynote is, is: c. presentation.

<h3>What is a presentation application?</h3>

A presentation application can be defined as a type of computer application which is designed and developed to avail its end users an ability to create various slides that comprises both textual and multimedia information, which are typically used during a presentation.

This ultimately implies that, apple keynote is an example of a presentation application which is used on computers.

Read more on presentation application here: brainly.com/question/26404012

#SPJ4

7 0
2 years ago
Other questions:
  • Description A data retrieval tool that finds specified data within a database A collection of records All of the fields for a si
    7·1 answer
  • When computing the cost of the basket of goods and services purchased by a typical consumer, which of the following changes from
    11·1 answer
  • Which phrase refers to the collection of geospatial data through the use of satellite images/pictures?
    13·1 answer
  • A ________ is a powerful analytical tool to size up Apple Inc.'s competitive assets in order to determine whether or not those a
    9·1 answer
  • Scanning low allows you to locate __________ before you hit them
    13·1 answer
  • g Statistics are often calculated with varying amounts of input data. Write a program that takes any number of non-negative inte
    12·1 answer
  • A large company has a LAN. The manager of the company wants to change it to a WAN
    10·1 answer
  • Match the term to the correct definition.
    6·1 answer
  • Help FAST PLS in complete sentences discuss the process used to determine your credit score. Do you think it is fair? Why or why
    14·1 answer
  • 8. Software ____ are individual programs that can be purchased, installed, and run separately, but extract data from the common
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!