These videos are great but I lack one piece here: If you use the modulo , how lets say you have 111 cents - this should result in 4+1+1 =6 coins used change%25 will result in modulo of 11, but how do you change the coins counter variable? coins ++ will only do it once, while you used 4 coins wouldn't it?
Round is a function that rounds the float number given to a certain decimal point. You round the value given by the user and multipled by 100 to give a number that is as precise as possible. She is saying that whatever value you have, it needs to be able to either be equal to a quarter or greater than a quarter for the loop to work.
Great video. I enjoy watching these videos :)
These videos are great but I lack one piece here: If you use the modulo , how lets say you have 111 cents - this should result in 4+1+1 =6 coins used change%25 will result in modulo of 11, but how do you change the coins counter variable? coins ++ will only do it once, while you used 4 coins wouldn't it?
i have the same question
My code works with double, but it doesn't work with float.
Works:
double x;
double round(double x);
Doesn't work:
float x;
float roundf(float x);
What does round do and also she in starting wrote quarter=25,then se is writing 0.25 what is that.can you please help me understand.
Round is a function that rounds the float number given to a certain decimal point. You round the value given by the user and multipled by 100 to give a number that is as precise as possible.
She is saying that whatever value you have, it needs to be able to either be equal to a quarter or greater than a quarter for the loop to work.
Wow, you rock.
Blasian Family Channel brought me here.