Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are senior programmer at GooBook and it is your responsibility to fix data corrupted by a computer bug. The data is in a PHP
You are senior programmer at GooBook and it is your responsibility to fix data corrupted by a computer bug. The data is in a PHP array called dates. This array is indexed by keys. The dates array contains dates in the format MM-DD-YYYY e.g. 05-24-2013. The array might look something like: $dates = array("some_date" => "03/27/2012", "key2" => "04/02/1990", "some_other_date" = > "05/06/2007"); However, due to the corruption, each date is now off by 3 days. You need to fix each date by somehow adding 3 days to each date. Be careful! Note that you cannot simply add 3 days to each day slot. There may be carry over to a new month or even to a new year. Thus you have to come up with a uniform way of fixing the dates. Output each fixed date on a new line. The output for this example would be: 03/30/2012 04/05/1990 05/09/2007
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started