Sharon Christine has Published 337 Articles

How to create transparent Status Bar and Navigation Bar in iOS?

Sharon Christine

Sharon Christine

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

1K+ Views

You might have come across many application where the screen extends to complete screen i.e transparent Status Bar and transparent navigation bar.Here we will be seeing how to create an application where the you’ll be having transparent status and navigation bar.So let’s get startedStep 1 − Open Xcode → New ... Read More

How to add shadow on text swift?

Sharon Christine

Sharon Christine

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

938 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 form Property

Sharon Christine

Sharon Christine

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

137 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

146 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

543 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

416 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

186 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

904 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

1K+ 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

MySQL queries to update date records with NULL values

Sharon Christine

Sharon Christine

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

1K+ Views

You can use IFNULL() for this. Let us first create a table −mysql> create table DemoTable -> ( -> added_date date, -> updated_date date -> ); Query OK, 0 rows affected (0.95 sec)Insert some records in the table ... Read More

Advertisements