In this tutorial, we will learn to stop a video with JavaScript on YouTube. Using the ‘iframe’ HTML element, we can easily embed the YouTube videos on our application. It is a video player in HTML 5 and has many attributes that users can use according to their needs. In some cases, it happens that you want to create a custom pause or stop button for the embedded YouTube video. Customized buttons are always pretty rather than default ones, making UI pretty. So, we will learn two different methods to create the custom stop button for the YouTube videos. However, ... Read More
This tutorial will discuss how to write a swift program to calculate the Sum of Natural Numbers. Natural numbers are the set of whole numbers excluding 0. In other words, natural numbers are the numbers which includes all the positive numbers starting from 1 to infinity. It does not contain negative numbers and 0 in it. For example 2, 3, 67, 49, etc. They are also known as counting numbers. We can find the sum of natural numbers by adding given natural numbers using arithmetic addition operator (+). For example, we have 8 so the sum of natural numbers is ... Read More
This tutorial will discuss how to write a swift program to find the surface area and volume of cuboid. A Cuboid is a 3-dimensional solid figure which contains six rectangular faces, eight vertices and twelve edges. It has three dimensions known as length, breadth, and height and if a cuboid has integer edges then the cuboid is the perfect cuboid. The opposite edges of the cuboid are always parallel to each other and the angle formed by all vertices are 90 degrees Surface area of cuboid Surface area of a cuboid is the total space occupied by the cuboid. ... Read More
This tutorial will discuss how to write a swift program to check whether the input number is a Neon Number. In a number system, a number whose sum of digits of square of the number is equal to the number is known as neon number. Below is an example of the neon numbers − Let’s see if number 9 is a neon number or not? - The square of 9 is 81 and the sum of 81 is 9 So 9 is a neon number Let’s take another example - 15 The entered number is not a neon number Here, ... Read More
This tutorial will discuss how to write a swift program to calculate compound interest. The interest applied to the principal and interest together over a certain period of time is known as compound interest. In other words, the compound interest is known as the interest on interest. It is calculated after calculating the amount. Formula Following is the formula of compound interest − Amount(A) = Principal(P)(1 + Rate/100)Time(t) C.I = Amount(A) - Principal(P) Where Principal(P) − Principal amount represents the amount that is initially invested. Rate(R) − Rate represents the interest rate, that applied to the principal amount for the ... Read More
This tutorial will discuss how to write a Swift program to generate Multiplication Table. A multiplication table is a list or table of multiples of a specified number. We can create a multiplication table by multiplying a number with whole numbers. Generally, a multiplication table is created upto 10 times but you can create it according to your need. Below is a demonstration of the same − Suppose our given input is − The desired output is − Following is the multiplication table is 9 9 * 1 = 10 9 * 2 = 20 9 * 3 ... Read More
This tutorial will discuss how to write a swift program to calculate the power of a number. Power of a number means how many times a number is used in multiplication, for example, 16 ^2 = 16 * 16 = 256 or 16 to the power of 2. It is also known as exponent or indices. Below is a demonstration of the same − Suppose our given input is − Number - 16 Exponent Value is - 3 The desired output is − Final result is 16^3 = 4096 Calculating power of a number using recursion We can calculate the ... Read More
In this article, we will show you how to delete a specific/particular line from a text file using python.Assume we have taken a text file with the name TextFile.txt consisting of some random text. We will delete a particular line (for example line 2) from a text fileTextFile.txtGood Morning This is Tutorials Point sample File Consisting of Specific source codes in Python, Seaborn, Scala Summary and Explanation Welcome everyone Learn with a joyAlgorithmFollowing are the Algorithm/steps to be followed to perform the desired task −Create a variable to store the path of the text file.Use the open() function(opens a file ... Read More
Data canters consist of a large number of enterprise servers. Not all servers are active at the same time. In case traffic is directed mostly to a particular set of servers more, those servers get busy. The other servers are less loaded, or they even turn totally inactive, thereby wasting power, maintenance costs, and other allied resources.With the changing times, businesses started looking for solutions to reduce overhead costs, enhance scalability, and standardize application deployment process. They started considering the following two approaches to reduce costs −Virtualization − Virtualization is the technology that can simulate your physical hardware (such as ... Read More
Businesses around the world today are smart and do everything to get and retain their customers. They can identify malicious credit/debit card transactions, they can identify a person uniquely with face or eye detection as a password to unlock a device, offer what their customer are looking for in the least possible time, separate spams from regular emails, and predict within how much time one can reach their intended destination depending upon length of road, weather conditions, and traffic, etc.These challenging tasks are possible only when the algorithms carrying out such predictions are smart, and the learning approaches are the ... Read More