[ ASSIGNMENT: ]ย Will you make it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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! */

16th Apr 2018, 9:09 AM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
25 Answers
+ 20
D_Stark Always, my friend!! ๐Ÿ˜๐Ÿ‘๐Ÿ˜‰
16th Apr 2018, 4:21 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 20
Fabio Ok! ๐Ÿ˜‰๐Ÿ‘Keep working!! ๐Ÿ˜†๐Ÿ˜€
16th Apr 2018, 5:07 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 20
Jan ล tฤ›ch So why did not you copy and set up !? The task is set to be done! ๐Ÿ˜‰๐Ÿ‘
18th Apr 2018, 12:37 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 20
Sadaam Linux ๐Ÿ˜„๐Ÿ˜๐Ÿ‘Thanks a lot for support!! ๐Ÿ˜€๐Ÿ‘Œ๐Ÿ˜†๐Ÿ˜‰
21st Apr 2018, 4:29 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 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!! ๐Ÿ˜€๐Ÿ‘
16th Apr 2018, 12:41 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
16th Apr 2018, 8:20 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 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!! ๐Ÿ‘๐Ÿ˜‰
18th Apr 2018, 12:54 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 18
Rishabh Singh where is your code! post your code in the assignment ๐Ÿ˜‰
12th Aug 2018, 12:24 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 17
GooD Man Keep IT WorkinG๐Ÿ‘๐Ÿฟ๐Ÿ‘Œ๐Ÿ‘๐Ÿฟ๐Ÿ‘๐Ÿ˜‚๐Ÿ˜„๐Ÿ˜
21st Apr 2018, 4:05 PM
Sadaam Linux
Sadaam Linux - avatar
22nd Apr 2018, 3:45 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 17
Uni ๐Ÿ˜€๐ŸCongratulations!!๐Ÿ๐Ÿ˜„ ๐Ÿ˜ƒ๐Ÿ‘๐Ÿ‘๐Ÿ‘ on Level 10! ๐Ÿ‘๐Ÿ‘๐Ÿ’ช๐Ÿ˜€ and new Badge!! ๐Ÿ‘Œ๐Ÿ˜‰๐Ÿ‘ Thanks a lot for participating!! ๐Ÿ‘๐Ÿ˜„๐Ÿ˜Š
3rd May 2018, 5:15 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 17
Rishabh Singh ๐Ÿ‘๐Ÿ˜‰ Thanks a lot for support friend! ๐Ÿ˜† // Will you make it! :) ๐Ÿป
12th Aug 2018, 11:52 AM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 11
Simple and playful code from me~~ https://code.sololearn.com/cmmOIl7fq95O/?ref=app
16th Apr 2018, 1:43 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 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
16th Apr 2018, 11:36 AM
cyk
cyk - avatar
+ 10
https://code.sololearn.com/cY3Q55w5gRk1/?ref=app
16th Apr 2018, 4:19 PM
D_Stark
D_Stark - avatar
+ 8
Working on it!๐Ÿ˜‰
16th Apr 2018, 4:48 PM
Fabio
+ 8
Danijel Ivanoviฤ‡ Thank you very much and you are welcome as always it is a pleasure to participate to your challenges ! ๐Ÿ‘๐Ÿ‘๐Ÿ‘Œ๐Ÿ˜„๐Ÿ˜‰๐Ÿ˜ƒ๐Ÿ˜†
3rd May 2018, 5:17 PM
Uni
Uni - avatar
+ 7
can we use the SI system i don't like miles haha
16th Apr 2018, 11:46 AM
hinanawi
hinanawi - avatar
+ 7
Finally!! ๐Ÿ˜…๐Ÿ˜€ Hope you like it! โ˜บ https://code.sololearn.com/c923FdV02dLd/?ref=app
16th Apr 2018, 7:49 PM
Fabio