In this problem you will write a function that takes in a single integer (positive, negative, or zero) and produces an array of all of its individual digits along with a boolean which flags if the number is negative (often called the sign bit). The list of digits should begin with the lowest place and increase to the highest place. Main Function:
Input variables: • a scalar representing the integer to be studied
Output variables: • a vector of each digit in the order from lowest place to highest place
• a scalar boolean which is 1 if the number is negative and 0 otherwise A possible sample case is: " [digits, sign] = LXX_QYY (1234) digits = 4 3 2 1 sign = 0 " [digits, sign] = LXX_QYY (-9) digits = sign %3D
+5
Answers (1)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “In this problem you will write a function that takes in a single integer (positive, negative, or zero) and produces an array of all of its ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Home » Computers & Technology » In this problem you will write a function that takes in a single integer (positive, negative, or zero) and produces an array of all of its individual digits along with a boolean which flags if the number is negative (often called the sign bit).