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

  • 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
  • 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
  • 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
  • Best Essays

    Table 7 Table 8 Table 9 Table 10 Table 11 Table 12 Table 13 Table 14 Table 15 Per 1000 distribution of households by social group for each State/UT…

    • 224772 Words
    • 900 Pages
    Best Essays
  • Good Essays

    Creative Writing

    • 831 Words
    • 4 Pages

    That’s what the annoying, obnoxious creature inside my addled brain repeated over and over; a moronic mantra.…

    • 831 Words
    • 4 Pages
    Good 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
  • Good Essays

    Creative Writing

    • 5428 Words
    • 22 Pages

    Once upon a time, there were two crazy girls named Shelby and Mira. Shelby was crazy because she laughed all the time and Mira was crazy because she was an Asian and wasn’t smart. They became friends in middle school when they read The Adventure of Tom Sawyer to each other in English class. What weirdos. Mira is also crazy because she can’t spell the word weird and she is a freshman. One day Shelby and Mira were walking down the hall with their awesome friend Kristyn when something crazy happened. Chase walked up to Shelby and then Shelby laughed her crazy laugh and screamed yes. Mira and Kristyn later found out that Chase asked out Shelby. Not only did he ask her out, he asked her to homecoming. On the night of the dance, Shelby and chase were the center of attention. Chase dance amazingly and Shelby stood there awkwardly. Later, she caught on and everyone crowded around them in awh. Mira and Kristyn were very jealous when Chase took Shelby out the same night. Even though Kristyn had a good time with Brandon, Mira did not have much fun with her date, Wesley Womble. Mira decided to get her revenge on Shelby. Mira has been eyeing Chase ever since Freshmen Spanish class. Every time Mira tried to talk to him, he ignored her and continued to dream of Shelby. He daydreamed about Shelby’s dreamy hair, dreamy eyes, and dreamy dog named Archie. This made Mira quite upset. She went to school the next day and it was quite boring. Some girl said that Brandon looked like a Mexican, Blaine shoved a duck in his mouth and Kristyn was cold. All day Mira planned revenger. She came up with the perfect plan. She would ask Justin Bieber to homecoming. Justin Bieber was Chase’s idol and if he went to the dance, Chase would obsess over Justin and Mira could hit Shelby with balloons. Since the dance already happened, Mira invented homecoming 2 and everyone decided to go because people are weird. Mira called her bestfriend…

    • 5428 Words
    • 22 Pages
    Good 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
  • Good Essays

    Creative Writing

    • 509 Words
    • 3 Pages

    She woke early one Saturday morning with the room a dim yellow as the sun searched for a way into her room. As her mother entered the room, she drew back the curtains, and the bright rays of sun warmed her face. The wind entered her open window on that beautiful June morning, and it tickled her nose as it reached her.…

    • 509 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Creative Writing

    • 717 Words
    • 3 Pages

    My breath steamed the air, my eyes wide open looking into the distance as drips of sweat rolled down my forehead. My ears twitched at every sudden noise; I just hoped nothing would jump out of the darkness. I kept thinking about where I was and how I got to this place. Every footstep echoed for miles as I stepped upon the Iron Gate, the noise rattling my brain. I came to a halt, my sweaty hand roaming over the freezing cold steal on my chest as I tightened my only protection from this city.…

    • 717 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Creative Writing

    • 485 Words
    • 2 Pages

    Chenzhuang Village notoriously known as China’s ghost town and phantom malls were abandoned. The stadiums, shopping centres and hundreds of accommodation once completed were now left deserted and derelict. Buildings, left for the rats to scavenge at and debris left lying around to rot. No longer was there beautiful buildings looming over the small village, but empty and forlorn places for squatters to hide and take shelter.…

    • 485 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Creative Writing

    • 824 Words
    • 4 Pages

    Another them is racism. Racism is shown through the character personality of Walt. In the movie it shows he has killed many of Koreans in the World War II. Walt find himself living in a suburb which consist of an Asian Neighborhood.…

    • 824 Words
    • 4 Pages
    Good 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
  • Satisfactory Essays

    creative writing

    • 1207 Words
    • 5 Pages

    The Palarong Pambansa (dubbed "National Games") is an annual multi-sporting event involving student-athletes from 17 regions of the Philippinesorganized and governed by the Department of Education or DepEd.…

    • 1207 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    creative writing

    • 1356 Words
    • 3 Pages

    Bang! The deafening explosion was just a few metres behind them. Both Lightning and Mater could not believe how the race of the century could turn into a battle scene in just one press of a button. Lightning looked behind him using the brand new side mirror that he had just been given by his pit crew. The thugs were closing in on them fast. The thugs were both armed with machine guns and grenades, whereas all Lightning and Mater had were speed and a rope. But speed was the least important thing that would come in handy during this encounter.…

    • 1356 Words
    • 3 Pages
    Good Essays

Related Topics