


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Information on the julian day number, its definition, algorithm, and code structure for a programming project. Students will learn how to calculate julian day numbers using a thirteen-step algorithm and write functions to input data and calculate the numbers. The document also covers data validation and the use of stubs during program development.
Typology: Slides
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Larry Caretto Computer Science 106
2
3
4
5
1-Jan-2007 11:59:59.9 pm 2454102.
1-Jan-2007 noon 2454102
1-Jan-2007 0:00:00 am 2454101.
31-Dec-2006 6:00:00 pm 2454101.
Calendar Date Time Julian Number
6
7
8
9
11
12
19
21
22
int first, last, i, sum = 0; cin << first << last; if ( first > last ) { int temp = first; first = last; last = temp; } if ( first % 2 != 0 ) first++; for ( i = first; i <= last; i += 2 ) sum += i;
23
if ( first % 2 != 0 ) first++; for ( i = first; i <= last; i += 2 ) sum += i;
cin << first << last; while ( first != 0 && last != 0 ) { // place code for a single // calculation here cin << first << last; }