Author | Message |
---|---|
Doggy213
Posts: 11
|
Posted 22:38 Mar 12, 2019 |
I need help m8s :(! |
otovar
Posts: 14
|
Posted 22:39 Mar 12, 2019 |
with number 4? lol |
Doggy213
Posts: 11
|
Posted 22:40 Mar 12, 2019 |
yessssss number 4 |
otovar
Posts: 14
|
Posted 22:41 Mar 12, 2019 |
I'm stuck too... lol |
DouglasA.
Posts: 11
|
Posted 22:42 Mar 12, 2019 |
I used a lot of if's, and strings for the fourth exercise |
otovar
Posts: 14
|
Posted 22:43 Mar 12, 2019 |
I asked just in case if you needed help with 1,2 or 3. But I'm stuck on 4 too. :( |
Doggy213
Posts: 11
|
Posted 22:43 Mar 12, 2019 |
i mean i am stuck on 3 too lol |
Doggy213
Posts: 11
|
Posted 22:44 Mar 12, 2019 |
a = ('Toy Story 3')
I have this for 3 but its a bit iffy its not coming out correctly. |
rnorton
Posts: 2
|
Posted 22:45 Mar 12, 2019 |
Hey!!!! That's how I did it! I'm not sure if I should be sharing but since it is a forum and we should be helping each other xD Try to tweak it a little bit, there is a bunch of ways to code using logic. # CURRENCY print("THIS PRICE IS IN US DOLLARS ONLY!", end="") # COST print("\n\nEnter the cost of the meal - ", end="")
print("Enter type of restaurant (R=regular, G=good, F=fancy) - ", end="")
print("Enter the number of people in your party - ", end="")
print("Enter type of service (P=poor, G=good, E=exellent) - ", end="")
tip = 0 if (type == "G"): if (type == "F"):
additions = 0 if (numb >= 1): if (numb >= 6): if (numb > 10): # QUALITY OF SERVICE FEES servicefee = 0 if (service == "P"): if (service == "G"): if (service == "E"):
print("\nYou owe %d as a tip!" % tip) total = cost + tip + additions + servicefee print("The total price is $%d USD" % total) |
otovar
Posts: 14
|
Posted 22:52 Mar 12, 2019 |
danggggg |
otovar
Posts: 14
|
Posted 22:53 Mar 12, 2019 |
this is mines lmfao
print("Please input your age") |
otovar
Posts: 14
|
Posted 22:55 Mar 12, 2019 |
ohhh thats number 4... I posted number 3 . nice code on number 4 btw. |
DouglasA.
Posts: 11
|
Posted 22:58 Mar 12, 2019 |
since someone else posted their example i also will give mine,
#part 2 [---PRICE---] |
DouglasA.
Posts: 11
|
Posted 23:01 Mar 12, 2019 |
I compared my work with yours and it seems that both works the same. : ) |