Chandu yadav has Published 1165 Articles

Java program to count upper and lower case characters in a given string

Chandu yadav

Chandu yadav

Updated on 24-Jun-2024 17:07:04

7K+ Views

In order to count upper and lower case character we have to first find weather a given character is in upper case or in lower case. For this we would take concept of ASCII value of each character in Java. In Java as we know for each character has corresponding ... Read More

Java program to generate a calculator using the switch case

Chandu yadav

Chandu yadav

Updated on 21-Jun-2024 11:32:02

9K+ Views

The following program accepts two integer variables, takes an operator regarding the operation. According to the selected operator, the program performs the respective operation and print the result.Exampleimport java.util.Scanner; public class ab39_CalculatorUsingSwitch {    public static void main(String args[]) {       Scanner sc = new Scanner(System.in);     ... Read More

Java program to check occurrence of each character in String

Chandu yadav

Chandu yadav

Updated on 18-Jun-2024 15:18:37

18K+ Views

In order to find occurence of each character in a string we can use Map utility of Java. In Map a key could not be duplicate so make each character of string as key of Map and provide initial value corresponding to each key as 1 if this character does ... Read More

Java program to find the GCD or HCF of two numbers

Chandu yadav

Chandu yadav

Updated on 14-Jun-2024 13:21:32

28K+ Views

An H.C.F or Highest Common Factor, is the largest common factor of two or more values.For example factors of 12 and 16 are −12 → 1, 2, 3, 4, 6, 12 16 → 1, 2, 4, 8, 16The common factors are 1, 2, 4 and the highest common factor is ... Read More

HTML canvas fillRect() Method

Chandu yadav

Chandu yadav

Updated on 21-Nov-2023 21:19:37

1K+ Views

The fillRect() method of the HTML canvas is used to create a filled rectangle on the web page. The default color is black. The element allows you to draw graphics on a web page using JavaScript. Every canvas has two elements that describes the height and width of the ... Read More

HTML5 canvas ctx.fillText won't do line breaks

Chandu yadav

Chandu yadav

Updated on 20-Nov-2023 11:39:18

1K+ Views

The fillText() method draws filled text on the canvas. If you want to break lines you can do this by splitting the text at the new lines and calling the filltext() multiple times. By doing so, you are splitting the text into lines and drawing each line separately.You can try ... Read More

Use HTML with jQuery to make a form

Chandu yadav

Chandu yadav

Updated on 12-Nov-2023 11:32:28

1K+ Views

To make a form with HTML, we use the following −    Details:    Student Name    Exam Date and Time     To make a form with jQuery and HTML, add input type text as −$form.append('');A better example would be − $myform = $(""); $myform.append(''); $('body').append($myform);

Java program to find if the given number is a leap year?

Chandu yadav

Chandu yadav

Updated on 07-Nov-2023 02:58:02

63K+ Views

Finding a year is a leap or not is a bit tricky. We generally assume that if a year number is evenly divisible by 4 is a leap year. But it is not the only case. A year is a leap year if −1. It is evenly divisible by 1002. ... Read More

Classification of Computers

Chandu yadav

Chandu yadav

Updated on 02-Nov-2023 00:16:07

27K+ Views

Computer scan is broadly classified by their speed and computing power.Sr.No.TypeSpecifications1PC (Personal Computer) or Micro-ComputersIt is a single user computer system having a moderately powerful microprocessor. It is termed as a computer that is equipped microprocessor as its CPU.2WorkstationIt is also a single user computer system, similar to the personal ... Read More

What is Excess-3 Code?

Chandu yadav

Chandu yadav

Updated on 31-Oct-2023 21:45:58

59K+ Views

The excess-3 code (or XS3) is a non-weighted code used to express code used to express decimal numbers. It is a self-complementary binary coded decimal (BCD) code and numerical system which has biased representation. It is particularly significant for arithmetic operations as it overcomes shortcoming encountered while using 8421 BCD ... Read More

1 2 3 4 5 ... 117 Next
Advertisements