Find Jobs
Hire Freelancers

C++ help

$30-5000 USD

Geschlossen
Veröffentlicht vor fast 15 Jahren

$30-5000 USD

Bezahlt bei Lieferung
only use the cin and cout object in the main function of your program. You must also create at least one other function outside of main. Write a program that determines the day of the week for a given date. You can invent your own complex algorithm that takes into account the special leap year rules, and changes in calendars, but this is a case where it makes sense to look for things that are familiar. you will find that there is a standard way or representing a date, called the Julian Day Number (JDN). This is the number of days that have elapsed since January 1, 4713 BC. Given the JDN for a date, there is a simple formula that tells the day of the week: DayofWeek = (JDN + 1) % 7 The result is in the range of 0 to 6, with 0 representing Sunday. The only remaining problem is how to compute the JDN, which is not so simple. The algorithm computes several intermediate results that are added together to give the JDN. We look at the computation of each of these three intermediate values in turn. If the date comes from the Gregorian calendar (later than October 15, 1582), then compute intRes1 with the following formula, otherwise let intRes1 be zero. intRes1 = 2 ??" year / 100 + year / 400 (integer division) The second intermediate result is computed as follows: intRes2 = int(365.25 * year) We compute the third intermediate value with this formula: intRes3 = int(30.6001 * (month + 1) ) Finally, the JDN is computed this way: JDN = intRes1 + intRes2 + intRes3 + day + 1720994.5 Your program should make appropriate use of value-returning functions in solving this program. These formulas require nine significant digits; you may have to use the integer type long and the floating-point type double. Your program should prompt appropriately for input of the date, and properly label the output. Use proper coding style with comments to document the algorithm as needed. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows? (depending on the nature? of the deliverables): a)? For web sites or? other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software? installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform Dev C++
Projekt-ID: 2794153

Über das Projekt

30 Vorschläge
Remote Projekt
Aktiv vor 15 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
30 Freelancer bieten im Durchschnitt $58 USD für diesen Auftrag
Avatar des Nutzers
See private message.
$204 USD in 10 Tagen
5,0 (28 Bewertungen)
5,1
5,1
Avatar des Nutzers
See private message.
$5,95 USD in 10 Tagen
5,0 (47 Bewertungen)
4,9
4,9
Avatar des Nutzers
See private message.
$12,75 USD in 10 Tagen
4,9 (32 Bewertungen)
4,7
4,7
Avatar des Nutzers
See private message.
$21,25 USD in 10 Tagen
5,0 (22 Bewertungen)
4,6
4,6
Avatar des Nutzers
See private message.
$85 USD in 10 Tagen
4,4 (19 Bewertungen)
4,6
4,6
Avatar des Nutzers
See private message.
$22,95 USD in 10 Tagen
5,0 (38 Bewertungen)
3,7
3,7
Avatar des Nutzers
See private message.
$21,25 USD in 10 Tagen
5,0 (31 Bewertungen)
3,9
3,9
Avatar des Nutzers
See private message.
$85 USD in 10 Tagen
5,0 (9 Bewertungen)
2,9
2,9
Avatar des Nutzers
See private message.
$8,50 USD in 10 Tagen
5,0 (11 Bewertungen)
2,8
2,8
Avatar des Nutzers
See private message.
$21,25 USD in 10 Tagen
5,0 (2 Bewertungen)
2,3
2,3
Avatar des Nutzers
See private message.
$12,75 USD in 10 Tagen
5,0 (10 Bewertungen)
2,2
2,2
Avatar des Nutzers
See private message.
$24,65 USD in 10 Tagen
5,0 (7 Bewertungen)
2,4
2,4
Avatar des Nutzers
See private message.
$67,15 USD in 10 Tagen
5,0 (1 Bewertung)
2,3
2,3
Avatar des Nutzers
See private message.
$12,75 USD in 10 Tagen
4,9 (5 Bewertungen)
2,1
2,1
Avatar des Nutzers
See private message.
$5,95 USD in 10 Tagen
5,0 (2 Bewertungen)
0,5
0,5
Avatar des Nutzers
See private message.
$17 USD in 10 Tagen
5,0 (1 Bewertung)
0,7
0,7
Avatar des Nutzers
See private message.
$12,75 USD in 10 Tagen
5,0 (2 Bewertungen)
0,3
0,3
Avatar des Nutzers
See private message.
$12,75 USD in 10 Tagen
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
See private message.
$42,50 USD in 10 Tagen
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
See private message.
$17 USD in 10 Tagen
0,0 (0 Bewertungen)
0,0
0,0

Über den Kunden

Flagge von UNITED STATES
United States
0,0
0
Mitglied seit Juni 29, 2009

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.