Grade Computation in Java

Grade Computation in Java Example program in java that computes your final grade based on your prelim, midterm and endterm grades. It is a sort of averaging program but the e grades (prelim, midterm and endterm) does not share equal…

Divisibility Checker in Java

Divisibility Checker in Java A sample program in java that will check if a certain number is divisible with a certain number. If the result returns to be a whole number then that number is divisible to the number also…

Currency Converter Program in Java

Currency Converter Program in Java This is a sample program in java that converts currency to another currency. It is a peso to dollar, dollar to peso converter program. The user will be asked what operation he/she wants (peso to…

Money Change Solver in Java

Money Change Solver in Java The title is bit of confusing, it is not a money converter program. This program is going to compute your change based on the amount you have purchased and your payment amount. The formula is…

Get the Average of numbers in Java

Get the Average of numbers in Java Average is getting first the sum of numbers, let’s say 10 number, and then divide it to the number of numbers, it would be 10 based on our example. This is a program…

Salary Computation in Java

Compute Salary in Java This is a sample java program that will compute your salary based on the basic formula salary = (number of days work * rate per day) – deduction You are going to input your rate per…

Arithmetic operator in Java

Arithmetic operator in Java This is a sample code in java that demonstrate how the four basic arithmetic operators (add, subtract, divide, multiply) works. The program is also coded in console and gui version using swing library. The program will…

Count number of characters in Java

Count number of characters in Java This is an example of java program that will ask you to enter a string, and then the program will count the number of characters of that string. This is also coded in gui…

Sum of Two Numbers in Java

Sum of Two Numbers in Java This is an example of java program that accepts inputs (first number and second number) from the user and computes the sum of two numbers. It’s coded in two versions; the console and gui…

Posts navigation