Preview

Creative Writing

Satisfactory Essays
Open Document
Open Document
813 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Creative Writing
CMIS102 Final Project Part 2(Worth 20% of your grade)

Student Name:
Class/Section:
Professor Name:
Assignment due date:

1. Problem definition: Design a program that will allow a user to Input a list of your family members along with their age and state where they reside. Determine and print the average age of your family and print the names of anyone who live in Texas.
Note: Your problem analysis should have already been submitted as part 1 of the assignment. A. Program Design – Following the directions in the assignment, clearly write up your problem design in this section and comment your pseudocode.
The following items are the things the program must do: * Declare the age, name and state arrays for the family members * The enter values by the users will decide the arrays * The loop will consist of the input of the state, name, age * It will calculate the average age of members and names who reside in Texas * Results of the average age and names of family members who live in Texas
The user will enter 10 family members name, age, and place of residence (state) to be stored in the arrays listed below. With a one to one correspondence for arrays sState, sName, and iAge, family members name will be entered in sName array and will have their state and age entered in sState and iAge arrays respectively.
Variables will be defined as: * sState – string array to hold the state * sName – string array to hold the name * iAge – integer array to hold the age * iCount – integer to hold the count

The Main module will contain the following submodules: * CalcAvgAge * PntTexans

Formula Examples
Calculating Average Age:
Average Age = (total of all family members ages)/(total number of family member)

Example: iCount = 4 and iAge[0]=7 ; iAge[1]=52 ; iAge[2]=30 ; iAge[3]=16

CalcAvgAge = (iAge[0] + iAge[1] + iAge[2] + iAge[3])/ (iCount)
7+52+30+16/4 = 26
Average Age = 26
Print Texans:
In sState array, you will be

You May Also Find These Documents Helpful

  • Satisfactory Essays

    6. Join the dating table to the US Counties table. Then select the counties that lost population in…

    • 500 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    ElizabethFlaimFP

    • 1289 Words
    • 7 Pages

    Problem Definition: Design a program that allows a user to input a list of family members, along with their age and the state where they live. The program will determine and print the average age of the user’s family. The program will also print the names of any family member that lives in Texas. The program design should also allow the user to enter at least 50 family members.…

    • 1289 Words
    • 7 Pages
    Good Essays
  • Good Essays

    This is our first individual assignment for Programming unit this semester. This assignment was given in December 2013, and submission date is on 10th February 2014.…

    • 1859 Words
    • 8 Pages
    Good Essays
  • Powerful Essays

    C228 Task 1 WGU

    • 4743 Words
    • 16 Pages

    age twenty-five and up make up sixty-seven percent of the population of [city/county name] City…

    • 4743 Words
    • 16 Pages
    Powerful Essays
  • Satisfactory Essays

    A. Program Design – Following the directions in the assignment, clearly write up your problem design in this section and comment your pseudocode.…

    • 467 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Texas Legislative Council. (2010, March). Population and voter data: house districts-plan 01369H. Retrieved from http://www.tlc.state.tx.us/redist/pdf/h1369/red200.pdf…

    • 1030 Words
    • 5 Pages
    Better Essays
  • Better Essays

    Major demographic changes are expected to happen in Texas over the next 30 years. It is predicted that Texas population will increase 71.5% by 2014 with an extremely increase in Hispanic population due to immigration and high birth rates (Combs, 2013).…

    • 1688 Words
    • 6 Pages
    Better Essays
  • Better Essays

    Tax return

    • 1260 Words
    • 6 Pages

    You have your own CPA tax practice and you are greeted with new clients: Albert and Jenny Cunningham and their two children. You meet with them and they give you the information shown below. They would like you to prepare their tax return for 2013. They would like to file married filing jointly.…

    • 1260 Words
    • 6 Pages
    Better Essays
  • Better Essays

    Ellis County Population

    • 1138 Words
    • 5 Pages

    The population estimate of the Ellis County was 153,969 out of the 26,059,203 in Texas as of the year 2012 (Cubit, 2013). There are 37,020 households in this county. A total of 29,653 families reside in this region. The Ellis County has a population density of 118 people per square mile (Cubit, 2013). The population comprises of different races. The Whites make up 80%, the African Americans 8%, the Native Americans 0.5%, the Asians 0.4% the Pacific Islanders 0.02%, the Hispanics 18.5% and the other races comprise the remaining 8% (United States Census Bureau, 2013). This county is among the most populated counties in the state of Texas. Out of the total 254 counties, the Ellis County is ranked 25th in population.…

    • 1138 Words
    • 5 Pages
    Better Essays
  • Powerful Essays

    Creative Writting

    • 3468 Words
    • 9 Pages

    Fighting temptation describes a battle that is as much spiritual as it is emotional or physical. To be tempted is not a sin. Everyone is tempted and at different levels. Even Jesus was tempted! Temptation happens when the opportunity is presented to do what we know is wrong, whether against God, ourselves, or others. Being tempted is not wrong - it's the decision to do wrong and the corresponding action that follows.…

    • 3468 Words
    • 9 Pages
    Powerful Essays
  • Better Essays

    Census Bureau expanded the American Community Survey sample to 3 million households. (United States Census Bureau, 2015) Then on January, 2006 the American Community Survey included group quarters in their information. They decided to provide annually updated social, economic, and housing data for states and communities. This was very helpful for the fact I did not want to show very old data pertaining to Texas.…

    • 2163 Words
    • 9 Pages
    Better Essays
  • Better Essays

    The Texas Population

    • 872 Words
    • 4 Pages

    After reading both the articles “The Changing Face of Texas: Population Projections and Implications” and “The Explosive Growth of the Latino Population May Hurt the U.S. in the Long Run,” I plan to point out several statistics in the growing population of Texas and provide possible solutions to them.…

    • 872 Words
    • 4 Pages
    Better Essays
  • Powerful Essays

    Family and Income Earner

    • 1087 Words
    • 5 Pages

    Please read and review the form and the instructions carefully before you fill it in and do not leave any boxes blank.…

    • 1087 Words
    • 5 Pages
    Powerful Essays
  • Best Essays

    Marriageability

    • 862 Words
    • 4 Pages

    Meyer, Julie. “Age and Sex Composition: 2010.” census.gov. U.S. Department of Commerce, May 2011. Web. 6 Oct. 2012.…

    • 862 Words
    • 4 Pages
    Best Essays
  • Powerful Essays

    Assignment

    • 1049 Words
    • 5 Pages

    D. Problem StatementThe objective of this assignment is to refresh and enhance the skills of the students in problem solving involving functions, arrays, classes and others using the C++ programming language. Students MUST use the inheritance and polymorphism concepts in the OOP. Students are required to select a title from the list below and register with your tutor (First come first serve). Your program must be able to perform the following functions based on your chosen title: 1. Add/register new accounts. 2. Delete and cancel existing records. 3. Modify existing records. 4. Display requested records. 5. Display the year end statistics for summary purposes. 6. Save the record. 7. etcSuggestions: * Create base and derived classes based on the given entities. You must use the inheritance and polymorphism concepts in the…

    • 1049 Words
    • 5 Pages
    Powerful Essays

Related Topics