Design and Implementation of a Family Member Information Program with Age Calculation and Texas Resident Identification
- Information Technology
- 9 pages
- Shared May 2025
Development of a program for family member record-keeping.
Preview 3 of 9 pages
See the first 3 pages exactly as they appear in the document.
Page 1 Read page 1 as text
Design and Implementation of a Family Member Information Program with Age Calculation and Texas Resident Identification Question: 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 live in Texas. 2. What is the required output? What is the necessary input? How you will obtain the required output from the given input? Clearly describe variable names and definitions. Include all necessary formulas and example calculations. 3. Display pseudocode of your overall design including the Main module and the order of the module, subprogram and function calls. 4. Create a Hierarchy chart for the overall program in raptor 5. detailed pseudocode for each module, subprogram and function. 6. Add pseudocode comments with all major functionality and most minor functionality commented 7. Show test plan covering all major functionality and most minor functionality. Multiple Input and expected output provided for most modules. SOLUTION: Analysis: For this program, user will be asked for name, age and state of their family members, one by one, until the user decides to stop entering this information. To achieve the given task (printing average family age and identifying residents of Texas), following modules need to be created: - Main module: This module will be the one running on program startup. It will be responsible to get user input and call appropriate modules to calculate and display average family age and display family members those are residents of Texas - calcAverageAge module: This mo dule will take family ages as input and count of family members as input and calculate and display average family age. This module will be called from within Main module. - printTexans module: This module will take family names as input and will print names of the family members from Texas. This module will be called from main module. Program Design: 2. Required outputs: Average family age, names of family members from Texas. Required inputs: Family member names, their ages and state where they reside.
Page 2 Page 3 Read page 3 as text
Variable Declartions and defintions: Following variables will be defined: String array s_Names to hold names. Integer array i_Age to hold ages. String array s_State to hold state Integer i_Count to hold number of family members The user entering the family names, ages and state of residence will be stored in the above described arrays such that t here will be one - to - one correspondence for the indices of s_Names, i_Age, s_State arrays i.e. family member with name at index n in s _Names array will have their age and state at index n in array i_Age and s_State respectively. Calculations: Calculating average age: Average age = (sum of ages of all family members)/(Number of family members) Example calculation: Suppose we have i_Count = 3 and i_Age[0] = 12, i_Age[1] = 16, i_Age[2] = 20. Then f_avAge = (i_Age[0] + i_Age[1] + i_Age[2])/i_Count = (12 + 16 + 20)/3 = 18 Finding Texans: In the s_State array, look for indices those contain string “Texas” and print the corresponding (at those indices) elements in s_Names. Example calculation: Suppose s_State[0] = “Texas”, s_State[2] = “Texas” and s_State[ 4 ] = “Texas” and the names array contain the following names: s_Names[0] = “ Michael ”, s_Names[1 ] = “Jones ”, s_Names[2 ] = “ Kathy ”, s_Names[3 ] = “ Knelly ”, s_Names[4 ] = “ Jason ” . Then program will print Michael Kathy Jason
6 more pages in the full document
Unlock it once and it stays in your library, ready to chat with or turn into flashcards.
Unlock the full documentMore Information Technology study materials
See all
Exam GuidesTest Bank for Managing and Using Information Systems: A Strategic Approach, 7th Edition (Chapters 1-13)
Information Technology
452 pages149downloadsFeb 2025
Exam GuidesTest Bank for Essentials of MIS, 12th Edition
Information Technology
342 pages146downloadsFeb 2025
Exam GuidesA+ Guide to Hardware, 9th Edition Test Bank
Information Technology
116 pages142downloadsFeb 2025
Textbook GuidesSolution Manual for Essentials of System Analysis and Design, 4th Edition
Information Technology
282 pages140downloadsFeb 2025
Textbook GuidesGuide To Networking Essentials, 7th Edition Solution Manual
Information Technology
48 pages139downloadsFeb 2025
Past Exams2023-2024 SOPHOS FIREWALL V19.5 Practice Exam with Answers (75 Solved Questions)
Information Technology
7 pages134downloadsFeb 2025
Class NotesLecture Notes for CCNP Enterprise: Core Networking (ENCOR) v8 Lab Manual, 2nd Edition
Information Technology
1089 pages123downloadsFeb 2025
Class NotesLecture Notes for Adobe XD Classroom in a Book (2020 release)
Information Technology
66 pages118downloadsFeb 2025
Study this document with CramX
Once it is in your library, every tool can work from it.

