AmitDiwan

AmitDiwan

8,392 Articles Published

Articles by AmitDiwan

Page 636 of 840

Kotlin Program to Find the Perimeter of a Circle

AmitDiwan
AmitDiwan
Updated on 17-Oct-2022 568 Views

In this article, we will understand how to find the perimeter of a circle. The perimeter of a circle is calculated using the formula. (2*22*radius)/7 You can also write the above as − 2ℼr The value of ℼ is 22/7 or 3.14. Suppose our input is − Radius of the circle : 5 The desired output would be − Perimeter of Circle is: 31.428571428571427 Algorithm Step 1 − START. Step 2 − Declare 2 double values namely radius and myResult. Step 3 − Define the values. Step 4 − Calculate the perimeter using the formula ...

Read More

Kotlin Program To Find The Area of a Trapezium

AmitDiwan
AmitDiwan
Updated on 17-Oct-2022 322 Views

In this article, we will understand how to find the area of a trapezium. The area of a trapezium is calculated using the formula. (height/2 * (side1 + side2)) Below is a demonstration of the same − Suppose our input is − side1 = 5 side2 = 6 height = 6 The desired output would be − Area of trapezium is: 33.0 Algorithm Step 1 − START. Step 2 − Declare four integer values namely side1, side2, height and myResult. Step 3 − Define the values. Step 4 − Calculate the area of the trapezium using ...

Read More

Kotlin Program to Find Area of Square

AmitDiwan
AmitDiwan
Updated on 17-Oct-2022 852 Views

In this article, we will understand how to find the Area of a Square. The area of a square is calculated using the formula. side*side Below is a demonstration of the same − Suppose our input is − Length of the side : 4 The desired output would be − Area of the square : 16 Algorithm Step 1 − START. Step 2 − Declare 2 integer values namely sideValue and myResult. Step 3 − Define the values. Step 4 − Calculate the area of the square using the formula side*side and store the result. Step ...

Read More

Kotlin Program to Calculate the Power of a Number

AmitDiwan
AmitDiwan
Updated on 17-Oct-2022 730 Views

In this article, we will understand how to calculate the power of a number. The calculate the power of a number is calculated using a loop and multiplying it by itself multiple times. Below is a demonstration of the same − Suppose our input is − Number : 4 Exponent value : 5 The desired output would be − The result is 1024 Algorithm Step 1 − START Step 2 − Declare three integer values namely baseValue, exponentValue and and myResult Step 3 − Define the values Step 4 − Using a while loop, multiply the input ...

Read More

Kotlin Program to Reverse a Number

AmitDiwan
AmitDiwan
Updated on 17-Oct-2022 2K+ Views

In this article, we will understand how to print an integer in Kotlin. The reverse of a number is computed using a loop and arithmetic operator % and /. Below is a demonstration of the same − Suppose our input is − The number : 123456 The desired output would be − The result is 654321 Algorithm Step 1 − START Step 2 − Declare two integer values namely myInput and reversed. Step 3 − Define the values Step 4 − Run a while loop Step 5 − Use modulus of 10 and get remainder for ‘myTemp’ ...

Read More

Kotlin Program to Count Number of Digits in an Integer

AmitDiwan
AmitDiwan
Updated on 17-Oct-2022 852 Views

In this article, we will understand how to count the number of digits in an integer. The digits in an integer are counted using a loop and a counter. Below is a demonstration of the same − Suppose our input is − Number : 15161718 The desired output would be − The result is : 8 Algorithm Step 1 − START Step 2 − Declare two integer values namely count and myInput. Step 3 − Define the values Step 4 − Using a while loop, divide the input value by 10 until the number is reduced to ...

Read More

Kotlin Program to Display Fibonacci Series

AmitDiwan
AmitDiwan
Updated on 17-Oct-2022 3K+ Views

In this article, we will understand how to find even sum of Fibonacci series till number N. A Fibonacci series is sequence of numbers formed by the sum of its two previous integers. An even Fibonacci series is all the even numbers of the Fibonacci series. A Fibonacci series till number N i.e., 10 can look like this − 0 1 1 2 3 5 8 13 21 34 Below is a demonstration of the same − Suppose our input is − The input : 15 The desired output would be − The Fibonacci series till 15 terms: 0 ...

Read More

Fuzzy Logic and Probability: The Confusing Terms

AmitDiwan
AmitDiwan
Updated on 14-Oct-2022 2K+ Views

In this article, you will understand the difference between fuzzy logic and probability. Fuzzy logic It is a many-valued logic where the truth value of variables may be a real number between 0 and 1, including 0 and 1. Everything is associated with a degree. It is based on natural language processing. It can be integrated with programming. It is best suited for approximation. It is generally used by quantitative analysts. It helps understand the concept of vagueness. It captures the meaning of partial truth. The degree of membership is in a set. It is used in air conditioners, ...

Read More

What is Text Annotation and its Types in Machine Learning?

AmitDiwan
AmitDiwan
Updated on 14-Oct-2022 406 Views

Text annotation identifies and labels sentences with metadata to define characteristics of sentences. This could be highlighting parts of speech, grammar, phrases, keywords, emotions, and so on depending on the project. The better the quality and quantity of data, the better the model performs. In this article, you will understand different text annotation methods. 1. Sentiment Annotation Based on the emotion/sentiment associated with the response, the text is annotated. Sarcasm filled text should be understood as is, rather than being termed negative or positive. Sentiment is an important aspect here. Every sentence needs to be labelled based on the available ...

Read More

Top 10 Benefits of Machine Learning in Businesses

AmitDiwan
AmitDiwan
Updated on 14-Oct-2022 268 Views

The field of machine learning is developing rapidly, and the benefits are innumerable. Some of the benefits in the field of business have been listed below − Improved Consumer Experience Human efforts to interact with consumers have reduced and bots are used instead. This has helped with the automated and travail responses that are required at times. Human resources can be used for better tasks as well. Resource Planning Since patterns can be detected from data, the resources required can be planned, and can be utilised efficiently. This way, machine learning makes businesses cost effective too. Effective Predictions Predictions based ...

Read More
Showing 6351–6360 of 8,392 articles
« Prev 1 634 635 636 637 638 840 Next »
Advertisements