answersLogoWhite

0


Best Answer

Your question appear incomplete. Is this for math? or computing?

Anyway, an algorithm is just a series of steps. So to compute the sum of two variables we can use the "by hand" method:

1. Arrange the numbers into decimal form, one on top of the other

2. Add like decimal units, carrying excess to the next decimal unit

The multiplication process will be similar

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write an algorithm that computes the sum and product of x and y variables?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write an expression that computes the sum of the two variables verbalScore and mathScore?

totalScore = verbalScore mathScore


Write an expression that computes the sum of two variables in java?

int sum = a + b; PS: a and b are int variables that must have been already declared and initialized.


What is the upper limit and lower limit?

write a function which computes product of all the number in a given range(from lower limit to upper limit) and returns the answer


How do you write an array that computes the product of the two numbers in java?

You don't need an array for that. Just do the multiplication, for example: result = factor1 * factor2; Or: result = 5 * 8;


What is algorithm to write algorithm to the program to access a pointer variable in structure?

Here is the algorithm of the algorithm to write an algorithm to access a pointer in a variable. Algorithmically.name_of_the_structure dot name_of_the _field,eg:mystruct.pointerfield


Write an algorithm to find the root of quadratic equation?

Write an algorithm to find the root of quadratic equation


A Write the algorithm to concatenate two given strings?

a write the algorithm to concatenate two given string


How do you write an Algorithm for a C plus plus Program?

You don't write an algorithm for a C++ program, unless you are documenting the C++ program after-the-fact. The normal procedure is to write the algorithm first, in a language independent fashion, and then translate that stated algorithm into C++ code, or into whatever language you wish.


Write an algorithm and draw flowchart to calculate the perimeter of a square?

write an algorithm and draw a flow chart to find perimeter of a square


Design step by steps algorithm on how to write the letter A and display the result?

Design step by steps algorithm on how to write the letter A and display the result


Write an algorithm to check whether a number is a prime number or not?

You can write out this algorithm. This will then be programmed into the device to make determining prime numbers easier.


What is algorithm write properties of algorithm?

An ALGORITHM is a sequence of steps that depicts the program logic independent of the language in which it is to be implemented. An algorithm should be designed with space and time complexities in mind.