- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

# Take the data giving the minimum and the maximum temperature of various cities given in the beginning of this Chapter (Table 3.1). Plot a double bar graph using the data and answer the following:

$(i)$. Which city has the largest difference in the minimum and maximum temperature on the given date?

$(ii)$. Which is the hottest city and which is the coldest city?

$(iii)$. Name two cities where maximum temperature of one was less than the minimum temperature of the other.

$(iv)$. Name the city which has the least difference between its minimum and the

maximum temperature.

**Given:**

The minimum and the maximum temperature of various cities.

**To do:**

We have to plot a double bar graph using the data and answer the given questions.

**Solution:**

The given table $3.1$ is as follows:

Temperature of cities as on 20.6.2006 |

City | Maximum temperature | Minimum temperature |

Ahmedabad | $38^{\circ}C$ | $29^{\circ}C$ |

Amritsar | $37^{\circ}C$ | $26^{\circ}C$ |

Banglore | $28^{\circ}C$ | $21^{\circ}C$ |

Chennai | $36^{\circ}C$ | $27^{\circ}C$ |

Delhi | $38^{\circ}C$ | $28^{\circ}C$ |

Jaipur | $39^{\circ}C$ | $29^{\circ}C$ |

Jammu | $41^{\circ}C$ | $26^{\circ}C$ |

Mumbai | $32^{\circ}C$ | $27^{\circ}C$ |

The double bar graph using the data:

Difference between the maximum and minimum temperature on 20.06.2006

Ahmedabad$=(38^{\circ}C-29^{\circ}C)$

$=9^{\circ}C$

Amritsar$=(37^{\circ}C-26^{\circ}C)$

$=9^{\circ}C$

Bangalore$=(28^{\circ}C-21^{\circ}C)$

$=7^{\circ}C$

Chennai$=(36^{\circ}C-27^{\circ}C)$

$=9^{\circ}C$

Delhi$=(38^{\circ}C-28^{\circ}C)$

$=10^{\circ}C$

Jaipur$=(39^{\circ}C-29^{\circ}C)$

$=10^{\circ}C$

Jammu$=(41^{\circ}C-26^{\circ}C)$

$=15^{\circ}C$

Mumbai$=(32^{\circ}C-27^{\circ}C)$

$=5^{\circ}C$

(i) As it is clear from the above calculation, Jammu has the largest difference in the minimum and maximum temperature on the given data which is $15^{\circ}C$.

(ii) Jammu is the hottest city with $41^{\circ}C$ and Bangalore is the coldest city with $21^{\circ}C$

(iii) Bangalore and Jaipur or Bangalore and Ahmedabad are the two cities where the maximum temperature of one was less than the minimum temperature of the other.

(iv) Mumbai has the least difference between its minimum and maximum temperature.

Maximum temperature$=32^{\circ}C$

Minimum temperature$=27^{\circ}C$

- Related Questions & Answers
- Display the minimum and maximum value of primitive data types in Java
- Sum of the series 1 + (1+3) + (1+3+5) + (1+3+5+7) + + (1+3+5+7+....+(2n-1)) in C++
- Sum of the series 1 + (1+3) + (1+3+5) + (1+3+5+7) + ...... + (1+3+5+7+...+(2n-1)) in C++
- C++ program to find the sum of the series 1 + 1/2^2 + 1/3^3 + …..+ 1/n^n
- Golang Program to Take the Temperature in Celsius and Covert it to Farenheit
- Sum of the Series 1/(1*2) + 1/(2*3) + 1/(3*4) + 1/(4*5) + ... in C++
- Sum of the series 1 + (1+2) + (1+2+3) + (1+2+3+4) + ... + (1+2+3+4+...+n) in C++
- How to find the index of the minimum and maximum value of a vector in R?
- The Maximum Data Rate of a Channel
- Program to find maximum possible population of all the cities in python
- Sum of the series 1^1 + 2^2 + 3^3 + ... + n^n using recursion in C++
- Sum of the series 1 / 1 + (1 + 2) / (1 * 2) + (1 + 2 + 3) / (1 * 2 * 3) + … + upto n terms in C++
- How to find the minimum and maximum of columns values in an R data frame?
- Find the cordinates of the fourth vertex of a rectangle with given 3 vertices in Python
- How to get beginning of the first day of this week from timestamp in Android sqlite?
- C++ program to find the sum of the series (1/a + 2/a^2 + 3/a^3 + … + n/a^n)