Texas Family Program Analysis

943 Words4 Pages
Program Description Design a program that will allow a user to Input a list of their family members along with their age and state where they reside. The number of family members is not known in advance, and may change from one run to the next. (That means you cannot ask the user how many family members will be entered). Determine and output the average age of their family and output the names of anyone who lives in Texas. The program is to calculate the total average of the family age and determine their location with only printing out those members that are from Texas. The program will take inputs from the user who will input the name, age and location of each family member. The program will take the years of all members entered and…show more content…
| Variable | Value | Description | Type | Reference | 1 | Max _members | 50 | Array size (enter up to 50family members | Integer | Main | 2 | Number of members | 0 | Integer to count number of members | Integer | Input process, output | 3 | Name | 50 | Array to store names of members | String | Input, output | 4 | Age | 50 | Array to store ages of members | Float | Input process, output | 5 | State | 50 | Array to store state of members | String | Input, output | 6 | Average age | 0 | Store average age of members | Float | Process output | 7 | Sum age | 0 | Store addition of ages | Float | Process | 8 | Index | 0 | Loop variable | integer | Process, output |

More about Texas Family Program Analysis

Open Document