+ 37
[ ASSIGNMENT: ] Will you make it?
You were camping with your friends far away from home, but when it's time to go back, you realize that you fuel is running out and the nearest pump is 50 miles away! You know that on average, your car runs on about 25 miles per gallon. There are 2 gallons left. TASK : Considering these factors, write a method that tells you if it is possible to get to the pump or not. NOTE : Method should return true if it is possible and false if not. /* Have fun...😃😄 && HappyCodings! */
25 ответов
+ 20
D_Stark
Always, my friend!! 😁👍😉
+ 20
Fabio
Ok! 😉👍Keep working!! 😆😀
+ 20
Jan Štěch
So why did not you copy and set up !?
The task is set to be done! 😉👍
+ 20
Sadaam Linux
😄😁👍Thanks a lot for support!! 😀👌😆😉
+ 19
hinanawi
Use whatever you want just to get to the pump!! 😁😄👍😂
The task is indicated in the same way, and you can freely convert the SI 👍😉
HappyCodings!! 😀👍
+ 18
Jan Štěch
Here it is required that the tasks be solved, regardless of where they taken!
And the books are written for the purpose of offering and presenting various types of tasks and problems?
We need a solution to show our innovation and creativity through problem solving, and thus bring new ideas and ways of solving tasks.
We learn here and we need practical examples or whatever you want.
So you keep coding and show us something new and better, share your knowledge with us!
Thanks! && HappyCoding!! 👍😉
+ 18
Rishabh Singh
where is your code!
post your code in the assignment 😉
+ 17
GooD Man Keep IT WorkinG👍🏿👌👏🏿👏😂😄😍
+ 17
Uni
😀🏁Congratulations!!🏁😄
😃👏👏👏 on Level 10! 👏👏💪😀
and new Badge!! 👌😉👍
Thanks a lot for participating!! 👏😄😊
+ 17
Rishabh Singh 👍😉
Thanks a lot for support friend! 😆
// Will you make it! :) 🍻
+ 11
Simple and playful code from me~~
https://code.sololearn.com/cmmOIl7fq95O/?ref=app
+ 10
My code goes with the idea of the assignment but it picks itself, randomly, the location of the pump
https://code.sololearn.com/WR9xrEwNc3Pe/?ref=app