Hi Kakamotobi, great job the app looks very good! :)
In my opinion there is no reason to have to calculate the prices, you can totally hardcode them. In the real world in a case like this you'd either hardcode the 2 options or receive the values from a database. In either case you don't need to calculate them.
In fact, you're not being able to get the right number, simply because the numbers are not being calculated with an algorithm. They took the monthly prices, multiplied them by 12 to get a year amount, then rounded down to give the user a discount. I'm sure you can find an algorithm to convert the monthly prices into the yearly prices if you try really hard, but in my opinion this goes beyond the scope of this exercise.
@Kakamotobi
Posted
@avizmarques
Hi avizmarques, thank you! :)
I realize you're right. I guess I was a bit too indulged in the project, and disregarded how things would be in the real world.
Thanks for your comment!