Dangerous heat is expected across much of the country through the Fourth of July weekend.