answersLogoWhite

0

What else can I help you with?

Continue Learning about Engineering

Write algorithm compute sum of square of N numbers?

Oh, what a lovely question! To compute the sum of the squares of N numbers, you can create a simple algorithm. Start by initializing a variable to hold the sum, then loop through each number, square it, and add it to the sum. Once you've done this for all N numbers, you'll have the sum of their squares. Just like painting a happy little tree, take your time and enjoy the process.


Why it might be more appropriate to declare an attribute that contains only digits as a character data type instead of a numeric data type?

Declaring an attribute that contains only digits as a character data type instead of a numeric data type can be more appropriate if the digits do not represent quantitative values. For example, attributes like ZIP codes, phone numbers, or account numbers are purely identifiers and should not undergo mathematical operations. Storing them as character data prevents issues such as leading zeros being dropped or unintended arithmetic operations. This approach also allows for easier formatting and validation specific to the context of the data.


What is expotential notation?

The correct spelling is exponential notation. An exponential notation gets rid of zeroes and simplifies numbers. It allows you to move the decimal point in numbers.


Suppose AX and BX contains signed numbers write some code to put the bigger one in CX and if they are equal add them in AX?

Da program pa yakho obo olambawa


Why is it important to allocate the correct type of data?

It is important to use the correct data type so you dont get confused and makes it easier for the system to Calculate numbers, and when text is text. For example Windows Excel wouldnt be able to calculate the data if it wasnt for using the correct data type