Preview

Parallel Array Structure Checkpoint

Good Essays
Open Document
Open Document
503 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Parallel Array Structure Checkpoint
Array Structure
PRG 211
January 11, 2012
University of Phoenix

Array Structure
The purpose of the parallel array structure is to hold 2 different elements of information on budget numbers for each month. I created two parallel arrays one to hold the budget scheduled amount and another array to hold the budgeted amount that was achieved. Each array will hold information for each month. If I created this by using inputs without arrays, I would have had to create 24 different input statements to hold the 24 different elements of information. Using the array was much each and quicker. I just needed to create a loop with an end value of 12, which represented the 12 months of the year. Each pass through the loop, the month would change and I was able to enter both the scheduled budgeted information and the achieved budget. Once the loop was completed, the array was filled with information.
…show more content…

I was able to do this by creating three if decision trees that determined whether the budgeted quota was equal, over, or under budget, then i output the information to the console for each time through the loop. I used the console instead of the screen to be able to output more than 1 line for each loop. This way it shows all 12 months of data for both budgets arrays in one Output window. If I would have done this without using arrays and loops, I would have had to create 3 decision trees with 3 outputs for each of the 12 months which would have taken much more time and more likely to make a mistake. In conclusion I would state that by using arrays, it makes it much easier to store and retrieve information into the different elements of the

You May Also Find These Documents Helpful

  • Better Essays

    Jet2 Task 2 Essay Example

    • 1914 Words
    • 8 Pages

    A budget, as defined by Hilton (2009 pg 348), is a detailed plan, expressed in quantitative terms that specifies how resources will be acquired and used during a specific period of time. A budget is a financial document utilized to project future income and expenses. A budget is based on how much you make in income and what your monthly expenses are. Budgets evaluate performances while the plan is what is going to happen or refine what you want to accomplish by thinking ahead. The purpose of having a budget is it improves efficiency, assigns responsibility, provides direction, and helps businesses plans and control finances. Managers use the budget as a benchmark against which to compare the results to of actual operations.…

    • 1914 Words
    • 8 Pages
    Better Essays
  • Satisfactory Essays

    Acc 220 Appendix C

    • 336 Words
    • 2 Pages

    Directions: Using the matrix, define each of the budgets listed and briefly describe its uses.…

    • 336 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Final Accounting

    • 1555 Words
    • 5 Pages

    The sales budget is prepared by multiplying the expected unit sales volume for each product by its anticipated unit-selling price. As reflected in Exhibit A noted below and included in the overall Peyton Approved budget worksheet included in Appendix A, Peyton Approved expects sales volume to be 18000, 22000 and 20000 units in the month of July, August and September respectively. The budgeted sales in August exceeded July's sales units by 4000 units, however, sales declined in September by 2000 units from August. Peyten Approved budgeted sales price per units for the quarter was based on a sales price of $18 per unit. Thus, budgeted total dollars per month are 324,000 computed 18 sales price per unit, 396000 sales price per unit, and 360000 sales price per unit in July, August, and September respectively.…

    • 1555 Words
    • 5 Pages
    Powerful Essays
  • Better Essays

    REM these are the calls for the modules that can be ran. Not all modules will run…

    • 595 Words
    • 3 Pages
    Better Essays
  • Good Essays

    Arrays store items that have the same type of data type like a group of employees’ names and social security numbers for a team of 2000 personal. Pointer is a variable that greatly extends the power and flexibility of a program, each memory location that is used to store data value has an address. The address provides the means for a PC hardware to reference a particular data item.…

    • 485 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Est1 Task 3

    • 1740 Words
    • 7 Pages

    In establishing the budget the first determination that was made was the amount of money necessary for each of the designated areas of spending per month. This was determined by dividing the amount of money currently allotted annually by the months in the year (12) to determine if the budgeted amount was on or off target. The amount of expenditure in each category was also considered. For example, the annual budget for personnel is 250,000. If this number is divided by 12 months the amount of money allotted to spend for personnel during each month of the fiscal year is 20,833. The amount of money expended during the month of March was 20,000. (P. Slimmer, personal communication, November 17, 2011).…

    • 1740 Words
    • 7 Pages
    Good Essays
  • Good Essays

    maintenance costs of each apartment complex’ for each month, and then format each worksheet. Gordon…

    • 369 Words
    • 2 Pages
    Good Essays
  • Better Essays

    Supply Chain Task 1

    • 1619 Words
    • 7 Pages

    To evaluate how I utilized both budgets and pro-formas to ensure the adequacy of funds for providing production capacity that was needed to achieve the businesses goals. I want to first start with the definition of both pro-forma and budget; A budget is a basic idea that covers more than a few areas, all in all it's a financial plan that is made to control costs for operations and results. It can be expressed in a multitude of numerical terms, it also can cover a certain period of time, short, intermediate and long term goals. A pro-forma is also a financial statement but it is prepared based upon assumptions of specific events and transactions that will hopefully occur in the Future, so basically a projected estimate using historical data to form a hypothesis of A financial outcome. The importance of both the pro-forma and budget were huge. Knowing going into the simulation how much seed money was going to be issued and how much additional money was coming in future investments, gave me an idea of how aggressive or conservative I could be. I was able to to set with an initial idea of how much I could spend for each factor needed moving forward. I was able to understand how much to market, how much to hire and how much I could afford for each of these tasks, as well as how much was coming into pay for future marketing and hires. Without advertising there are no customers, without a good sales and service staff there are no sales, or an ability to take care of the customer. In the opening quarter of the company I had a 2 million dollar start-up fund. My upfront expenses were approximately $530,000. I also chose to invest in a 3 month CD about $880,000, I made sure in my first endeavor to keep money available and not to over indulge. I took similar approaches going…

    • 1619 Words
    • 7 Pages
    Better Essays
  • Better Essays

    Hcs 571

    • 1318 Words
    • 6 Pages

    A budget is an instrument used to help managers ensure that the resources used effectively and proficiently toward the goals of an organization. A budget projection can be made on a yearly base depending on previous year or existing one. They can further be broken down quarterly or monthly depending on it use. Generating a budget is complex undertaking, and for a budget to be effective the organization ought to follow it strictly. However, no matter how closely a business follows their guidelines there will always be some form of variances. The organization should expect a few variances and be able to work these discrepancies in any budget constraints.…

    • 1318 Words
    • 6 Pages
    Better Essays
  • Satisfactory Essays

    Assignment1

    • 837 Words
    • 3 Pages

    2. In the Weekly Budget Forecast section of the spreadsheet calculate each revenue item and each expense item for the week as well as the Total Revenue, Total Expenses, Profit, Profit Margin, and Breakeven Quantity. All of these must be calculated and must contain cell references to the inputs and…

    • 837 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    There are several ways in which to organize a counseling center for victims of domestic abuse. Organization by departmentalization is a model in which the agency is broken into subgroups or departments according to process, market, program, or client and consumer needs. The most effective organization by departmentalization would be to break up the departments according to program. Victims of domestic abuse may need different programs in order to get their lives back on track. Some may be in need of counseling while others need help finding a new place to live or need help with job placement. The downside to organizing a counseling center, by program is that the counseling center may offer only a handful of services and would need to refer clients to outside organizations. If the agency did offer other programs, the victim may feel that they are overwhelmed with their options and may go back to their previous situation.…

    • 472 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    4. Using the worksheet, “ budget template 1”, record the discounts on the budget template that were given to you. The first item = 10%, second item = 20%, third item = 30%, fourth item = 40% and the fifth item = 50%. Using the worksheet, “10 X 10 grids” to create visual model of each of…

    • 719 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Analyzing Data Checkpoint

    • 359 Words
    • 2 Pages

    The five basic steps that are required for analyzing data using Microsoft Access according to the article by Samuels and Wood (2007. The steps are to gather the data, create a database, edit and validate data, connect data files, and perform queries.…

    • 359 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    The federal government of the United States is made up of three different branches: legislative, executive, and judicial. They ensure the government is effective and that all citizens’ rights are protected. Each branch has its powers and responsibilities, including checking and balancing the amount of power and organization that each branch has. The terms “checks and balances” refers to the job that each branch has in order to make sure that political power is not concentrated in the hands of individuals or groups. The government is the body that runs the entire country, which is made up of two main political parties.…

    • 496 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    Java Programming

    • 5440 Words
    • 22 Pages

    In this chapter you will learn:  What arrays are.  To use arrays to store data in and retrieve data from lists and tables of values.  To declare an array, initialize an array and refer to individual elements of an array.  To use the enhanced for statement to iterate through arrays.  To pass arrays to methods.  To declare and manipulate multidimensional arrays.  To write methods that use variable-length argument lists.  To read command-line arguments into a program.…

    • 5440 Words
    • 22 Pages
    Powerful Essays

Related Topics