The CPU, or central processing unit, is the hardware that takes most of the load when running a program. It will perform complex calculations and execute every instruction as the program continues.
The GPU, or graphics procession unit, is the hardware that could also play a major roll in calculating the instructions to execute a program, though this depends on how graphically intensive the program is. For example, games would use a lot more GPU power than say a simple calculator application.
Answer:
The answer to this question is given below in this explanation section.
Explanation:
"Why the computer is called diligent
Versatile machine"
Computer is called versatile machine because it is used in almost all the fields for various purposes.Because it can perform the task repeatedly without loosing its speed and accuracy for a long time.They are versatile because they can be used for all sorts of task.They can also do many of the same tasks in different ways.Computer is the electronic device which perform the logical and mathematical calculation.Computer is known as the versatile machine because it is very fast in every field and its part of life without it was cannot imagine life.
It can do the work faster and in every field the computer is used for making their work faster.
It can perform the work fast so it is called versatile machine.
Advantages of versatile machine:
- Computer are very fast due to which thousand of job can be performed within the short period of time.
- Complex mathematical problems and logical operations can be solved by using this computer.
- As computer is versatile device,multiple task like communication,graphics,documentation can be done.
Disadvantages of versatile machine:
- Computers are machine hence they have no brain so they work according to the program instruction set inside it.
- It is an electronic deice and it uses electronic sources to work,So it is very risk to store data and information on the computer independently because some electric and electronic damages may damage the data.So we have to make regular backup of the data.
Answer:
no_of_shares = int(input("Enter the number of shares: "))
purchase_price = float(input("Enter the purchase price of the stock: "))
sale_price = float(input("Enter the sale price of the stock: "))
total_stock_price = purchase_price*no_of_shares
total_spend_on_buying = total_stock_price + (0.03*total_stock_price)
total_sale_price = sale_price*no_of_shares
commission_while_selling = total_sale_price*0.03
net_gain_or_loss = total_sale_price - (total_spend_on_buying + commission_while_selling)
if(net_gain_or_loss<0):
print("After the transaction, you lost {} dollars".format(abs(net_gain_or_loss)))
else:
print("After the transaction, you made {} dollars".format(abs(net_gain_or_loss)))
Explanation:
Java Bitwise Operators
Operator Description Example
>> (right shift) Binary Right Shift Operator. The left operands value is moved right by the number of bits specified by the right operand. A >> 2 will give 15 which is