Sharon Christine has Published 436 Articles

How to add shadow on text swift?

Sharon Christine

Sharon Christine

Updated on 30-Jul-2019 22:30:26

571 Views

If you’re developing a game or a kids application or an application where you want to make attractive user interface you must know how to add shadow on text. This will not only makes the text attractive but also it will also enhance the user experience.Here we will see how ... Read More

HTML DOM Input Month stepDown() Method

Sharon Christine

Sharon Christine

Updated on 30-Jul-2019 22:30:26

32 Views

The HTML DOM input month stepDown() method steps down (decrement) the value of input month field by a specified value.SyntaxFollowing is the syntax −object.stepDown(number)Here, if number parameter is omitted then it decrements the value by 1.ExampleLet us see an example of input month stepDown() method − Live Demo HTML ... Read More

HTML DOM Input Month stepUp() Method

Sharon Christine

Sharon Christine

Updated on 30-Jul-2019 22:30:26

38 Views

The HTML DOM input month stepUp() method steps up (increment) the value of input month field by a specified value.SyntaxFollowing is the syntax −object.stepUp(number)Here, if number parameter is omitted then it increments the value by 1.ExampleLet us see an example of input month stepUp() method − Live Demo HTML ... Read More

HTML DOM Input Month form Property

Sharon Christine

Sharon Christine

Updated on 30-Jul-2019 22:30:26

64 Views

The HTML DOM input month form property returns the reference of the form that contains the month input field in the HTML document.SyntaxFollowing is the syntax −object.formExampleLet us see an example of HTML DOM input month form property − Live Demo    body{       text-align:center; ... Read More

HTML DOM Input Number form Property

Sharon Christine

Sharon Christine

Updated on 30-Jul-2019 22:30:26

54 Views

The HTML DOM input number form property returns the reference of the form that contains the number input field in the HTML document.SyntaxFollowing is the syntax −object.formExampleLet us see an example of HTML DOM input number form property − Live Demo body{ ... Read More

Program to calculate area and perimeter of equilateral triangle

Sharon Christine

Sharon Christine

Updated on 30-Jul-2019 22:30:26

239 Views

Tringle is a closed figure with three sides. An equilateral triangle has all sides equal. Area and perimeter of an equilateral triangle can be found using the below formula, Area of equilateral triangle = (√3)/4*a2Perimeter of equilateral triangle = 3 * aLogic of CodeTo find the area of an equilateral ... Read More

Program to calculate area and volume of a Tetrahedron

Sharon Christine

Sharon Christine

Updated on 30-Jul-2019 22:30:26

238 Views

A tetrahedron is a pyramid with triangular base i.e. it has a base that is a triangle and each side has a triangle. All the three triangles converge to a point. As in the figure, Code Logic − The code to find the area and volume of tetrahedron uses the ... Read More

Program to calculate area of Enneagon

Sharon Christine

Sharon Christine

Updated on 30-Jul-2019 22:30:26

99 Views

An enneagon also known as nonagon is a polygon with 9 sides. To calculate the area of enneagon the following formula is used, Area of ennagon = ((a2*9) / 4*tan (20°)) ∼= (6.18 * a2)Code Logic, The area of a polygon with nine sides is calculated by using the formula, ... Read More

Program to calculate Area Of Octagon

Sharon Christine

Sharon Christine

Updated on 30-Jul-2019 22:30:26

357 Views

An octagon is a polygon with eight sides. To calculate the area of octagon the following formula is used, Area of octagon = ((a2*2) / *tan (22.5°)) = ((2*a*a)(1+√2))Code Logic, The area of a polygon with eight side is calculated by using the above formula. The expression uses sqrt function ... Read More

How to count the number of occurrences of a specific value in a column with a single MySQL query?

Sharon Christine

Sharon Christine

Updated on 30-Jul-2019 22:30:26

741 Views

For this, you can use GROUP BY clause along with IN(). Let us first create a table −mysql> create table DemoTable    -> (    -> Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,    -> Name varchar(100)    -> ); Query OK, 0 rows affected (0.87 sec)Insert some records in ... Read More

Advertisements