Question: can someone help me working on my Java homework ? : Java!!! Java !! Make a function called makeNextFileName, which takes no parameters, and returns
can someone help me working on my Java homework ? :
Java!!! Java !!
Make a function called makeNextFileName, which takes no parameters, and returns either the null string, or a string of the form MM-DD-YYYY.csv, where MM-DD-YYY is a valid date. (The .csv extension means "Comma Separated Value",which is one way to export information from a database or spreadsheet into a text file.) For example, makeNextFileName could return 03-31-2020.csv. Each time it is called, makeNextFileName will return a string that encodes the next valid date in an interval, if there is one. For example, the next time makeNextFileName is called after returning 03-31-2020, it could return 04-01-2020. Work on this without using global variables, and allowing an interval to extend over multiple years, including leap years.
The first time makeNextFileName is called, prompt the user for a starting date,and the number of days in the analysis interval.makeNextFileName will not prompt the user on subsequent calls. After returning file names for each dayin the analysis interval, makeNextFileName will return the null string.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
