karthikeya Boyini

karthikeya Boyini

1,421 Articles Published

Articles by karthikeya Boyini

Page 97 of 143

Minimum Coin Change Problem

karthikeya Boyini
karthikeya Boyini
Updated on 15-Jun-2020 2K+ Views

There is a list of coin C(c1, c2, ……Cn) is given and a value V is also given. Now the problem is to use the minimum number of coins to make the chance V.Note − Assume there are an infinite number of coins CIn this problem, we will consider a set of different coins C{1, 2, 5, 10} are given, There is an infinite number of coins of each type. To make change the requested value we will try to take the minimum number of coins of any type.As an example, for value 22 − we will choose {10, 10, 2}, ...

Read More

How to use formenctype attribute in HTML?

karthikeya Boyini
karthikeya Boyini
Updated on 15-Jun-2020 276 Views

The formenctype attribute is used to show how the form data should be encoded when it is submitting to the server. It introduced in HTML5 and only used with input type submit an image.Here are the formenctype attribute values −S.NoValue & Description1application/x-www-form-urlencodedThis is the default. All the characters are encoded before sent.2multipart/form-dataNone of the characters are encoded.3text/plainIn this, the spaces are converted to + symbols. However, no special characters are encoded.ExampleYou can try to run the following code to learn how to use the formenctype attribute in HTML.           HTML formenctype attribute                        Name                    

Read More

SAP UI5 framework and comparison with JQuesry and Backbone, Angular, etc.

karthikeya Boyini
karthikeya Boyini
Updated on 15-Jun-2020 280 Views

The SAPUI5 framework is the original version of the SAP toolkit which was released initially. This version of the toolkit is a proprietary version. Later SAP released an Open source version of it named OpenUI5. Functionally it is almost equivalent in terms of basic operations negating few features but overall sufficient enough as a UI framework.This UI5 framework (applies to both SAPUI5 and OpenUI5) is capable of dispensing all major tasks expected from a full-fledged UI framework. It supports following features:Model View Controller architectureRouting engineModules with the help of module loadersFull data binding either in XML, JSON or using web ...

Read More

What is Bootstrap Plugins

karthikeya Boyini
karthikeya Boyini
Updated on 12-Jun-2020 501 Views

Bootstrap comes bundled with 12 jQuery plugins that extend the features and can add more interaction to your site.By utilizing Bootstrap Data API, most of the plugins can be triggered without writing a single line of code.Bootstrap Plugins can be included on your site in the following two forms −Individually − Using Bootstrap's individual *.js files. Some plugins and CSS components depend on other plugins. If you include plugins individually, make sure to check for these dependencies in the docs. Compiled (all at once) − Using bootstrap.js or the minified bootstrap.min.js. Do not attempt to include both, as both bootstrap.js and bootstrap.min.js contain all ...

Read More

Bootstrap Form Control States

karthikeya Boyini
karthikeya Boyini
Updated on 12-Jun-2020 388 Views

Bootstrap offers to style for disabled inputs and classes for form validation, Input FocusWhen an input receives: focus, the outline of the input is removed and a box-shadow is applied.Disabled lnputsIf you need to disable an input, simply adding the disabled attribute will not only disable it; it will also change the styling and the mouse cursor when the cursor hovers over the element.Disabled FieldsetsAdd the disabled attribute to a to disable all the controls within the at once.Validation StatesBootstrap includes validation styles for errors, warnings, and success messages. To use, simply add the appropriate class to the parent element.

Read More

C# Program to read all the lines of a file at once

karthikeya Boyini
karthikeya Boyini
Updated on 10-Apr-2020 234 Views

Use ReadAllText() method to read all the lines of a file at once.Let’s say we have a file “hello.txt” with the following lines −One Two ThreeTo read the above file, add the path of the file as parameter.File.ReadAllText(myPath);Above, myPath had the file path.String myPath = "hello.txt";Let us see the complete code −Exampleusing System; using System.IO; public class Demo {    public static void Main() {       String myPath = "hello.txt";       String allLines;       allLines = File.ReadAllText(myPath);       Console.WriteLine(allLines);    } }OutputThe following is the output −One Two Three

Read More

How to access array elements using a pointer in C#?

karthikeya Boyini
karthikeya Boyini
Updated on 03-Apr-2020 4K+ Views

In C#, an array name and a pointer to a data type same as the array data, are not the same variable type. For example, int *p and int[] p, are not the same type. You can increment the pointer variable p because it is not fixed in memory but an array address is fixed in memory, and you can't increment that.Here is an example −Exampleusing System; namespace UnsafeCodeApplication {    class TestPointer {       public unsafe static void Main() {          int[] list = {5, 25};          fixed(int *ptr = ...

Read More

Java program to calculate the GCD of a given number using recursion

karthikeya Boyini
karthikeya Boyini
Updated on 13-Mar-2020 3K+ Views

You can calculate the GCD of given two numbers, using recursion as shown in the following program.Exampleimport java.util.Scanner; public class GCDUsingRecursion { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Enter first number :: "); int firstNum = sc.nextInt(); System.out.println("Enter second number :: "); int secondNum = sc.nextInt(); System.out.println("GCD of given two numbers is ::"+gcd(firstNum, secondNum)); } public static int gcd(int num1, int num2) { if (num2 != 0){ return gcd(num2, num1 % num2); } else{ return num1; } } }OutputEnter first number :: 625 Enter second number :: 125 GCD of given two numbers is ::125

Read More

Java program to calculate student grades

karthikeya Boyini
karthikeya Boyini
Updated on 13-Mar-2020 18K+ Views

The following program accepts average from the user, calculates the grade and prints it.Examplepublic class CalculateStudentGrades { public static void main(String args[]) { Scanner sc = new Scanner(System.in); System.out.println("Enter average of your marks (less than 100)::"); int average = sc.nextInt(); char grade; if(average>=80){ grade = 'A'; }else if(average>=60 && average=40 && average

Read More

Java program to find the area of a circle

karthikeya Boyini
karthikeya Boyini
Updated on 13-Mar-2020 23K+ Views

Area of a circle is the product of the square of its radius, and the value of PI, Therefore, to calculate the area of a rectangleGet the radius of the circle.Calculate the square of the radius.Calculate the product of the value of PI and the value of the square of the radius.Print the result.Exampleimport java.util.Scanner; public class AreaOfCircle {    public static void main(String args[]){       int radius;       double area;       Scanner sc = new Scanner(System.in);       System.out.println("Enter the radius of the circle ::");       radius = sc.nextInt();   ...

Read More
Showing 961–970 of 1,421 articles
« Prev 1 95 96 97 98 99 143 Next »
Advertisements