title: Getting Random Scientific numbers instead of inputs
body: <p>Like the title states, I am getting random scientific numbers when I store them in an array and try to output them . I'm not sure why they are changing as there were no operations being done on the numbers. Due to the numbers changing I get the incorrect Fahrenheit temperature.</p>
  
  <p>Sample input: days 0-6 = 12
  I get sunday = 0, monday = 1.32657e. etc The numbers are random, not even the same although the input stays the same</p>
  
  <pre><code>int main()
  {
      const int DAYS_OF_WEEK = 7;
      const double MAXIMUM_TEMPERATURE = 60;
      const double MINIMUM_TEMPERATURE = -90 ;
      double temperature;
      int dayCount;
      double fahrenheit;
      double temperatures[6];
      string daysOfWeek[] = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"};//string array for the days of the week
  
      for(int dayCount = 0; dayCount &lt; DAYS_OF_WEEK; dayCount++)
      {
          cout &lt;&lt; "Please enter the Temperature for " &lt;&lt; daysOfWeek[dayCount] &lt;&lt; " in Celsius: ";  // re-prompt for temperature
          cin &gt;&gt; temperature;
  
          while(cin.fail())// checks to see if cin failed
          {
              cin.clear(); 
              cout &lt;&lt; "\nInvalid input. Only numeric values, please try again. "; // re-prompt
              cin &gt;&gt; temperature; // try to get the value again
              fflush(stdin); //clear input buffer
          }//end while
  
          if(temperature &gt; MAXIMUM_TEMPERATURE || temperature &lt; MINIMUM_TEMPERATURE)
          {
              cout &lt;&lt; "\nInvalid input. Temperature must be between " &lt;&lt; MINIMUM_TEMPERATURE &lt;&lt;" and " &lt;&lt; MAXIMUM_TEMPERATURE &lt;&lt;". Please try again." &lt;&lt; endl;// re-prompt user for temp between ranges
              cin &gt;&gt; temperature;
          }
          else
          {
              temperature = temperatures[dayCount];
          }//end else
      }//end for
      cout &lt;&lt; "Temperatures for the Week.\n_________________________________________________";
  
      for (int dayCount = 0; dayCount &lt; DAYS_OF_WEEK; dayCount++)
      {           
          cout &lt;&lt; "\nTemperature for " &lt;&lt; daysOfWeek[dayCount] &lt;&lt; " in Celsius is: " &lt;&lt; temperatures[dayCount];
          fahrenheit = (5.0/9.0) * (temperatures[dayCount] + 32);
          cout &lt;&lt; "In Fahrenheit it is:" &lt;&lt; fahrenheit;
      }   //end for
  
      return 0;
  }//end main
  </code></pre>