Average Calculator in JAVA || Using Correct Numeric Data Types in JAVA

Publicado el: 03 mayo 2022
en el canal de: Crazy Programming
51
7

In this video, a program is created to use correct numeric data types and to find average of numeric data types in Eclipse IDE, as the requirements of this program are described below:

(Turn on caption for detail)

Program Name: Averages

In this task, you are being asked to write a program that calculates the average of numbers.
1. Create a program called Averages.java having the main() part.
2. Create five integer variables called number1 to number5. Assign proper values to these five variables.
3. Create a variable called sumIntegers and assign the sum of all five variables to sumIntegers.
4. Create a variable called averageIntegers, and assign the average of all five variables to averageIntegers.
5. Use the formula: average = sum of all numbers / count of numbers.
6. Print all five numbers, their sum, and their average by giving appropriate messages.
7. Repeat the same exercise for five double variables (number6 to number10).
8. Create variables to store their sum and calculate their average.
9. Print all five numbers, their sum, and their average by giving appropriate messages.
.
.
If you need any help in java programs then contact me through the email given below:
crazy.programming.life@gmail.com
.
Don't forget to subscribe to "Crazy Programming" and do like and comment the video.
.
.
Thanks for watching.


En esta página del sitio puede ver el video en línea Average Calculator in JAVA || Using Correct Numeric Data Types in JAVA de Duración hora minuto segunda en buena calidad , que subió el usuario Crazy Programming 03 mayo 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 51 veces y le gustó 7 a los espectadores. Disfruta viendo!