clear// //Variables I = 0.3 //Current (in Ampere) W = 9.45 //Heat (in Joules) t = 5 //Time (in seconds) //Calculation Q = I * t V = W/Q //Voltage (in Volts) //Result printf("\n The voltage across filament is %0.3f volts.",V)