Cash Balance Math Bug
3.2/10
Overall Feedback
You did a great job explaining the math error. To get a better fix, you should tell the AI which files to look at. You should also ask it to prevent this mistake in the future.
• google/gemini-3-flash
Your Optimized Prompt is Ready
Act as a Senior Financial Developer. I have a bug in my withdrawal logic. A user entered 15,000 as the receiver amount and 10,000 as the pay amount for a 5,000 withdrawal. This caused a 10,000 error in the cash balance sheet. First, search the codebase for files related to withdrawals and balance sheets. Second, explain why the system allowed these wrong numbers. Third, provide a fix to the code. ...
Free forever. Just enter your email.
How Did Your Prompt Do?
Powered by Proven Best Practices
OpenAI
Anthropic