Question: Part 1 requires only to add the implementation into the header files. All the information to how they are used, and what values to use

Part 1 requires only to add the implementation into the header files. All the information to how they are used, and what values to use is on the pictures. I just need help with the syntax to how to implement these 3 functions.  Part 1 requires only to add the implementation into the header
files. All the information to how they are used, and what values
to use is on the pictures. I just need help with the
syntax to how to implement these 3 functions. Part 1: Julian Day
Number Calculations The calculations required for our two classes are described in
the Wikipedia article on Julian day available at https:llen.wiki The three functions
we need are described in sections 4.1, 4.2, and 4.5. The function

Part 1: Julian Day Number Calculations The calculations required for our two classes are described in the Wikipedia article on Julian day available at https:llen.wiki The three functions we need are described in sections 4.1, 4.2, and 4.5. The function prototypes for these functions should be placed into a header file called julianfunes.h and implemented in the file julianfuncs.cpp. The .h file will be provided for you so you must implement these three functions in the .cpp file. The first function we need to write converts a Gregorian Calendar day (i.e. day, month, year) to a Julian Day Number. The function prototype is shown below II Convert Gregorian Calendar day to Julian Day Number int GregorianToJDN (int Y, int M, int D) And can be calculated with the following equation as described in section 4.1 of the Wikipedia article: JDN = (1461 x (Y + 4800 + (M-14)/12)/4 +(367 x (M-2-12x (N-14)/12))/12-(3 x (Y+ 4900 (M-14/12 100)4+D-32075 The second function is very similar and is used to convert a Julian Calendar day (day, month, year) to a Julian day Number. The function prototype is shown below: // Convert Julian Calendar day to Julian Day Number int JulianToJDN(int Y, int M, int D); And can be calculated with the following equation as described in section 4.2 of the Wikipedia article: JDN = 367 Y-(7 x (Y + 5001 + (M-9yz)y4 + (275 x M)/9 + D + 1729777 The third function that you need to implement has the following function prototype: // Convert a Julian Day Number to a Julian or Gregorian Calendar day

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!