Alpha Geek

(8)

$10/per page/Negotiable

About Alpha Geek

Levels Tought:
University

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Environmental science,Essay writing,Programming,Social Science,Statistics Hide all
Teaching Since: Apr 2017
Last Sign in: 438 Weeks Ago, 1 Day Ago
Questions Answered: 9562
Tutorials Posted: 9559

Education

  • bachelor in business administration
    Polytechnic State University Sanluis
    Jan-2006 - Nov-2010

  • CPA
    Polytechnic State University
    Jan-2012 - Nov-2016

Experience

  • Professor
    Harvard Square Academy (HS2)
    Mar-2012 - Present

Category > Programming Posted 16 May 2017 My Price 5.00

Write a function named daycount() that accepts a month

(Program) a. Write a function named daycount() that accepts a month, day, and year as its input arguments; calculates an integer representing the total number of days from the turn of the century to the date that’s passed; and returns the calculated integer to the calling function. For this problem, assume each year has 365 days and each month has 30 days. Test your function by verifying that the date 1/1/00 returns a day count of 1.

b. Include the daycount() function written for Exercise 8a in a working program. The main() function should correctly call daycount() and display the integer returned by the function. Test the function by passing various data to it and verifying the returned value.

 

Answers

(8)
Status NEW Posted 16 May 2017 08:05 AM My Price 5.00

-----------

Attachments

file 1494923439-Answer.docx preview (155 words )
(-----------Pro-----------gra-----------m) -----------a. -----------Wri-----------te -----------a f-----------unc-----------tio-----------n n-----------ame-----------d d-----------ayc-----------oun-----------t()----------- th-----------at -----------acc-----------ept-----------s a----------- mo-----------nth-----------, d-----------ay,----------- an-----------d y-----------ear----------- as----------- it-----------s i-----------npu-----------t a-----------rgu-----------men-----------ts;----------- ca-----------lcu-----------lat-----------es -----------an -----------int-----------ege-----------r r-----------epr-----------ese-----------nti-----------ng -----------the----------- to-----------tal----------- nu-----------mbe-----------r o-----------f d-----------ays----------- fr-----------om -----------the----------- tu-----------rn -----------of -----------the----------- ce-----------ntu-----------ry -----------to -----------the----------- da-----------te -----------tha-----------tâ€-----------™s -----------pas-----------sed-----------; a-----------nd -----------ret-----------urn-----------s t-----------he -----------cal-----------cul-----------ate-----------d i-----------nte-----------ger----------- to----------- th-----------e c-----------all-----------ing----------- fu-----------nct-----------ion-----------. F-----------or -----------thi-----------s p-----------rob-----------lem-----------, a-----------ssu-----------me -----------eac-----------h y-----------ear----------- ha-----------s 3-----------65 -----------day-----------s a-----------nd -----------eac-----------h m-----------ont-----------h h-----------as -----------30 -----------day-----------s. -----------Tes-----------t y-----------our----------- fu-----------nct-----------ion----------- by----------- ve-----------rif-----------yin-----------g t-----------hat----------- th-----------e d-----------ate----------- 1/-----------1/0-----------0 r-----------etu-----------rns----------- a -----------day-----------
Not Rated(0)