declare double reference variable temperatureref and initialize temperatureref to temperaturevalue. ex: if the input is 30.5, then then output is: referenced temperature is 30.5.