• Register

Recent posts tagged program

14 0 1 min.
In this post, we will take a look at a java program that will display student details. We will use the simplest approach to understand this program.Here, we will display the name, roll no, age, and marks of 5 subjects.In this program, First, we ...
posted 3 days ago Being human 148 points
41 2 2 min.
Here, we will write the Java programs to sort the array in descending order. Consider a list of an array element in an unsorted format, we will sort them in descending order.Algorithm:Take the input size of an element.Use a loop to Input array e...
posted Jun 2 Being human 148 points
27 0 2 min.
Here, we will see the simplest solution for finding a specific character in a string in java. We will be using the String built-in function to execute this program:Algorithm:Take input string from the user.Take the input character you want to se...
posted May 31 Being human 148 points
18 0 2 min.
If you are a fresher, you might have encountered this question in your interviews i.e program to find a maximum and minimum number in an array in java. Let us understandAlgorithm to find the maximum and minimum number in an array in javaTake the...
posted May 30 Being human 148 points
13 0 1 min.
If you have faced an interview, you might have encountered this question which is repeatedly asked to test the Logic of a Student. So, let us understand the program.Algorithm to find duplicate characters in a string in JavaFirst, Enter the StringCove...
posted May 29 Being human 148 points
9 0 2 min.
If you are fresher, you might have faced an interview in which the interviewer might have asked you to write this program i.e Find first non repeating character in a string. Let us discuss this in detail.Following are the steps involved:Fir...
posted May 28 Being human 148 points
0 0 3 min.
Using Arrays.sort method to Find Maximum and Minimum Values in an Array int[] nums={6,-1,-2,-3,0,1,2,3,4};Arrays.sort(nums);System.out.println("Minimum = " + nums[0]);System.out.println("Maximum = " + nums[nums.length-1]);You...
posted May 20 Sanjana Sagar 427 points
0 0 6 min.
To create a C++ project in Visual Studio 2019From the main menu, choose File > New > Project to open the Create a New Project dialog box.At the top of the dialog, set Language to C++, set&n...
posted May 20 Sanjana Sagar 427 points
0 0 2 min.
C program to replace a word in a string without using function Algorithm to Replace a substring in a string Input the full string (s1).Input the substring from the full string (s2).Input the string to be replaced with the substring (s3).Fin...
posted May 20 Sanjana Sagar 427 points
0 0 3 min.
C program to print all combinations of a 4-digit numberThe main idea behind the solution to this problem is to find out the combination of 0,1 and 3. First of all, we will put the user-provided numbers in an array. Then using three&nbs...
posted May 19 Sanjana Sagar 427 points
0 0 1 min.
Function overloading and overriding in c++ with example Difference between function overloading and function overridingNow that we understand what is function overloading and overriding in C++ Programming, lets see the difference between them:1)...
posted May 19 Sanjana Sagar 427 points
0 0 3 min.
During the installation of some programs there are usually several options, sometimes there is one that if we select it causes it to start when Windows 10 starts, this can be useful in some cases. However, we do not always find this op...
posted Apr 14 amna 112,545 points
0 0 10 min.
Q1. Define a class and an object.Answer:A class is an example of properties and techniques that utilize and characterize a continuous substance. It can represent information that unites each illustration into a single component. An Object is a s...
posted Jan 22 tishan210 24,470 points
0 0 2 min.
In this article, let's dig deeper (exit Java method) and understand how it is used.You can exit the function method using java.lang.System.exit (). This method terminate the running Java Virtual Machine (JVM). It takes the argument "status c...
posted Oct 13, 2020 Hasnain_khan 100 points
0 0 2 min.
To run a Java program in Windows 10, we first need to install Java and then set the environment variable. To do this, follow these stepsHow to install Java?Step 1) Visit the website of oracle and then click download.Step 2) Now, on the next page, cli...
posted Oct 12, 2020 Hasnain_khan 100 points
0 0 1 min.
This article will discuss and show how to split up a number of more than one digit to split into individual digits. Splitting numbers means writing all the digits of the number as an individual number. For example,  just assume we have the numbe...
posted Oct 7, 2020 Lalit Kumar 1,240 points
0 0 2 min.
We add input in a web page to get input from the user, there are so many different input tags like text, number and many more. Assuming we want to get only numbers as input from the user, we can use number input but the user can still use characters ...
posted Sep 28, 2020 Lalit Kumar 1,240 points
0 0 2 min.
In lower classes , we have that chapter of percentage in mathematics. Wee  used to love that chapter because that one was easy. This article discusses one of them in both word and code format. Don’t worry if you don;t know about percentage...
posted Sep 26, 2020 Lalit Kumar 1,240 points
0 0 1 min.
A simple C++ program contains header files, blank or white spaces, main function, output statement, operators and return statement. But we can create a program without using some of them. So, our question is what should every C++ program contain?What...
posted Sep 15, 2020 Lalit Kumar 1,240 points
0 0 2 min.
In this article we will write a program to calculate the average grade of the student. Basically we will ask the user for the marks as input. By the total marks obtained we will find the percentage. If the percentage is greater than 85% then print gr...
posted Jun 21, 2020 Lalit Kumar 1,240 points