# Mathematics and Family Members Essay example

927 Words Feb 27th, 2013 4 Pages
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
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.

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 there 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”,

## Related Documents

• ###### Mathematics Essay

INFLUENCE OF TEST ANXIETY AND SELF EFFICACY ON MATHEMATICS PERFORMANCE OF SECONDARY SCHOOL STUDENTS IN KANDUYI DIVISION OF BUNGOMA DISTRICT By Simiyu, Marango G. Moses E55/5150/2003 A THESIS SUBMITTED IN PARTIAL FULFILMENT OF THE REQUIREMENTS FOR THE DEGREE OF MASTER OF EDUCATION IN THE SCHOOL OF EDUCATION OF KENYATTA UNIVERSITY. OCTOBER, 2010. DECLARATION “This thesis is my original work and has not been presented for a degree in any other University.” Signature _______________…

Words: 3289 - Pages: 14
• ###### Mathematics and Forensics Essay examples

Mathematics and Forensics 8 March, 2015 Math History - 109 In a world filled with technology, accountability, and a desire for higher quality of living; the world owes it all to math. As children grow up and are taught mathematics in countries all over the world; they are all being taught the same language. Math is the universal language of the world and math has changed the world from the time of the Egyptians to the present day era of technology. Mathematicians like Nicolaus Copernicus gave…

Words: 1098 - Pages: 5
• ###### Essay on High Blood Pressure and How It Affects Family Members

High Blood Pressure and How it affects Family Members INTRODUCTION High Blood Pressure occurs when there is high pressure in the arteries and the blood vessels are narrow or stiff, which makes the heart pumps harder to get blood through the rest of the body. High Blood Pressure is a health issue that many people today are forced to live with. It is a condition that is increasing more and more each day. There is approximately about 1 in every 3 adults in the United States, which has been estimated…

Words: 868 - Pages: 4
• ###### Assess the View That the Nuclear Family Functions to Benefit All It Members and Society of a Whole

Assess the view that the nuclear family functions to benefit all its members and society as a whole. A nuclear family is universal and is defined as a two generational grouping; consisting of a father, mother and their children, all living in the same household. The idea of the nuclear family was first noticed in Western Europe in 17th century. The concept that narrowly defines a nuclear family is essential to the stability in modern society and has been promoted by modern social conservatives in…

Words: 1230 - Pages: 5
• ###### Persuade a Family Member That the World Today Is Better Than 50 Years Ago

but life views, beliefs and opinion differences between generations induce to continuous controversial discussions such as “The world today is better than 50 years ago”. Who haven’t debated regarding this endless theme, at least once, with a family member? The conflict “time” between generation always have been a theme for divergent discussions, and as rule elder generation tend to influence youth's opinion, pretending on the idea that the live was better then, fifty years ago, and they passed…

Words: 907 - Pages: 4
• ###### “Describe the Roles and Responsibilities of Four Members of the Multidisciplinary Team Who You Have Observed Planning and Implementing Care for One Child and Family

“Describe the roles and responsibilities of four members of the Multidisciplinary Team who you have observed planning and implementing care for one child and family.” The majority of practitioners who work in healthcare are trained to function both independently and autonomously (Soothill et al 1995). There can be many challenges when working as part of a team, Soothill et al (1995) acknowledges this by stating, “learning to work with many different types of professionals in a multidisciplinary…

Words: 3674 - Pages: 15
• ###### Teaching Mathematics to Engineering Essay

# 1998 TEMPUS Publications. Teaching Mathematics to Engineering Students* S. S. SAZHIN School of Engineering, University of Brighton, Cockcroft Building, Moulsecoomb, Brighton BN2 4GL, UK Some new ideas in teaching mathematics to engineering students and the implementation of these ideas into the teaching of mechanical engineering students at Brighton University are discussed. The importance of explaining to the students why knowledge of mathematics is essential for their future practical…

Words: 6273 - Pages: 26
• ###### Mathematics Essay

Mathematics In an attempt to express certain basic concepts of mathematics precisely, one should consider a handful of different accepted and developed conceptions. Pythagoras, in the Fifth Century B.C., believed that the ultimate elements of reality were numbers; therefore the explanation for the existence of any object could only be explained in number. Gottlob Frege stated, in an idea referred to as logicism, that mathematics could in some sense be reduced to logic. The views of Plato state…

Words: 1075 - Pages: 5
• ###### The Importance of Family in McCullers' The Member of the Wedding

The Importance of Family in McCullers' The Member of the Wedding "I don't need my mother or my father anymore. I am a teenager, who needs them? I can definitely live on my own." Carson McCullers wrote a novel, The Member of the Wedding (1946), which put a twelve-year-old girl, Frankie, in the situation of leaving her family and hometown. After last year, her best friend moved away and she was left alone. She used to be very popular and hung out in all of the clubhouses around town. Now, she…

Words: 846 - Pages: 4
• ###### The Negative Effects of Unresolved Grief Among Family Members

Grief Among Family Members The death of a parent is the most traumatic event most families will ever experience. The primary support after such an event comes from the surviving family members and close friends who knew the deceased parent. Additional help can be received from psychologists, grief counselors, and other professionals. Resolving short term shock and long term grief following the loss of a parent can be extremely difficult based on the age of the remaining family members and the relationship…

Words: 2646 - Pages: 11