Computer Science, asked by namo6658, 1 year ago

Edhesive 2.3 Code Practice

Answers

Answered by josiahpeters05
63

x=float(input("input an integer:"))

y=float(input("input an integer:"))

print("Quotient: "+ str(x / y))

print("Remainder:"+ str(x % y))


lee0807: Do you know the answer to question 2 and 3?
josiahpeters05: question 3 i dont know 2 you can pass with 3 though hour = int(input("Enter the hours: "))
minute = int(input("Enter the minutes: "))
minute = minute + 15
hour = int((hour-1) + minute / 60) % 12 + 1
minute = minute % 60
print("Hours: " + str(hour))
print("Minutes: " + str(minute))
Answered by joshuaquinn33
44

#2  is

a_ft = int(input("Enter the Feet for the first piece of fabric: "))

a_inc = int(input("Enter the Inches for the first piece of fabric: "))

b_ft = int(input("Enter the Feet for the second piece of fabric: "))

b_inc = int(input("Enter the Inches for the second piece of fabric: "))

sum_inc = a_inc + b_inc

# select the whole and the fractional part

inc_to_ft = sum_inc // 12

rem_from_div = sum_inc % 12

sum_ft = a_ft + b_ft + inc_to_ft

print("Feet: {} Inches: {}".format(sum_ft, rem_from_div))


romanarmy101: This is how i did it:
romanarmy101: sorry,
Similar questions