Answer:
ZeroDivisionError
ValueError
Explanation:
ZeroDivisionError occurs when you attempt to divide a number by
.
ValueError occurs when the argument passed into a function holds the wrong value. In this case, the string is not numeric which cannot be passed into the float() function.
Hope this helps :)
Faster Production.
Easily Accessible.
Better Quality.
Tangible Design and Product Testing.
Cost-effectiveness.
Creative Designs and Customization Freedom.
Answer:Discloses actual/potential dangers
Help create an environment supporting ethical conduct
Explanation: The clauses that are presented by the Code of Ethics for software engineering which are upheld by a whistle blower are termed as 1.03, 1.04 and 6.08.These describe about the below mentioned terms:-
- 1.03-it gives permission to software by receiving assurance that it meets the requirement, protected , good qualities and other such testable factors.
- 1.04- Disclosing to the correct and reliable person regarding any potential danger towards the user.
- 6.08- reporting errors and malicious activities, detecting it ,correcting those errors etc so that software conduct can work smoothly.
Answer:
The equilibrium price of the LCD TVs will increase and the equilibrium quantity will increase.
Explanation:
When the price of a complement falls, the demand for the good increases so price and quantity increases.
Answer:
The method in Java is as follows:
public static ArrayList<Integer> appendPosSum(ArrayList<Integer> nums) {
int sum = 0;
ArrayList<Integer> newArr = new ArrayList<>();
for(int num : nums) {
if(num>0){
sum+=num;
newArr.add(num); } }
newArr.add(sum);
return newArr;
}
Explanation:
This defines the method; it receives an integer arraylist as its parameter; nums
public static ArrayList<Integer> appendPosSum(ArrayList<Integer> nums) {
This initializes sum to 0
int sum = 0;
This declares a new integer arraylist; newArr
ArrayList<Integer> newArr = new ArrayList<>();
This iterates through nums
for(int num : nums) {
If current element is greater than 0
if(num>0){
This sum is taken
sum+=num;
And the element is added to newArr
newArr.add(num); } }
At the end of the iteration; this adds the calculated sum to newArr
newArr.add(sum);
This returns newArr
return newArr;
}