Nov 100 100 2014 dec 100 100 2015 jan 100 100 2015

Info icon This preview shows pages 29–35. Sign up to view the full content.

Nov 1.00 1.00 2014 Dec 1.00 1.00 2015 Jan 1.00 1.00 2015 Feb 1.00 1.00 2015 Mar 1.00 1.00 2015 Apr 1.00 1.00 2015 May 1.00 1.00 2015 Jun 1.00 1.00 2015 Jul 1.00 1.00 2015 Aug 1.00 1.00 2015 Sep 1.00 1.00 2015 Oct 1.00 1.00 2015 Nov 1.00 1.00 2015 Dec 1.00 1.00 Jan 1.00 1.00 Feb 1.00 1.00 Mar 1.00 1.00 Apr 1.00 1.00 May 1.00 1.00 Jun 1.00 1.00 Jul 1.00 1.00
Image of page 29

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Aug 1.00 1.00 Sep 1.00 1.00 Oct 1.00 1.00 Nov 1.00 1.00 Dec 1.00 1.00 Jan 1.00 1.00 Feb 1.00 1.00 Mar 1.00 1.00 Apr 1.00 1.00 May 1.00 1.00 Jun 1.00 1.00 Jul 1.00 1.00 Aug 1.00 1.00 Sep 1.00 1.00 Oct 1.00 1.00 Nov 1.00 1.00 Dec 1.00 1.00 Jan 1.00 1.00 Feb 1.00 1.00 Mar 1.00 1.00 Apr 1.00 1.00 May 1.00 1.00 Jun 1.00 1.00 Jul 1.00 1.00 Aug 1.00 1.00 Sep 1.00 1.00 Oct 1.00 1.00 Nov 1.00 1.00 Dec 1.00 1.00 Jan 1.00 1.00 Feb 1.00 1.00 Mar 1.00 1.00 Apr 1.00 1.00 May 1.00 1.00 Jun 1.00 1.00 Jul 1.00 1.00 Aug 1.00 1.00 Sep 1.00 1.00 Oct 1.00 1.00 Nov 1.00 1.00 Dec 1.00 1.00 Jan 1.00 1.00 Feb 1.00 1.00 Mar 1.00 1.00 Apr 1.00 1.00 May 1.00 1.00 Jun 1.00 1.00 Jul 1.00 1.00 Aug 1.00 1.00 Sep 1.00 1.00 Oct 1.00 1.00 Nov 1.00 1.00 Dec 1.00 1.00 Jan 1.00 1.00 Feb 1.00 1.00 Mar 1.00 1.00 Apr 1.00 1.00 May 1.00 1.00 Jun 1.00 1.00 Jul 1.00 1.00 Aug 1.00 1.00
Image of page 30
Sep 1.00 1.00 Oct 1.00 1.00 Nov 1.00 1.00 Dec 1.00 1.00 Jan 1.00 1.00 Feb 1.00 1.00 Mar 1.00 1.00 Apr 1.00 1.00 May 1.00 1.00 Jun 1.00 1.00 Jul 1.00 1.00 Aug 1.00 1.00 Sep 1.00 1.00 Oct 1.00 1.00 Nov 1.00 1.00 Dec 1.00 1.00 Jan 1.00 1.00 Feb 1.00 1.00 Mar 1.00 1.00 Apr 1.00 1.00 May 1.00 1.00 Jun 1.00 1.00 Jul 1.00 1.00 Aug 1.00 1.00 Sep 1.00 1.00 Oct 1.00 1.00 Nov 1.00 1.00 Dec 1.00 1.00 Jan 1.00 1.00 Feb 1.00 1.00 Mar 1.00 1.00 Apr 1.00 1.00 May 1.00 1.00 Jun 1.00 1.00 Jul 1.00 1.00 Aug 1.00 1.00 Sep 1.00 1.00 Oct 1.00 1.00 Nov 1.00 1.00 Dec 1.00 1.00 Jan 1.00 1.00 Feb 1.00 1.00 Mar 1.00 1.00 Apr 1.00 1.00 May 1.00 1.00 Jun 1.00 1.00 Jul 1.00 1.00 Aug 1.00 1.00 Sep 1.00 1.00 Oct 1.00 1.00 Nov 1.00 1.00 Dec 1.00 1.00 Jan 1.00 1.00 Feb 1.00 1.00 Mar 1.00 1.00 Apr 1.00 1.00 May 1.00 1.00 Jun 1.00 1.00 Jul 1.00 1.00 Aug 1.00 1.00 Sep 1.00 1.00
Image of page 31

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Oct 1.00 1.00 Nov 1.00 1.00 Dec 1.00 1.00 Jan 1.00 1.00 Feb 1.00 1.00 Mar 1.00 1.00 Apr 1.00 1.00 May 1.00 1.00 Jun 1.00 1.00 Jul 1.00 1.00 Aug 1.00 1.00 Sep 1.00 1.00 Oct 1.00 1.00 Nov 1.00 1.00 Dec 1.00 1.00 Jan 1.00 1.00 Feb 1.00 1.00 Mar 1.00 1.00 Apr 1.00 1.00 May 1.00 1.00 Jun 1.00 1.00 Jul 1.00 1.00 Aug 1.00 1.00 Sep 1.00 1.00 Oct 1.00 1.00 Nov 1.00 1.00 Dec 1.00 1.00 Jan 1.00 1.00 Feb 1.00 1.00 Mar 1.00 1.00 Apr 1.00 1.00 May 1.00 1.00 Jun 1.00 1.00 Jul 1.00 1.00 Aug 1.00 1.00 Sep 1.00 1.00 Oct 1.00 1.00 Nov 1.00 1.00 Dec 1.00 1.00 Jan 1.00 1.00 Feb 1.00 1.00 Mar 1.00 1.00 Apr 1.00 1.00 May 1.00 1.00 Jun 1.00 1.00 Jul 1.00 1.00 Aug 1.00 1.00 Sep 1.00 1.00 Oct 1.00 1.00 Nov 1.00 1.00 Dec 1.00 1.00 Jan 1.00 1.00 Feb 1.00 1.00 Mar 1.00 1.00 Apr 1.00 1.00 May 1.00 1.00 Jun 1.00 1.00 Jul 1.00 1.00 Aug 1.00 1.00 Sep 1.00 1.00 Oct 1.00 1.00
Image of page 32
Nov 1.00 1.00 Dec 1.00 1.00 Jan 1.00 1.00 Feb 1.00 1.00 Mar 1.00 1.00 Apr 1.00 1.00 May 1.00 1.00 Jun 1.00 1.00 Jul 1.00 1.00 Aug 1.00 1.00 Sep 1.00 1.00 Oct 1.00 1.00 Nov 1.00 1.00 Dec 1.00 1.00 Jan 1.00 1.00 Feb 1.00 1.00 Mar 1.00 1.00 Apr 1.00 1.00 May 1.00 1.00 Jun 1.00 1.00 Jul 1.00 1.00 Aug 1.00 1.00 Sep 1.00 1.00 Oct 1.00 1.00 Nov 1.00 1.00 Dec 1.00 1.00 Jan 1.00 1.00 Feb 1.00 1.00 Mar 1.00 1.00 Apr 1.00 1.00 May 1.00 1.00 Jun 1.00 1.00 Jul 1.00 1.00 Aug 1.00 1.00 Sep 1.00 1.00 Oct 1.00 1.00 Nov 1.00 1.00 Dec 1.00 1.00 Jan 1.00 1.00 Feb 1.00 1.00 Mar 1.00 1.00 Apr 1.00 1.00 May 1.00 1.00 Jun 1.00 1.00 Jul 1.00 1.00 Aug 1.00 1.00 Sep 1.00 1.00 Oct 1.00 1.00 Nov 1.00 1.00 Dec 1.00 1.00 sum the rainfall for each year year rain(sum) 2011 12.00 2012 24.00 2013 36.00 2014 48.00 2015 60.00 72.00 84.00 96.00 108.00
Image of page 33

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

120.00 132.00 144.00 156.00 168.00 180.00 192.00 204.00 216.00 228.00 240.00 252.00 264.00 276.00 288.00 300.00 Please try the Precipitation program again. What happens if you change the NUMMONTHS and NUMYEARS definitions to other values? Be sure to use both  lower and higher values. Describe and implement fixes for any issues if errors results. code: #define NUMMONTHS 12 #define NUMYEARS 5 #include <stdio.h> // function prototypes void inputdata(); void printdata(); // Global variables // These are available to all functions float Raindata[NUMYEARS][NUMMONTHS]; char years[NUMYEARS][5] = {"2011","2012","2013","2014","2015"}; char months[NUMMONTHS][12] ={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"}; int main () { char enterData = 'y'; printf("Do you want to input Precipatation data? (y for yes)\n"); scanf("%c",&enterData); if (enterData == 'y') { // Call Function to Input data inputdata(); // Call Function to display data printdata(); }
Image of page 34
Image of page 35
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '09
  • Rain, scanf, enter, windspeed

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern