
[All Math library Programs From APC Class 9] import java.util.Scanner; class Q1{ public static void main(String args[]){ Scanner sc=new Scanner(Sys…
Read moreThe concept of proposition means any statement which gives result either true or false. p: "Today is cold day" so p is the propositional constant and…
Read moreDesign a class Colsum to check if the sum of elements in each corresponding column of two matrices is equal or not. Assume that the two matrices have the same …
Read moreA class Perni has been defined to accept a positive integer in binary number system from the user and display if it is a Pernicious number or not. A pernicious…
Read moreWrite a program in Java to enter the string. Count and display: The character with lowest ASCII code in lower case The character with highest ASCII code in lo…
Read moreWrite a program in Java to accept a string and display the new string after reversing the characters of each word. Sample Input: Understanding Computer Science…
Read moreMathematical Library ---------------------- The math library is present under the package java.lang. Not under the package java.math . 1) Math.sqrt() -> ret…
Read moreAlgorithm : 1)Take the last two digits of the year. 2)Divide by 4, discarding any fraction. 3)Add the day of the month. 4)Add the month's key value: JFM AM…
Read moreWAP to accept a sentence which may be terminated by either , ; ? . or !(Any other character may be ignored). The words may be separated by more than one bla…
Read moreWrite a Program in Java to input a number and check whether it is a Fascinating Number or not. Fascinating Numbers: Some numbers of 3 digits or more exhibit a …
Read more/** Money is an unit that has 2 parts, Rupees and Paise, where 100 Paise=1 Rupee. Design a class named Money whose details are as follows: Class Name : Mo…
Read moreA class defines the coordinates of a point in a plane. The details of the class are given below: class name: point Instance variables: int x,y --> de…
Read moreImplementation of Dequeue(Double ended queue) in Java class dequeue { //double ended queue int DQ[],f=-1,r=-1,size; dequeue(int size) { this.size=size; DQ = n…
Read moreWrite a program to declare a matrix A[][] of order (M × N) where ‘M’ is the number of rows and ‘N’ is the number of columns such that both M and N must be gr…
Read moreBinary File For Creating/Storing Information into the file FileOutputStream fout = new…
Social Plugin