Object-Oriented Programming · OpenAI · Easy
Problem: GPU Credits II (Modified) Build a basic GPU credit account system that can increase a user's credits, attempt to decrease them, and report a user's balance. Required API Create a class or module providing at least these operations: add(user, amount): increase user's credit balance by amount. subtract(user, amount): attempt to reduce user's credit balance by amount. When the user's current balance is too small, leave the balance unchanged. getBalance(user): report…
Checking your access…