Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

Hello, I need help with this assignment. Kindly find attache the assignment details

Hello, I need help with this assignment. Kindly find attache the assignment details.

1CMIS 102 Hands-On LabWeek 8OverviewThis hands-on lab allows you to follow and experiment with the critical steps of developing a programincluding the program description, analysis, test plan, and implementation with C code.The exampleprovided uses sequential, repetition, selection statements, functions, strings and arrays.Program DescriptionThis program will input and store meteorological data into an array. The program will prompt the user toenter the average monthly rainfall for a specific region and then use a loop to cycle through the arrayand print out each value. The program should store up 5 years of meteorological data. Data is collectedonce per month. The program should provide the option to the user of not entering any data.AnalysisI will use sequential, selection, and repetition programming statements and an array to store data.I will define a 2-D array of Float number: Raindata[][] to store the Float values input by the user. To storeup to 5 years of monthly data, the array size should be at least 5*12 = 60 elements. In a 2D array this willbe RainData[5][12]. We can use #defines to set the number of years and months to eliminate hard-coding values.A float number (rain) will also be needed to input the individual rain data.A nested for loop can be used to iterate through the array to enter Raindata. A nested for loop can alsobe used to print the data in the array.A array of strings can be used to store year and month names. This will allow a tabular display withlabels for the printout.Functions will be used to separate functionality into smaller work units. Functions for displaying the dataand inputting the data will be used.A selection statement will be used to determine if data should be entered.Test PlanTo verify this program is working properly the input values could be used for testing:Test CaseInputExpected Output1Enter data? = y1.22.23.32.210.212.22.30.40.21.12.1yearmonth rain2011Jan1.202011Feb2.202011Mar3.302011Apr2.202011May10.202011Jun12.202011Jul2.302011Aug0.402011Sep0.202011Oct1.102011Nov2.102011Dec0.40
Background image of page 1
20.41.12.23.32.210.212.22.30.40.21.12.10.41.12.23.32.210.212.22.30.40.21.12.10.41.12.23.32.210.212.22.30.40.21.12.10.41.12.23.32.210.212.22.30.40.21.12.10.42012Jan1.102012Feb2.202012Mar3.302012Apr2.202012May10.202012Jun12.202012Jul2.302012Aug0.402012Sep0.202012Oct1.102012Nov2.102012Dec0.402013Jan1.102013Feb2.202013Mar3.302013Apr2.202013May10.202013Jun12.202013Jul2.302013Aug0.402013Sep0.202013Oct1.102013Nov2.102013Dec0.402014Jan1.102014Feb2.202014Mar3.302014Apr2.202014May10.202014Jun12.202014Jul2.302014Aug0.402014Sep0.202014Oct1.102014Nov2.102014Dec0.402015Jan1.102015Feb2.202015Mar3.302015Apr2.202015May10.202015Jun12.202015Jul2.302015Aug0.402015Sep0.202015Oct1.102015Nov2.102015Dec0.40Please try thePrecipitation programagain.2Enter data? = nNo data was input atthis time.
Background image of page 2

Show 

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"