Answer:
theSum = 0.0#defined in the question.
count=0 #modified code and it is used to intialize the value to count.
data = input("Enter a number: ") #defined in the question.
while data != "": #defined in the question.
number = float(data) #defined in the question.
theSum += number #defined in the question.
data = input("Enter the next number or press enter to quit ") #defined in the question "only some part is modified"
count=count+1#modified code and it is used to count the input to print the average.
print("The sum is", theSum)#defined in the question.
print("The average is", theSum/count) #modified code and it is used to print the average value.
output:
- If the user inputs as 1,4 then the sum is 5 and the average is 2.5.
Explanation:
- The above code is written in the python language, in which some part of the code is taken from the question and some are added.
- The question has a code that tells the sum, but that code is not print the average value of the user input value.
- To find the average, some codes are added, in which one count variable which is initialized at the starting of the program and gets increased by 1, when the user gives the value.
- Then that count divides the sum to print the average.
Answer:
d
Explanation:
an integrated development environment like PyCharm has all the things like debugers and editors. It makes things easy for coding
Answer:
A system that organizes and controls website content and can include features that help team members work together on webpages and other documents is referred to as a __groupware__ system.
Explanation:
Groupware is also know as collaborative software. This software allows multiple people to works collectively in solving a problem. It helps solving problems in an easier and in an efficient manner, because anyone in the group can solve it. It is a sort of group/team work.
Answer:
Offset bits: 3-bits
Set number of cache: 12-bits
Tag bits: 7-bits
22-bit physical address
Explanation:
Since the system is 32K so,
=2⁵.2¹⁰
=2¹⁵
As we know that it is 8-way set associative so,
=2¹⁵/2³
=2¹⁵⁻³
=2¹²
2¹² are cache blocks
22-bit physical address
Off-set bits are 3 as they are calulated from 8-way set associative information.
Set number of cache : 12-bits
For tag-bits:
Add off-set bits and cache bits and subtract from the total bits of physical address.
=22 - (12+3)
=22 - 15
=7
Answer:
Mine headgear constructions support wheel mechanisms for suspending winding cables that transport workers and ore up and down deep level shafts. These strange anthropomorphic structures have become the iconic symbol for mining.