Answer:
You can answer this very easily by considering which of the circumstances affect the end user and which affect the developer:
1) Didn't use comments in the code
- affects developers
2) User complaints about language used in the program
- affects users
3) The variables have meaningless names
- affects developers
4) The program should have used a loop
- affects developers
5) The numeric results are incorrect
- affects users
Your answers then are 2 and 5, spoken languages and incorrect output will very much affect the user experience.
Answer:
D
Explanation:
The answer is D because if you're looking for lightweight materials, you'll be dealing with chemistry, and chemistry is sience.
Answer:
C
data converted from double to integer.
Answer:
Explanation:
The following is written in Python and uses exception handling to do exactly as requested. It then goes adding all of the integer values to an array called num_list and finally adding them all together when the function ends.
def in_values():
num_list = []
while True:
try:
num = input("Input non-zero floating point: ")
num = int(num)
if num == 0:
break
else:
num_list.append(num)
except ValueError:
print("No valid integer! Please try again ...")
try:
num = input("Input non-zero floating point: ")
num = int(num)
break
except ValueError:
break
sum = 0
for number in num_list:
sum += number
return sum