Answer:
The solution code is written in Python 3:
- def modifyList(listNumber):
- posCount = 0
- negCount = 0
-
- for x in listNumber:
- if x > 0:
- posCount += 1
- else:
- negCount += 1
-
- if(posCount == len(listNumber)):
- listNumber.append(max(listNumber))
-
- if(negCount == len(listNumber)):
- listNumber.append(min(listNumber))
-
- print(listNumber)
-
- modifyList([-1,-99,-81])
- modifyList([1,99,8])
- modifyList([-1,99,-81])
Explanation:
The key step to solve this problem is to define two variables, posCount and negCount, to track the number of positive value and negative value from the input list (Line 2 - 3).
To track the posCount and negCount, we can traverse through the for-loop and create if else statement to check if the current number x is bigger than 0 then increment posCount by 1 otherwise increment negCount (Line 5- 9).
If all number in the list are positive, the posCount should be equal to the length of the input list and the same rule is applied to negCount. If one of them happens, the listNumber will append either the maximum number (Line 11 -12) or append the minimum number (Line 14-15).
If both posCount and negCount are not equal to the list length, the block of code Line 11 -15 will be skipped.
At last we can print the listNumber (Line 17).
If we test our function using the three sets of input list, we shall get the following results:
[-1, -99, -81, -99]
[1, 99, 8, 99]
[-1, 99, -81]
Answer:
The control unit of the CPU contains circuitry that uses electrical signals to direct the entire computer system to carry out stored program instructions.
Explanation: The control unit does not execute program instructions rather, it directs other parts of the system to do so.
Answer:
Step 1: Visit iCloud.com and log in with your Apple ID and password
At the same time, a window also pops up on iDevice
you need to click "Allow"
Copy the code from your phone to icloud.com
Step 2: Once signed in, select Settings on homepage
Step 3: Click "Manage" Apple ID.
Step 4: You will be directed to another site – appleid.apple.com
input your password to log in and verify it with Apple ID verification code.
Step 5: Then you will enter the manage page.
Click "Edit" in Security column.
Step 6: Click "Turn Off Two-Factor Authentication"
then confirm it.
Step 7: Then you need to select your security questions and answer them
click "Continue" after confirming your birthday and rescue email.
After all of these steps, you have turned off two factor authentication for Apple ID successfully.
Source : https://www.imobie.com/guide/anytrans/how-to-turn-off-two-step-verification-in-icloud.htm
Answer:
Shortened versions of phrases Ex:(l ol, s mh, i dk, ect.)
Explanation:
Hope that this helps, if you have any more question please feel free to contact me, hope you have an amazing rest of your day. ;D
Coordination in a global information system requires a decentralized architecture for data, standardization within departments