Good Try! Let me explain you why you are getting the above error. Here the java compiler is expecting double datatype but you have used float datatype. In java all ...