<u>Answer:</u>
<em>Assuming that all the necessary declarations are made and given statements are only an extract, we can conclude that the given piece of code contains error. </em>
<u>Explanation:</u>
Let us analyze each one in order.
<em>count >0 </em> This statement is right if we match this with the <em>syntax of regular comparison operation</em>. Here count is an operand, “0” is the constant operand and these two operands are operated by the operator “>”.
when we take total / count >0 Here count>0 returns <em>Boolean and total is assumed to be an integer and an integer cannot be divided by a Boolean value. so it can be rectified as (total / count)>0.
</em>
Developers are aiming for two goals from their products.
one is the amount of money they can make off of their production of inventions.
and two is the effenciency of the produce.
i would strongly have to go with a
though im not very fond of computers and technology classes
Answer:
The program to this question can be given as:
Program:
factorial=1 #declare a variable.
number=int(input("Enter a positive integer:")) #input a number.
while (number>0): #loop
factorial= factorial*number # holding value in factorial variable
number=number-1
print('=',factorial) #print value.
Output:
Enter a positive integer:6
= 720
Explanation:
The description of the above python program can be given as:
- In the above program firstly we define a variable that is "factorial". In this variable, we assign a value that is 1 and it is used to calculate the factorial value.
- We define a variable "number". The number variable is used to take input from the user.
- Then we define a loop in the loop we calculate the factorial and hold the value in the factorial value in the last we print the value.
Most word-processing programs allow the user to select a command from the menu to insert a graphic. Clicks in the document where you want your file, choose insert and picture click from file select the image the press open and you picture will become inserted in to the document.
I should be skeptical of the credibility of sources that I have during the gathering. Be cautious and make sure that data comes of from trusted specialized sources. Trusted sources can be easily identified for their popularity on certain fields. Determine the purpose of the site and the data it contains.