create a 3 element integer to calculate and following min numbers max numbers total average
create a 3 element integer to calculate and following min numbers max numbers total average
Create a 10 element integer array and store some integer values display as the counting of 0. public class JavaEx { public static void main(String args[]) { int numbers[] = {10,15,0,0,6,0,0,1,6,4}; int x,count,len; count = 0; len = numbers.length; for(x= 0; x < len; x++) { if(numbers[x]==0) { System.out.println(numbers[x]); count++; } } System.out.println(count); } } above examples int numbers[] = …
in this tutorials you will be learning DataInputStream using Java.input the integer number and float number and press enter key then show output as readable integer number and float number. import java.io.DataInputStream; public class JavaEx { public static void main(String args[]) { DataInputStream in = new DataInputStream(System.in); int Intnum = 0; float Floatnum = 0.0f; try { System.out.println("Enter the Integer"); …
Assume that we have to compute and print the square root of the number. public class JavaEx { public static void main(String args[]) { double a = 10; double b; b = Math.sqrt(a); System.out.println("b " + b); } }
Input the Student name,marks for 3 subjects,calculate the avg,grade. In order to calculate the grade using following conditions.
input employee number,hourly rate calculate and display the gross payment using following condition. if the employee work more than 40 hours then he will be paid the hours work over 40 at the rate of two times than the normal rate others get the normal payment.
Input the employee name and basic salary calculate and display the netsalary using following condition if the basic salary is more than 50000 then include 10% Tax if the basic salary is more than 30000 then include 5% Tax otherwise no Tax.
this tutorial on java we are going to teach the advanced student grading system using following condition
this tutorial will teach you write the java program to calculate and display student grade system.i have written the simple example . Input the Student name,marks for 3 subjects,calculate the avg,grade. In order to calculate the grade using following conditions. if the average is greater than 50 awarded as “Pass” Other wise “Fail”
This tutorial will teach you how to make a Inventory Management System in Java and Mysql special discount calculation . This system will helpful you to learn Inventory Management System. Establish the Database Connection Connection con; PreparedStatement pst; public void Connect() { try { Class.forName("com.mysql.jdbc.Driver"); con = DriverManager.getConnection("jdbc:mysql://localhost/inventory","root",""); } catch (ClassNotFoundException ex) { ex.printStackTrace(); } catch (SQLException ex) { ex.printStackTrace(); …