+ 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 Answers
+ 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
+ 10
https://code.sololearn.com/cY3Q55w5gRk1/?ref=app
+ 10
https://code.sololearn.com/w75Bviqss3NF/?ref=app
https://code.sololearn.com/cEe156DSQ4II/?ref=app
https://code.sololearn.com/cdxuePK8ckeW/?ref=app
https://code.sololearn.com/c9chysAZ839b/?ref=app
https://code.sololearn.com/W5DS12EnCLf9/?ref=app
https://code.sololearn.com/ctwmhR67RS9b/?ref=app
https://code.sololearn.com/ctwmhR67RS9b/?ref=app
https://code.sololearn.com/c6n0638yCd3Q/?ref=app
https://code.sololearn.com/coQp5saXl9pe/?ref=app
https://code.sololearn.com/cfTh45E2BNKN/?ref=app
+ 8
Working on it!😉
+ 8
Danijel Ivanović Thank you very much and you are welcome as always it is a pleasure to participate to your challenges ! 👍👏👌😄😉😃😆
+ 7
can we use the SI system i don't like miles haha
+ 7
Finally!! 😅😀
Hope you like it! ☺
https://code.sololearn.com/c923FdV02dLd/?ref=app