Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Management Information System Expert

Hands-On Lab

Overview

This hands-on lab allows you to follow and experiment with the critical steps of developing a program including the program description, analysis, test plan, and implementation with C code. The example provided uses sequential, repetition, selection statements, functions, strings and arrays.

Program Description

This program will input and store meteorological data into an array. The program will prompt the user to enter the average monthly rainfall for a specific region and then use a loop to cycle through the array and print out each value. The program should store up 5 years of meteorological data. Data is collected once per month. The program should provide the option to the user of not entering any data.

Analysis

I 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 store up to 5 years of monthly data, the array size should be at least 5*12 = 60 elements. In a 2D array this will be RainData[5][12]. We can use #defines to set the number of years and months to eliminate hardcoding 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 also be 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 with labels for the printout.

Functions will be used to separate functionality into smaller work units. Functions for displaying the data and inputting the data will be used.

A selection statement will be used to determine if data should be entered.

Learning Exercises for you to complete-

1. Modify the program to add a function to sum the rainfall for each year. (Hint: you need to sum for each year. You can do this using a looping structure). Support your experimentation with screen captures of executing the new code.

2. Enhance the program to allow the user to enter another meteorological element such as windspeed (e.g. 2.4 mph). Note, the user should be able to enter both rainfall and windspeed in your new implementation. Support your experimentation with screen captures of executing the new code.

3. Prepare a new test table with at least 2 distinct test cases listing input and expected output for the code you created after step 2.

4. 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. Support your experimentation with screen captures of executing the new code.

Attachment:- Lab.rar

Management Information System, Management Studies

  • Category:- Management Information System
  • Reference No.:- M91704472
  • Price:- $50

Priced at Now at $50, Verified Solution

Have any Question?


Related Questions in Management Information System

Assessment instructionsfirst select a global it

Assessment Instructions First, select a global IT organization with which you are currently affiliated or have worked for in the past, or one you would like to learn more about. This organization should be relevant to yo ...

You are a member of the human resources department of a

You are a member of the Human Resources Department of a medium-sized organization that is implementing a new interorganizational system that will impact employees, customers, and suppliers. Your manager has requested tha ...

Ransomwareto pay or not to pay when it comes to corporate

Ransomware: To pay or not to pay? When it comes to corporate data, should corporations pay? Can you trust paying? What can be done to protect against ransomware? Would you pay if it were your own personal data? How can y ...

Part 1 150-200 words with referencesplease describe a few

Part 1: 150-200 words with references Please describe a few differences between fact tables and dimension tables. In what case(s) might they be used interchangeably? Part 2: 150-200 words with references Why is it import ...

Discussion 1 1why would someone shop on the internet buy an

Discussion 1: 1. Why would someone shop on the Internet? Buy an iPod? Eat at TGI Friday's frequently? 2. a. Why would someone else not make those purchases? 3. b. How would you choose one outlet, brand, or model over the ...

Assignment read and use the link racism and discrimination

Assignment Read and use the link Racism and discrimination in health care: Providers and patients Question 1. Are some cultures receiving a lower level of care simply because of their culture? Question 2. What are your t ...

Healthcare delivery systemsassignment health services

Healthcare Delivery Systems Assignment: Health Services Professionals Using the Word chart on page 2 of this assignment, describe the major types of health services professionals including key roles and training, practic ...

Choose your roadmap to certification part 2 federal

Choose Your Roadmap to Certification Part 2: Federal Information Security Modernization Act (FISMA) Compliance In this assignment, students will review the federal work sector requirements and executives/organizations pr ...

Discussion postpromptidentify one piece of propaganda that

Discussion Post Prompt Identify one piece of propaganda that circulates in current media today. Keep in mind that what might appear to be propaganda to you, might come across as informative or supportive to someone else, ...

Describe two examples of a very poorly implemented database

Describe two examples of a very poorly implemented database that you've encountered (or read about) that illustrates the potential for really messing things up. Include, in your description, an analysis of what might hav ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As