Your final project will be to analyze, design, and document a simple program that utilizes a good design process and incorporates sequential, selection and repetitive programming statements as well as at least one function call and the use of at least one array. The specific problem you need to solve for the final project is:
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 lives in Texas.
For this part of the deliverable, there are 2 components of your submission including:
Program Description- A detailed, clear description of the program you are building.
Analysis- Demonstrates your thought process and steps used to analyze the problem. Be sure to include the required input and output and how you will obtain the required output from the given input? Also, include your variable names and definitions. Be sure to describe the necessary formulas and sample calculations that might be needed. Talk about the functions you plan to use and how you will use arrays.
Be sure to talk about the types of programming statements that will be used on why.
Additional details about the program you need to write:
Family sizes vary, however you should design to be able to enter at least 50 Family members.
Your test cases should have at least 5 family members.
Be sure to separate some functionality into functions or submodules. Having all functionality in the main module is not a good design.
Your design should consider how to indicate the family member entry is complete.
Carefully consider the best data type for each of your variables. (e.g. when to use Float versus Integers versus Strings)
Additional Requirements
Analysis: off course this is the first step every software development life cycle starts from.Especially the preliminary investigation is one of the major parts with the requirements specification.
Now I have a problem I need to familiar the problem
Requirements
- I need to have 3 arrays one for storing members name, another for storing age and the last one for the state where they reside. Now array must have predefined size now it's given 50 in this problem
3 Arrays are here
String Name[50];
Integer age[50];
String state[50];
- Looping is required for the positing for getting input and display output as well.
For loop
- Variables required for calculations
For example for Average age we also need
floataverage_age;
- Functions for the calculate age so that that can be something like usable component
Void getAverageAge();
- Ask user to input the number of member he/she is looking for and store it a variable( say number).
For example
Input 5
Then loop will be running from 0 to 4 and that will be asking for
Please enter member's name
Please enter age
Please enter state