Input the CP of a TV and rate of discount and calculate SP in Java programming

Please show the programming computer expert!!