'F' → Fullscreen
# Activity 1.1 - Task 1# Engineer's first Python program
print("Engineering is about solving problems.")print('Coding helps us solve problems faster.')print("Let's calculate something useful!")6 collapsed lines
# Activity 1.1 - Task 1# Engineer's first Python program
print("Engineering is about solving problems.")print('Coding helps us solve problems faster.')print("Let's calculate something useful!")
# Task 2: Combine text and numeric output
print("The area of a 10x5 plate is", 10 * 5, "square cm.")10 collapsed lines
# Activity 1.1 - Task 1# Engineer's first Python program
print("Engineering is about solving problems.")print('Coding helps us solve problems faster.')print("Let's calculate something useful!")
# Task 2: Combine text and numeric output
print("The area of a 10x5 plate is", 10 * 5, "square cm.")
# Task 3: Convert inches to centimeters# 1 inch = 2.54 cm
inches = 8.5cm = inches * 2.54
print(inches, "inches is equal to", cm, "centimeters.")18 collapsed lines
# Activity 1.1 - Task 1# Engineer's first Python program
print("Engineering is about solving problems.")print('Coding helps us solve problems faster.')print("Let's calculate something useful!")
# Task 2: Combine text and numeric output
print("The area of a 10x5 plate is", 10 * 5, "square cm.")
# Task 3: Convert inches to centimeters# 1 inch = 2.54 cm
inches = 8.5cm = inches * 2.54
print(inches, "inches is equal to", cm, "centimeters.")
# Task 4: Use f-strings to simplify formatting
voltage = 12current = 1.5power = voltage * current
print(f"A circuit with {voltage}V and {current}A uses {power}W of power.")26 collapsed lines
# Activity 1.1 - Task 1# Engineer's first Python program
print("Engineering is about solving problems.")print('Coding helps us solve problems faster.')print("Let's calculate something useful!")
# Task 2: Combine text and numeric output
print("The area of a 10x5 plate is", 10 * 5, "square cm.")
# Task 3: Convert inches to centimeters# 1 inch = 2.54 cm
inches = 8.5cm = inches * 2.54
print(inches, "inches is equal to", cm, "centimeters.")
# Task 4: Use f-strings to simplify formatting
voltage = 12current = 1.5power = voltage * current
print(f"A circuit with {voltage}V and {current}A uses {power}W of power.")
# Task 5: Simple beam load# Formula: stress = force / area
force = 500 # Newtonsarea = 25 # cm^2
stress = force / areaprint(f"The beam experiences {stress} N/cm^2 of stress.")Your program output should something similar to the sample output below.
Engineering is about solving problems.Coding helps us solve problems faster.Let's calculate something useful!The area of a 10x5 plate is 50 square cm.8.5 inches is equal to 21.59 centimeters.A circuit with 12V and 1.5A uses 18.0W of power.The beam experiences 20.0 N/cm^2 of stress.You may write your reflection answers as comments at the bottom of your code.
Submit your activity and reflection answers to the appropriate dropbox.