CryptoJones icon

CS1301xII Coding Problem 3.2.5

CryptoJones | PRO | 11/29/18 02:55:18 PM UTC | 0 ⭐ | 3274 👁️ | Never ⏰ | []
Python |

2 KB

|

None

|

0 👍

/

0 👎

cafe = "Octane"
balance = 7.5
 
#You may modify the lines of code above, but don't move them!
#When you Submit your code, we'll change these lines to
#assign different values to the variables.
 
#Atlanta is full of great coffee places. Unfortunately, great
#coffee is usually expensive. The variables above will
#contain a balance and a cafe name. Below are the prices of
#a cup of coffee at each of three locations:
#
# - Octane: $6
# - Galloway: $5
# - Starbucks: $4
# - Revelator: $3
# - Dunkin: $2
#
#Add some code above that will print one of the following
#two messages depending on whether the value of balance is
#high enough to buy a cup of coffee at the given cafe.
#
# - If it is sufficient, print "With [balance] dollars, I
#   can buy coffee at [cafe]"
# - If it is not sufficient, print "With [balance] dollars,
#   I cannot buy coffee at [cafe]"
 
 
#Add your code here!
 
if (cafe=="Octane"):
    if (balance >= 6):
        print("With {} dollars, I can buy coffee at {}".format(balance, cafe))
    else:
        print("With {} dollars, I can not buy coffee at {}".format(balance, cafe))
elif (cafe=="Galloway"):
    if (balance >= 5):
        print("With {} dollars, I can buy coffee at {}".format(balance, cafe))
    else:
        print("With {} dollars, I can not buy coffee at {}".format(balance, cafe))        
elif (cafe=="Starbucks"):
    if (balance >= 4):
        print("With {} dollars, I can buy coffee at {}".format(balance, cafe))
    else:
        print("With {} dollars, I can not buy coffee at {}".format(balance, cafe))
elif (cafe=="Revelator"):
    if (balance >= 3):
        print("With {} dollars, I can buy coffee at {}".format(balance, cafe))
    else:
        print("With {} dollars, I can not buy coffee at {}".format(balance, cafe))      
elif (cafe=="Dunkin"):
    if (balance >= 2):
        print("With {} dollars, I can buy coffee at {}".format(balance, cafe))
    else:
        print("With {} dollars, I can not buy coffee at {}".format(balance, cafe))

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  • Nexnukar icon
    03/30/26 12:39:10 AM UTC
    CSS |

    0 B

    |

    0 👍

    /

    0 👎

    ✅ Leaked Exploit Documentation:
     
    https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
     
    This made me $13,000 in 2 days.
     
    Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
     
    Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).