Ask your own question, for FREE!
Computer Science 14 Online
theycallmelesbian:

Which of the programs below will result in the following output? Hours 8 8.5 10 Total 26.5 A- print(Hours) print(8) print(8.5) print(10) print(Total) print(8 + 8.5 + 10) b- print("Hours") print("8") print("8.5") print("10") print("Total") print("8" + "8.5" + "10") c- print("Hours") print(8) print(8.5) print(10) print("Total") print(8 + 8.5 + 10) D- print("Hours") print("8") print("8.5") print("10") print("Total") print("8 + 8.5 + 10")

theycallmelesbian:

@Ultrilliam

theycallmelesbian:

i need help i dont get it

dude:

As far as I know, numbers do not need to be in quotes. That would convert them into strings which is not something we'd like when doing math `Hours`, and `Total` should definitely be in quotes `8`, `8.5`, `10`, and `8 + 8.5 + 10` do not need to be in quotes Again, @Ultrilliam correct me if I'm wrong pls

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!