-
-
Save udacityandroid/90017426439d37728a29 to your computer and use it in GitHub Desktop.
private String createCalendarEventReminder(String eventName, String location, int minutesAway) { | |
String reminder = "You have an upcoming event in " + minutesAway + " minutes."; | |
reminder = reminder + " It is " + eventName + " held at " + location + "."; | |
return reminder; | |
} |
private int deductPoints(int pointsUsed) { | |
// Everyone starts with 100 points | |
int numberOfPoints = 100 - pointsUsed; | |
return numberOfPoints; | |
} |
private String findTotalTripLength(int distanceOfFirstTrip, int distanceOfSecondTrip, int distanceOfThirdTrip) { | |
// Assume we need 2 miles to go to our friend's home (where the trip will start). | |
int totalLength = 2; | |
// Then start adding in the trip length. | |
totalLength = totalLength + distanceOfFirstTrip + distanceOfSecondTrip + distanceOfThirdTrip; | |
// Form a string to display the total trip length. | |
String message = "The total trip will be: " + totalLength + " miles."; | |
return message; | |
} |
wow @pushpalroy thanks! glad i scrolled all the way here... I really couldn't see why my answers were incorrect
Working well. @pushpalory, I always make sure first that no white spaces around.
DONE
if anyone is getting an error on String,int,String in return data type then try writing the code without leaving any space after the types are written ,my answer was giving error because of the space after the word
Getting the same error as posted above by rashibudati.
Awesome, Done!
I keep getting Try Again Message on method 2 return Data Type which is int
Done
done with it
done
Mr. Robot Root, you're supposed to follow instruction from the video and not to run the code. Thanks
This is cool, a lot of things to learn.
thank you so much
done
done
Done
Done
done
Make sure whene you copy-past to remove space at the end of words that you copy.
event we do correct , said not correct anyway I passed examin :)
who is doing in 2020?
during the pandemic
well, this course is going great.
[email protected]
Todo bien gracias
Realizando cursos durante la pandemia
Done
dab dab dab dab dab dab dab