clear //given Va=-10 //V W=300 //J q=3.0 //C //Calculation V=(W/q)+Va //Result printf("\n The value of V is %0.3f Volts", V)