id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

tmhscs@gmail.com datetime > dateTime_daysTillXmas
prev  |  next  |  chance

Given integers of a month, day, and year, calculate how many days until December 25th of that year. Return 0 if it is Christmas Day and a negative number if it is past Christmas day.


dateTime_daysTillXmas(1, 1, 2000) → 359
dateTime_daysTillXmas(1, 1, 2001) → 358
dateTime_daysTillXmas(12, 24, 2000) → 1

...Save, Compile, Run (ctrl-enter)

public int dateTime_daysTillXmas(int m, int d, int y) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Post-solution available

Copyright Nick Parlante 2017 - privacy