Answer:
Written in Python
name = input("Name: ")
wageHours = int(input("Hours: "))
regPay = float(input("Wages: "))
if wageHours >= 60:
->total = (wageHours - 60) * 2 * regPay + 20 * 1.5 * regPay + regPay * 40
else:
->total = wageHours * regPay
print(name)
print(wageHours)
print(regPay)
print(total)
Explanation:
The program is self-explanatory.
However,
On line 4, the program checks if wageHours is greater than 60.
If yes, the corresponding wage is calculated.
On line 6, if workHours is not up to 60, the total wages is calculated by multiplying workHours by regPay, since there's no provision for how to calculate total wages for hours less than 60
The required details is printed afterwards
Note that -> represents indentation
Answer:
(1) manage the computer's resources, such as the central processing unit, memory, disk drives, and printers, (2) establish a user interface, and (3) execute and provide services for applications software.
It now difficult for computer technology as manufacturing cannot keep up with overwhelming transistor demand.
<h3>What was Moore's Law ?</h3>
Moore's Law is the one that talks about the fact that the number of transistors on a microchip is one that often goes up about two years always, even if the cost of computers is reduced.
Based on the above, It now difficult for computer technology as manufacturing cannot keep up with overwhelming transistor demand.
Learn more about computer technology from
brainly.com/question/24912812
#SPJ1
<span>Polymorphic message
Methods in different classes with a similar function are given the same name.
- Makes classes easier to use because programmers need to remember fewer method names.
- Employed as much as possible.
- Polymorphic message ex. is the toString method.</span>
Answer:
number = int(input("Enter number: "))
if (number % 4):
print("{} is not divisible by 4".format(number))
else:
print("{} is divisible by 4".format(number))
Explanation:
If the %4 operation returns a non-zero number, there is a remainder and thus the number is not divisable by 4.