Answer and Explanation:
import Circle
#include<conio.h>
void main ()
int t , length , n
//for hexagon
def hexagon(t, length, n):
for _ in range(n):
t.fd(length)
t.lt(360 / n)
square = Circle.Circle()
square.penup()
square.sety(-270)
square.pendown()
hexagon(square, 30, 60)
Answer:
Abstraction
Explanation:
Under fundamental principles of software engineering, the term "abstraction" is simply defined as the act of highlighting some details and hiding other ones.
Thus, the correct answer among the options is Abstraction.
Answer:
def calculate_pay(total_worked_hours, rate_per_hour):
if total_worked_hours > 40:
return (40 * rate_per_hour) + ((total_worked_hours - 40) * 2 * rate_per_hour)
else:
return total_worked_hours * rate_per_hour
Explanation:
- Create the calculate_pay function that takes 2 parameters.
- Inside the function check whether the total_worked_hours is greater than 40 and then return the pay by calculating with the help of formula for work over 40 hours.
- Otherwise return the pay by multiplying the total_worked_hours with rate_per_hour.