Tag Archives: Dis

ICSE Java Program -Java Program to develop a Calculator using Switch Statement

ICSE Java Program -Java Program to develop a Calculator using Switch Statement¬† Java Program to develop a Calculator using Switch Statement. import java.io.*; class Calculator_Switch { public static void main(String args[])throws IOException { DataInputStream dis = new DataInputStream(System.in); int a,b,c,res=0; char op; String str; System.out.println(” Enter three Numbers : “); a=Integer.parseInt(dis.readLine()); b=Integer.parseInt(dis.readLine()); System.out.println(” Enter the […]

ICSE 10th Standard Notes – Conditional Operator in java – ICSE Conditional Operator with example

ICSE 10th Standard Notes – Conditional Operator in java – ICSE Conditional Operator with example Conditional Operator :- The conditional operator is an alternative to the If-Else Statement. It is also known as the Ternary Operator in Java. Syntax :- expression1 ? expression2 : expression3 Here initially the expression1 is evaluated. It the result of […]

ICSE Java Program – Java Program to develop a Calculator using Ladder If Statement

ICSE Java Program – Java Program to develop a Calculator using Ladder If Statement Java Program to develop a Calculator using Ladder If Statement. import java.io.*;   class Calculator { public static void main(String args[])throws IOException { DataInputStream dis = new DataInputStream(System.in); int a,b,c,res; char op; System.out.println(” Enter three Numbers : “); a=Integer.parseInt(dis.readLine()); b=Integer.parseInt(dis.readLine()); System.out.println(” […]

ICSE Java Program – Java Program to given Character is a Digit, Letter or a Special Character If-Else Statements

ICSE Java Program – Java Program to given Character is a Digit, Letter or a Special Character If-Else Statements import java.io.*; class Check1 { public static void main(String args[])throws IOException { DataInputStream dis = new DataInputStream(System.in); char ch ; System.out.print(” Enter a character : “); ch = (char) dis.read(); if(ch>=’a’&& ch<=’z’ || ch>=’A’&& ch<=’Z’) { […]

ICSE 10th Standard Notes – Nested If Statement in java – ICSE Nested If Statement with example

ICSE 10th Standard Notes – Nested If Statement in java – ICSE Nested If Statement with example A nested If is an If that has another if in its body or in the body of the else block or in both. Syntax :- if(expression) { True Block of Statements if(expression) { __________ __________ } else […]

ICSE Java Program – Java Program to whether the number is even or odd using If-Else statements

ICSE Java Program -¬†Java Program to whether the number is even or odd using If-Else statements Java Program to whether the number is Even Or Odd using If-Else Statements. import java.io.*;   class EveOdd { public static void main(String args[])throws IOException { DataInputStream dis = new DataInputStream(System.in); int n; System.out.print(” Enter a Number : “); […]

ICSE 10th Standard Notes – If-Else Statement in java – ICSE If-Else Statement with example

ICSE 10th Standard Notes – If-Else Statement in java – ICSE If-Else Statement with example If-Else Statement :- In this If-Else Statement, if the expression evaluates to True, then the True Block of Statements are executed, otherwise the False block of statements are executed. Syntax :- if(expression) { True Block of Statements _________________________ _________________________ } […]

ICSE Java Program – Java Program to find the largest of three numbers using Simple If Statement

ICSE Java Program – Java Program to find the largest of three numbers using Simple If Statement Java Program to find the largest of three numbers using Simple If Statement. import java.io.*;   class Simple_If { public static void main(String args[])throws IOException { DataInputStream dis = new DataInputStream(System.in); int x,y,z,max=0; System.out.println(” Enter three Numbers : […]

ICSE 10th Standard Notes – Simple If Statement in java – ICSE Simple If Statement with example

ICSE 10th Standard Notes – Simple If Statement in java – ICSE Simple If Statement with example Simple If Statement :- In the Simple If Statement, the expression enclosed within the parentheses are executed. If the expression evaluates to True then the body of If Statement is executed, otherwise it is ignored. Syntax :- if(expression) […]

ICSE Java Programs – Java Program to input the name and ticket amount for the customer and calulate the discount amount and the net amount to be paid

ICSE Java Programs – Java Program to input the name and ticket amount for the customer and calulate the discount amount and the net amount to be paid /* * Shasha Travels Pvt. Ltd gives the following discount to its customers : * Ticket Amount Discount * Above 70000 18% * 55001 to 70000 16% […]