answersLogoWhite

0

You have to take some decisions. In a programming language, that might be done with an "if" statement.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is complsexity of an algorithm?

Complexity of an algorithm is a measure of how long an algorithm would take to complete given


A Write the algorithm to concatenate two given strings?

a write the algorithm to concatenate two given string


What is the most efficient way to implement a factorial algorithm in a programming language?

The most efficient way to implement a factorial algorithm in a programming language is to use an iterative approach rather than a recursive one. This involves using a loop to multiply the numbers from 1 to the given input number to calculate the factorial. This method is more memory-efficient and faster than using recursion.


How to write a java program that determines the number of prime numbers less than N which is given by the user?

where to start? do you have an algorithm and just want to implement it in java? depends on how big N is, as that will determine which method is most efficient


When using a coordinate system how is the angle or direction of a vector determined with respect to the axes of the coordinate system?

The angle is measured from the "(+)X" axe and going counter-clockwise until it reaches the Vector. ( Compare with a Watch it will start at the 3 o'clock number) The coordinate system ( Cartesian Plan) has Four Quadrants. Starting from the upper right one , it is Quadrant # I , ( Between 3 o'clock and 12 o'clock ) The left Upper Quadrant is the # II Quadrant. ( Between 12 and 9 o'clock) The Lower left quadrant is # III . ( Between 9 and 6 o'clock ) And the Lower Right Quadrant is # IV . ( Between 6 and 3 o'clock) Going counterclockwise: A Vector between 0 and 90 degrees is located in the first Quadrant. A vector between 90 and 180 degrees is located in the Second quadrant. A vector between 180 and 270 degrees is located in the Third Quadrant . Finally a Vector between 270 and 360 degrees is located in the Fourth Quadrant. If it fell in 0 ,90,180 or 270 degrees it say that is on the X or Y axis.


How Given x equals 35 and x is in quadrant 2 what is the value of x2?

If x = 35 then it makes no sense for x to be in the second quadrant.


What is the role of algorithm in problem solving?

the concept of problem solving problems in algorithms are problem solving in computer, what is the algorithms for solving in problems, what is the rule o algorithms in problem solving, what are the steps to solving a problem with your computer and engineering steps for solving problems


Why algorithm needs to solve programming problem?

This is the definition of an algorithm - a list of orders of how to solve a given programming problem.


How do you find equation when 2 equations and 1 coordinate is given?

By solving the simultaneous equations the values of x and y should be equal to the given coordinate


How can the halting problem reduction be applied to determine the computability of a given algorithm?

The halting problem reduction can be used to determine if a given algorithm is computable by showing that it is impossible to create a general algorithm that can predict whether any algorithm will halt or run forever. This means that there are some algorithms for which it is impossible to determine their computability.


What is the proof of correctness algorithm and how does it ensure the accuracy and reliability of a given algorithm?

The proof of correctness algorithm is a method used to demonstrate that a given algorithm performs as intended and produces the correct output for all possible inputs. It involves creating a formal proof that the algorithm meets its specifications and behaves correctly under all conditions. By rigorously analyzing the algorithm's logic and structure, the proof of correctness ensures that it is accurate and reliable in its operations.


What is the definition to x-coordinate?

Given an ordered pair, (x,y), the first number is the x coordinate.