Java Code for Engine Horsepower

This java programming code is used to find the engine horsepower . You can select the whole java code by clicking the select option and can use it. When you click text, the code will be changed to text format. This java program code will be opened in a new pop up window once you click pop-up from the right corner. You can just copy, paste this java code and use it to find the engine horsepower .

import java.util.*;
import java.lang.*;
import java.lang.Math.*;

public class Engine_Horsepower
{  
    public static void main(String args[])
    {
    double HP, weight,velocity;
    weight=23;
    velocity=34;
    HP=weight * Math.pow((velocity/234),3);
    HP=(double)Math.round(HP*10000000)/10000000;
    //HP=floorf(HP* 100) / 100;   
    System.out.println("Weight :"+Math.round(weight));
    System.out.println("Velocity :"+Math.round(velocity));
    System.out.println("Horse Power (HP) :"+HP);
    }
}
Other Programming Codes
Online Calculator : Engine Horsepower Calculator
Click on the select code link to copy and paste this free java program code for engine horsepower calculator.

english Calculators and Converters


Sitemap