Tag

#java basic programs

15 posts

Java Program to Find the Distance between Two Points

In this tutorial, we will write a program to find the distance between two given points in java. Before that, you should have knowledge of the following topic in Java. Operator in Java Distance Formula: The distance between two coordinates or points is calculated using the following formula. First p

October 6, 2021Read more →

Java Program to Calculate Grade of Students

In this tutorial, we will write a java program to calculate the grade of the student. Before that, you should have knowledge on the following topic in java: Java if else ladder Java switch Case Java Program to calculate and display Student Grades: The program simply takes a user input for the number

September 22, 2021Read more →

Currency Conversion Program in Java

In this section of the java program tutorial, we will learn how to write a Java Currency Converter Program and see how it works. Before we begin, let me tell you that this is a beginner’s tutorial for the currency converter program in java. Although there are many ways in which you can create

June 10, 2021Read more →

Menu Driven Program in Java

In this tutorial, we will write a program on menu driven in java using switch statement along with source code. The switch case is mostly used when it is necessary to give options to the users. If you do not know the working process of the switch case statement then click the link below. switch &#82

June 6, 2021Read more →

Java Program to print ASCII value of a Character

In this tutorial, you will learn how to find the ASCII value of a character in Java. Before that, you need to have the knowledge of the following in Java Programming. Data-types Type-Casting ASCII stands for American Standard Code for Information Interchange. It is a 7-bit character set that co

May 4, 2021Read more →

Java Program to Check for Leap Year

The following Program to Check if the Entered year is a leap year or not, the if-else statement has been used. If you want to learn about the if-else statement in Java, click the link below. If-Else statement in Java A leap year comes after every 4 years and has 366 days that year instead … Re

March 14, 2021Read more →

Java Program to Calculate the Simple Interest

Here, you will learn how to calculate the Simple Interest in Java using the Formula ((p * r * t) / 100)) where, p = Principal r = Rate of Interest t = Time Period The program takes the user input for Principal, Rate, and Time, calculates the result, and displays the result on the … Read more

March 13, 2021Read more →

Java Program to Calculate the Area of a Triangle

Here, you will learn how to calculate the Area of a Triangle using the Formula [(Base* Height)/2]. The program takes the user input for the Base and Height of a triangle, calculates the result, and displays the result on the screen. If you do not know about the operators in java, click the link belo

March 13, 2021Read more →