00:01
Hello student, here is the c+ + program that choose the temperature of the city for a week, allow you to choose between the fahrenheit and celsius units, convert the temperature and find the hottest day and count the days when the same temperature.
00:16
So with that, as it takes the user to the input the temperature for a week and choose whether temperature are in a fahrenheit or in celsius and convert the temperature to the other unit, find the hottest day and count the days when the same temperature as user provided one.
00:36
So for that, here the weekdays are constant as weekdays is set to 7 representing the number of days in a week.
00:43
The functions are as convert the fahrenheit to the celsius, celsius to fahrenheit and count the same temperature.
00:54
So these are used to convert the temperature from fahrenheit to celsius and this conversion is used to convert the temperature from celsius to fahrenheit and find the hottest day, finds and returns the hottest temperature among the input temperature.
01:12
As they count same temperature, where it counts the number of days when the same temperature as the target temperature.
01:20
So in a main method, so in the main function where you can see here, it mainly focus on the array temperature of the size of the weekdays is declared to store the daily temperature.
01:34
A variable unit is declared to store the temperature unit.
01:39
The program from the users to the input temperature for a week and the temperature unit respectively that is fahrenheit or the celsius as then it then displays the converted temperature and finds the days, the display finds and display the hottest days temperature using the find hottest, using the find hottest day function.
02:04
So with that, as with that allow the users to target the input target temperature to the count number of days with the same temperature using the count same temperature function.
02:16
As the program for this respectively output will be as for the example entering for the day 1, day 1 with the 78, day 2 with the 82, day 3 with the 75, day 4 with the 88, day 5 with the 99, day 6 with the you can say as 79 as the 79 and day 7 with the 85...