18 lines
634 B
Python
18 lines
634 B
Python
# File: Pease-hw1b.py
|
|
# Author: PEASE, NICHOLAS
|
|
# Date: 12 SEP 2022
|
|
# Section: 1002-LAB
|
|
# E-mail: nicholas.pease@maine.edu
|
|
# Description:
|
|
# Code for purchasing ice cream for myself and two friends.
|
|
# Collaboration:
|
|
# I discussed this homework with no one
|
|
|
|
price = float(input("How much is this ice cream bar? "))
|
|
total_cost = 3*price*1.055
|
|
print("I would like three bars. Here is $"+str(total_cost)+".\nThank you.")
|
|
|
|
|
|
# I tried golfing it but realized it would not match the required variable parameters
|
|
#
|
|
#print("I would like three bars. Here is $"+str((3*float(input("How much is this ice cream bar?")))*1.055)+".\nThank You.") |