help me orangize the following c++ language source code "void relay_compute(void) {

	switch (byte_tempC_state) {

	case 1:  //  Temp_1 degC

		if ( flag_ktype_ctrl ) {

			int tempc = ktype_tempc * 100; // convert K-Probe float point Temperature to int for switch case selection
			switch ( tempc ) {
			case 500 ... set_1_tempc_1_pt:
				//Output = 8000;   // Not in 8000 full energy heating for avoiding temperature marking error
				scr_heatup_count = scr_max_count;
				flag_stop_scr = false;
				break;
			case set_1_tempc_1_pt_next ... set_1_tempc_2_pt:
				//Output = 1700;
				scr_heatup_count = 24;
				flag_stop_scr = false;
				break;
			case set_1_tempc_2_pt_next  ... set_1_tempc_3_pt:
				//Output = 1400;
				scr_heatup_count = 16;
				flag_stop_scr = false;
				break;
			case set_1_tempc_3_pt_next ... set_1_tempc_4_pt:  // setpoint = 967 +/- 10 ( adc min different +/-4 )
				//Output = 900;
				scr_heatup_count = 11;
				flag_stop_scr = false;
				break;
			case set_1_tempc_4_pt_next ... 24000:
				//Output = 0;
				scr_heatup_count = 0;
				flag_stop_scr = true;
				break;
			default:
				//Output = 10;
				scr_heatup_count = 1;
				flag_stop_scr = true;
				break;

			}


		} else {
/*
			  eeprom[1] = tempc_adc_mid_up;
			  eeprom[2] = tempc_adc_mid_down;
			  eeprom[3] = tempc_adc_mainten_up;
			  eeprom[4] = tempc_adc_mainten_down;
*/
			if ( tempc_read > tempc_adc_mid_up && tempc_read <= 4050 ) { // tempc_read > eeprom[1] tempc_adc_mid_up && tempc_read <= 4050
				flag_stop_scr = false;
				flag_LE The letter r should appear at least 14 times.
user