How to
Build Your Future
Coming soon
Search
-
QuestionHow do I write 5.365 as a percentage?Community Answer536.5% (original number times 100).
-
QuestionShould I use float instead to find percentages? (It's for an exam.)Community AnswerIt really depends on the application. A float variable will give you more precise values with decimals, and an int variable will give you rounded whole numbers.
-
QuestionHow do I get decimal points instead of zero?Community AnswerYou use a float or double instead of int. A double is more accurate, but you won't necessarily use that more than a float.
-
QuestionHow do I make a java program to find sums and averages?Community AnswerThe above shown code can perform the averages, but to perform sums, you would simply follow the above code, use it to take more inputs from user and store them in variables. Then once they are stored, you would simply do variableResult = VaraibleOne + VariableTwo + VariableThree + ... Once you have the variableResult all summed up, you can then using the above shown average code. Better practice would be first create a SUMS only program and then combine both Sums and Averages into a single program.
-
QuestionHow to calculate percent to decimal in Java?DanielCommunity AnswerYou would use the division operator to divide the percentage by one hundred. Example: System.out.println(50/100); 50% equals 50/100, which is 0.5.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit