Hi! I’m haveing some issues with this project can someone help me out?
I’ve finished writing the algorithm for the project and all the tests passed but left with two of them and that’s test 12 and test 19
As for test 12 it’s wierd to me I don’t know is there’s an error from you side or what.
It says
When price is 3.26, the value in the #cash element is 100, cid is [["PENNY", 1.01], ["NICKEL", 2.05], ["DIME", 3.1], ["QUARTER", 4.25], ["ONE", 90], ["FIVE", 55], ["TEN", 20], ["TWENTY", 60], ["ONE HUNDRED", 100]], and the #purchase-btn element is clicked, the value in the #change-due element should be "Status: OPEN TWENTY: $60 TEN: $20 FIVE: $15 ONE: $1 QUARTER: $0.5 DIME: $0.2 PENNY: $0.04".
and when I run that I get this in the #change-due element:
Status: OPEN TWENTY: $60 TEN: $20 FIVE: $15 ONE: $1 QUARTER: $0.5 DIME: $0.2 PENNY: $0.04
which I don’t know the difference between
- freecodecamp: "Status: OPEN TWENTY: $60 TEN: $20 FIVE: $15 ONE: $1 QUARTER: $0.5 DIME: $0.2 PENNY: $0.04".
+ My code: Status: OPEN TWENTY: $60 TEN: $20 FIVE: $15 ONE: $1 QUARTER: $0.5 DIME: $0.2 PENNY: $0.04
and it’s not passing
And for the test 19
It says
When price is less than the value in the #cash element, total cash in drawer cid is equal to change due, and the #purchase-btn element is clicked, the value in the #change-due element should be "Status: CLOSED" with change due in coins and bills sorted in highest to lowest order.
which all my results obeyed this, here’s an example which I run test 18 and it passed
Status: CLOSED PENNY: $0.5
This says CLOSED and it’s followd by the change due and it’s also not passing
Please someone should help me out I’ve been working on this project more than a week, I don’t even know if I’ll get an instatnce response cus I need an instance response and I’ll appreciate if you do