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: clip art
Explanation:
- The clip arts are graphic images that are pre-made illustrations for the purpose of creating any medium (designs or art).
- It has no restrictions to use them, it can be used by anyone, hence its copyright-free.
- It comes in both electronic and printed form.
- But mostly they are designed and distributed and used by a person in an electronic form.
Hence, the complete statement is "Pre-made, copyright-free illustrations are called <u>clip art</u>".
In order to conserve the angular momentum, Angular speed (w) often increases. The 'none of the above' option has global CSS rulesets of an angular 8 project mcq.
- The angular momentum of a rigid object is known as the product of the moment of inertia and the angular velocity.
Angular speed is described as how quickly an object rotates. it is seen as the change in the angle of the object per unit of time.
See full question below
What has global CSS rulesets of an angular 8 project mcq.
A. e2e
B. None of the above
C. App
D. node_modules
Learn more from
brainly.com/question/24336703
Answer:
(Hope this helps can I pls have brainlist (crown) ☺️)
Explanation:
1.Drag and drop Comment Box into your survey from the BUILDER section.
2.Enter question text.
3.Configure any additional options.
4.Click Save.
I think it is D because you would need there contact information in case something happens not there trade name