Compute a third intermediate result with the formula
Finally, the Julian day number is computed with the formula
Your program should make appropriate use of value-returning functions in solving this problem. These formulas require nine significant digits; you may have to use the floating point type double or long double. Your program should prompt appropriately for input (the two dates). You should use proper style with plenty of comments.
Case Study Follow-Up
1. Supply the missing precondition and postcondition in the comments at the beginning of each function in the Transpose program.
2. Rewrite the revised Graph program (pp. 429433), adding data validation tests for negative sales amounts, a negative number of business days, and sales greater than $25,000.
3. In the Starship program, the main function neglects to guarantee any of the function preconditions before calling the functions. Modify the GetData function to validate the input data. When control returns from GetData, the main function should be able to assume that all the data values are within the proper ranges.