num = float(input("Enter a number: "))
num1 = int(num)
print(num - num1)
I hope this helps!
Answer:
The contract they had to sign was a computer maintenance contract with computer service providers.
Explanation:
<em>Why </em><em>do companies have to </em><em>maintain computers</em><em> regularly?
</em>
Because of all the activities of the company at this time on average use applications from computers. With the maintenance of computers, the activities of the company will continue to run well.
There are two types of maintenance that can be carried out:
- Hardware Maintenance
- Software Maintenance
#AnswerForTrees
Answer:
numAccounts = SavingsAccount.numberOfAccounts
Explanation:
In object oriented programming, when you have created an object of class, you can create several instances (objects) from that class by referencing the className.classFeild. In this instance SavingsAccount is the class name and
numberOfAccounts is a feild (or data member). to create a new numAccount, we use the syntax as above in the answer
Answer:
Following are the program in the Python Programming language.
#define function
def negative_num(num_list):
#set list type variable
nlist=[]
#set the for loop
for n in num_list:
#check negative numbers
if(n<0):
#add the value of n in list
nlist.append(n)
#return list
return nlist
#set new list type variable that store list
newl=[-5,8,-6,3,-4,9,-7]
#print and call the function
print(negative_num(newl))
<u>Output</u>:
[-5, -6, -4, -7]
Explanation:
Here, we define the function "negative_num" and pass an argument "num_list" in its parameter and inside the function.
- Set new list data type variable "nlist".
- Set the for loop which iterate as the list.
- Set the if conditional statement to check the value of the list is less than 0 then, add that negative values in the variable "nlist".
- Then, return the new list.
Finally, we set a variable "newl" which store the list of negative and positive numbers then, we print and call the function.
Explanation:
Analog computer:
It works with naturaland physical values
It works upon continuous data.
Its accuracy is low.
Digital computer:
It works with digits.
It works upon discrete data.
Its accuracy is high