Free Essay

Explanation Program Average Age, Texas Resident

In:

Submitted By jmpickle
Words 307
Pages 2
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.

This program will have the user input Name, location, and age of family member until the user is done. I will declare variables String arrays “names” and “state”, Integer arrays “age “and Integer “count”. I will create a nested loop in obtain this information. This information will be stored and used for each calculation. I will initially ask the user how many family member they would like to answer so I have an end count number to help me close the loop. After I have received this information from the user on the name, age, and location of each family member I will use the information to calculate the average age and to print which family members live in Texas, I will use a for or while end loop to show execute this part of the program. For the cacluation of the average age I will state the following calculation:
Average age = (sum of ages of all family members)/(Number of family members)
For Texas I will use a “For” loop to identify family members leaving in Texas. For State = Texas do something, I am not sure exactly what that something is, but I am assuming something like:
For state = Texas DO
Print “name” lives in Texas.
I will be researching information more on this particular part of the program. I might do an array to create a count to print the name and sum of family members that live in Texas.
I will end the program by printing all inputted information, along with requested “who lives in Texas” and average age.

Similar Documents

Premium Essay

Fashion Anatomy

...Fashion Anatomy 320 Rosemeade Drive Dallas, TX 75287 FashionAnatomy@gmail.com Phone: 972-684-7664 December 16, 2012 Main Contact: Michael Smith www.fashionanatomy.com Table of Contents * Executive Summary…………………………………………………………………… 3-4 * Company Description………………………….........................................5 * Industry Analysis………………………………………………………………………..6 * Industry Size, Growth Rate, and Sales Projections…………………6-7 * Industry Structure…………………………………………………………………..7 * Nature of Participants……………………………………………………………..7 * Key Success Factors………………………………………………………………….8-9 * Industry Trends…………………………………………………………………………10-12 * Market Analysis………………………………………………………………………………12-14 * Market Segmentation Target Market Selection……..…………………..15-16 * Buyer Behavior………………………………………………………………………….17 * Competitor Analysis…………………………………………………………………..18 * Estimate of Annual Sales and Market Share…………………………………18-19 * Marketing Plan………………………………………………………………………………….20 * Overall Marketing Strategy……………………………………………………………20-22 * Pricing Strategy……………………………………………………………………………..22-23 * Sales Process………………………………………………………………………………23-24 * Management Team and Company Structure……………………………….25 * Management Team………………………………………………………………….25 * Board of Directors……………………………………………………………………25-27 * Board of Advisors………………………………………………………………………28-29 * Other Professionals…………………………………………………………………30 ...

Words: 7602 - Pages: 31

Free Essay

Gmat

...heart disease than do middle-aged white Britons. Even after eliminating from the study the lifestyle differences of diet, exercise, smoking, and drinking, the data showed that the Americans have poorer health than their British counterparts. The statements above, if true, best support which of the following assertions? Health care spending in the United States should be reduced by 50%. More expensive health care causes a higher incidence of certain diseases. The money spent on health care in the United States is not being used effectively. The average health care spending for middle-aged white Americans is probably less than the average health care spending for Americans in general. Something other than diet, exercise, smoking, and drinking must account for the difference in health for the two groups in the study. Spokesperson: In the 2006 election of the city mayor, 55% of the voters were female. All the voters were between ages 18 and 70 and 2/3 of them supported the incumbent mayor. The incumbent mayor won the election with a substantially greater number of votes than any other candidate. If the statements made by the Spokesperson are true, then which of the following must be true? • • • • • At least 1/2 of the female voters supported the incumbent mayor. The incumbent mayor received stronger support from the female voters than from the male voters. There were no other candidates in the election who received more than 30% of all the votes. 45% of the...

Words: 52762 - Pages: 212

Premium Essay

Red Light

...The University of Chicago Red Ink in the Rearview Mirror: Local Fiscal Conditions and the Issuance of Traffic Tickets Author(s): Thomas A. Garrett and Gary A. Wagner Source: Journal of Law and Economics, Vol. 52, No. 1 (February 2009), pp. 71-90 Published by: The University of Chicago Press Stable URL: http://www.jstor.org/stable/10.1086/589702 . Accessed: 12/03/2011 22:11 Your use of the JSTOR archive indicates your acceptance of JSTOR's Terms and Conditions of Use, available at . http://www.jstor.org/page/info/about/policies/terms.jsp. JSTOR's Terms and Conditions of Use provides, in part, that unless you have obtained prior permission, you may not download an entire issue of a journal or multiple copies of articles, and you may use content in the JSTOR archive only for your personal, non-commercial use. Please contact the publisher regarding any further use of this work. Publisher contact information may be obtained at . http://www.jstor.org/action/showPublisher?publisherCode=ucpress. . Each copy of any part of a JSTOR transmission must contain the same copyright notice that appears on the screen or printed page of such transmission. JSTOR is a not-for-profit service that helps scholars, researchers, and students discover, use, and build upon a wide range of content in a trusted digital archive. We use information technology and tools to increase productivity and facilitate new forms of scholarship. For more information about JSTOR, please contact support@jstor.org. ...

Words: 9643 - Pages: 39

Premium Essay

Economic Immigration: the Case of Spain

... 1.2. Economic migrant 2. Global immigration 3. Immigration in Europe 1. Immigration within Europe 2. Immigration from outside of Europe II. The case of Spain 1. Immigration laws and policies in Spain 2. Main countries from where people emigrate to Spain 1. Bulgarians in Spain 3. Main reasons for choosing Spain III. Conclusion The data used in this project is from year 2005. Why did I choose this topic? Watching half of my classmates applying in foreign universities and many of my friends and family choosing to live abroad in order to have “better life” made me wonder what the reasons behind the migrations are. I was interested in the scientific explanation behind the migration processes. This paper gave me the opportunity to understand the incentives behind people’s decisions and the main reasons, pushing people from our own country. And even if I didn’t choose the case of Spain for my topic it proved to be a very interesting one. I learned many new things while writing this paper and it was really interesting to read all this information about immigrants and their reasons to go to Spain and not some other country. I. Introduction 1. The term immigration and the general theories behind it...

Words: 4665 - Pages: 19

Free Essay

Terrorism

...manuscript; available in PMC 2008 February 19. NIH-PA Author Manuscript Published in final edited form as: Aging Ment Health. 2005 March ; 9(2): 105–118. Family Involvement in Residential Long-Term Care: A Synthesis and Critical Review* Joseph E. Gaugler The University of Kentucky Abstract The objective of this review is to critically synthesize the existing literature on family involvement in residential long-term care. Studies that examined family involvement in various long-term care venues were identified through extensive searches of the literature. Future research and practice must consider the complexity of family structure, adopt longitudinal designs, provide direct empirical links between family involvement and resident outcomes, and offer rigorous evaluation of interventions in order to refine the literature. NIH-PA Author Manuscript Keywords Family Involvement; Nursing Homes; Assisted Living Facilities; Family Care Homes; Family Caregiving; Informal Care NIH-PA Author Manuscript Over the past several decades, various research studies have demonstrated that family members remain involved in the lives of their loved ones following placement in residential long-term care facilities (e.g., Bowers, 1988; Maas et al., 2000; Rowles & High, 1996; Smith & Bengston, 1979; York & Calsyn, 1977; Zarit & Whitlatch, 1992, to name a few). These collective findings have helped debunk the myth that families abandon their relatives in nursing homes or...

Words: 12566 - Pages: 51

Premium Essay

Mba 570

...Kerin−Hartley−Berkowitz−Rudelius: Marketing, Eighth Edition I. Initiating the Marketing Process 3. Scanning the Marketing Environment © The McGraw−Hill Companies, 2005 Kerin−Hartley−Berkowitz−Rudelius: Marketing, Eighth Edition I. Initiating the Marketing Process 3. Scanning the Marketing Environment © The McGraw−Hill Companies, 2005 CHAPTER 3 SCANNING THE MARKETING ENVIRONMENT IT’S SHOW TIME! Don’t blink, because the world of entertainment is changing faster than anyone imagined possible. Online music, high-definition televisions, digital photography, computer-based media centers, and software for making movies are just some of the many products new to the entertainment industry. The revolution began with the combination of Apple’s iPod music player, which can store 10,000 songs in a device smaller than a deck of cards, and its iTunes Music Store, which sells more than 10,000,000 songs each month for just $.99 each. Other new forms of digital entertainment products include digital video recorders (DVRs), which record TV shows on hard drives instead of tape, and home entertainment “hubs,” which utilize wireless networks to link digital devices from around the home. Some experts even predict that there will probably be a version of iPod and iTunes for movies in the near future. Suddenly the music, television, photography, movie, and computer industries are converging. Musicians, recording companies, television networks, camera companies, movie studios...

Words: 13408 - Pages: 54

Free Essay

The Story of Ercot

...The grid operaTor, power MarkeT & prices under Texas eLecTric dereguLaTion ERCOT THE GRID OPERATOR, POWER MARKET & PRICES UNDER TEXAS ELECTRIC DEREGULATION THE STORY OF FEBRUARY 2011 A SPECIAL RESEARCH PROJECT BY THE STEERING COMMITTEE OF CITIES SERVED BY ONCOR & THE TEXAS COALITION FOR AFFORDABLE POWER The sTory of ercoT AMARILLO LUBBOCK PLANO FORT WORTH ABILENE MIDLAND/ODESSA WACO DALLAS ALPINE AUSTIN HOUSTON SAN ANTONIO CORPUS CHRISTI LAREDO THE ERCOT REGION The grid operaTor, power MarkeT & prices under Texas eLecTric dereguLaTion THE STORY OF ERCOT ABOUT THIS REPORT The Electric Reliability Council of Texas, also known as ERCOT, is the non-profit corporation that oversees the Texas power grid. The organization also has responsibility for settling transactions in the state’s wholesale spot market for electricity. But the term “ERCOT” also is used loosely in other ways. For instance, the term can describe the geographical footprint for retail electric deregulation in Texas. It is also sometimes used to describe the state’s wholesale energy market. This report touches upon policy questions relating to all these conceptualizations of ERCOT: as an organization, as an energy market, and as the area of Texas with competitive electric suppliers. To distinguish between these meanings, the term “ERCOT” will be used whenever practicable to refer to the organization, “the ERCOT region” will be used to refer to deregulated areas of the state...

Words: 40863 - Pages: 164

Premium Essay

Social Factors and Academic Achievement

...SEDL – Advancing Research, Improving Education The Impact of School, Family, and Community Connections on Student Achievement Annual Synthesis 2002 A New Wave of Evidence Anne T. Henderson Karen L. Mapp SEDL – Advancing Research, Improving Education The Impact of School, Family, and Community Connections on Student Achievement Annual Synthesis 2002 A New Wave of Evidence Anne T. Henderson Karen L. Mapp Contributors Amy Averett Joan Buttram Deborah Donnelly Marilyn Fowler Catherine Jordan Margaret Myers Evangelina Orozco Lacy Wood National Center for Family and Community Connections with Schools SEDL 4700 Mueller Blvd. Austin, Texas 78723 Voice: 512-476-6861 or 800-476-6861 Fax: 512-476-2286 Web site: www.sedl.org E-mail: info@sedl.org Copyright © 2002 by Southwest Educational Development Laboratory (SEDL). All rights reserved. No part of this publication may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or any information storage and retrieval system, without permission in writing from SEDL or by submitting a copyright request form accessible at http://www.sedl.org/about/copyright_request.html on the SEDL Web site. This publication was produced in whole or in part with funds from the Institute of Education Sciences, U.S. Department of Education, under contract number ED-01-CO-0009. The content herein does not necessarily reflect the views of the U.S. Department...

Words: 88839 - Pages: 356

Free Essay

Crime

...Necessity knows no law. Bần cùng sinh đạo tặc. In December 2008, just a few months after the U.S. financial system imploded, New York City was hit by a flurry of bank robberies. On the Monday before New Year’s, four banks were attacked in an hour-and-a-half; one daytime raid took place just steps from the Lincoln Center in downtown Manhattan. The week before, San Diego had seen four bank holdups in a single day. Criminologists wondered if the holiday spree was the first sign of a looming crime wave in recession-battered America. Take an uptick in poverty and economic misery, toss in budget cuts to police departments across the country, and that should be a blueprint for chaos—right? Except, as it turns out, the exact opposite occurred. According to FBI statistics, crime rates went down across the board in 2009. Way down. Murder, rape, robbery, assault, auto theft—plummeted, one and all. Then, this week, the FBI released preliminary data for the first six months of 2010, and again the same pattern emerged. Violent crimes and property crimes alike have been falling in every region of the country. What gives? Have experts just completely misunderstood what causes people to commit crimes?   There's certainly no shortage of theories for why crime rates have gone down over the past two years. The simplest is that crime just isn’t closely related to economic conditions. Consider, after all, the two big crime epidemics in the twentieth century—the first took root in the late 1960s...

Words: 10363 - Pages: 42

Premium Essay

Disparity of Healthcare for Aids/Hiv Patients

...| Disparity of Healthcare for AIDS/HIV Patients | Lana Iris English 12312/15/14 | Disparity of Healthcare with Patients with AIDS/HIV For the last thirty years AIDS/HIV has been a controversial topic, but more recently, the disease itself has not been controversial but the disparity in receiving proper care both in prevention modalities and active treatment for the disease. While the Obama administration has taken steps toward the elimination of these disparities through the National HIV/AIDS Strategy and Implementation Plan, there is still much work to be done. This brief highlights underexplored explanations for these disparities and outlines possible solutions to begin addressing them. Oftentimes, popular culture has offered unfortunately erroneous explanations for the stark racial disparate impact of HIV/ AIDS. The mass media, for example, has suggested that black men “on the down low” infect black women by secretly sleeping with male partners, acting as a bisexual “bridge” between gay and straight communities. But public health scholars have found little support for this theory. Many may assume that black people suffer from greater HIV prevalence because they are considered less sexually responsible than whites. Yet several studies have shown that black women and black men who have sex with men—the two groups most severely impacted by HIV/AIDS—have similar numbers of sexual partners and use condoms as often as their white counterparts. Thus, behavioral risk factors...

Words: 5868 - Pages: 24

Free Essay

Adff

...Contemporary Hate Crimes, Law Enforcement, and the Legacy of Racial Violence Ryan D. King University at Albany-SUNY Robert D. Baller University of Iowa This article investigates the association between past lynchings (1882 to 1930) and contemporary law enforcement responses to hate crimes in the United States. While prior research indicates a positive correlation between past levels of lynching and current social control practices against minority groups, we posit an inverse relationship for facets of social control that are protective of minorities. Specifically, we hypothesize that contemporary hate crime policing and prosecution will be less vigorous where lynching was more prevalent prior to 1930. Analyses show that levels of past lynching are associated with three outcome variables germane to hate crime policing and prosecution, but the effect of lynching is partly contingent on the presence of a minority group threat. That is, past lynching combined with a sizeable black population largely suppresses (1) police compliance with federal hate crime law, (2) police reports of hate crimes that target blacks, and in some analyses (3) the likelihood of prosecuting a hate crime case. Our findings have implications for research on law and intergroup conflict, historical continuity in the exercise of state social control, and theories that emphasize minority group threat. Steven F. Messner University at Albany-SUNY onflict theories of crime and criminal law posit that the...

Words: 15783 - Pages: 64

Premium Essay

Stock Analysis of Lottery Type

...American Finance Association Who Gambles in the Stock Market? Author(s): Alok Kumar Source: The Journal of Finance, Vol. 64, No. 4 (Aug., 2009), pp. 1889-1933 Published by: Wiley for the American Finance Association Stable URL: http://www.jstor.org/stable/27735154 . Accessed: 27/06/2013 05:36 Your use of the JSTOR archive indicates your acceptance of the Terms & Conditions of Use, available at . http://www.jstor.org/page/info/about/policies/terms.jsp . JSTOR is a not-for-profit service that helps scholars, researchers, and students discover, use, and build upon a wide range of content in a trusted digital archive. We use information technology and tools to increase productivity and facilitate new forms of scholarship. For more information about JSTOR, please contact support@jstor.org. . Wiley and American Finance Association are collaborating with JSTOR to digitize, preserve and extend access to The Journal of Finance. http://www.jstor.org This content downloaded from 220.225.108.170 on Thu, 27 Jun 2013 05:36:00 AM All use subject to JSTOR Terms and Conditions THE JOURNAL OF FINANCE . VOL LXIV NO 4 . AUGUST 2009 Who Gambles in the Stock Market? ALOR KUMAR* ABSTRACT This related study At shows the that aggregate are cor to gamble and investment decisions propensity individual investors stocks with fea lottery prefer increases for lottery-type the demand stocks demand, during socioeconomic In the cross-section, factors that induce greater the...

Words: 7728 - Pages: 31

Premium Essay

Essay

...03-Banks.qxd 1/30/04 4:52 PM Page 57 3 Racial Discrimination in the Criminal Justice System ETHICAL BACKGROUND It is generally agreed that discrimination based on ethnic origin is morally wrong and a violation of the principle of equality. The equality principle requires that those who are equal be treated equally based on similarities, and that race is not a relevant consideration in that assessment (May and Sharratt 1994: 317). In other words, it is only possible to justify treating people differently if there exists some factual difference between them that justifies such difference in treatment (Rachels 1999: 94). Equality is a nonspecific term that means nothing until applied to a particular context. Thus, in a political context, equality means equal access to public office and equal treatment under the law, and equal treatment extends to equality in terms of job hiring, promotion, and pay. Race refers to groups of persons who are relatively alike in their biological inheritance and are distinct from other groups (American Anthropological Association 1997: 2). Ethnicity is a cultural phenomenon referring to a person’s identification with a particular cultural group (Hinman 1998: 403). Race is socially constructed, and the notion that persons “belong” to a particular race was developed in the last century based on the belief that there was a biological basis for categorizing groups of people. Biologically, however, the term race has no meaning, yet society...

Words: 10761 - Pages: 44

Free Essay

Fas Info

...Since the late 1970s, many studies have reported on the prevalence of fetal alcohol syndrome ( FAS) , alcohol-related birth defects ( ARBD) , and alcohol-related neurodevelopmental disorders (ARND) . The three main types of research methods used in these studies are passive surveillance, clinic-based studies, and active case ascertainment. This article describes each of these methods, including their strengths and weaknesses, and summarizes the estimated prevalence of FAS produced by each of these approaches. The maternal risk factors associated with FAS and other alcohol-related anomalies include advanced maternal age, low socioeconomic status, frequent binge drinking, family and friends with drinking problems, and poor social and psychological indicators. Overall, the available literature points to a prevalence rate of FAS of 0.5 to 2 cases per 1,000 births in the United States during the 1980s and 1990s. KEY WORDS: fetal alcohol syndrome; prevalence; epidemiological indicators; alcohol-related neurodevelopmental disorder; birth defects; statistical estimation; data collection; clinical aspects; population dynamics; risk factors; research in practice; research quality Establishing the prevalence 1 (1 See the sidebar on page 160 for the definition of prevalence as it is used in this article.) and other epidemiological characteristics of fetal alcohol syndrome ( FAS) , alcohol-related birth defects ( ARBD) , and alcohol-related neurodevelopmental disorder ( ARND) 2 (2 FAS is...

Words: 7781 - Pages: 32

Free Essay

Gmat

...distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of the publisher. 0-07-151120-2 The material in this eBook also appears in the print version of this title: 0-07-149340-9. All trademarks are trademarks of their respective owners. Rather than put a trademark symbol after every occurrence of a trademarked name, we use names in an editorial fashion only, and to the benefit of the trademark owner, with no intention of infringement of the trademark. Where such designations appear in this book, they have been printed with initial caps. McGraw-Hill eBooks are available at special quantity discounts to use as premiums and sales promotions, or for use in corporate training programs. For more information, please contact George Hoare, Special Sales, at george_hoare@mcgraw-hill.com or (212) 904-4069. TERMS OF USE This is a copyrighted work and The McGraw-Hill Companies, Inc. (“McGraw-Hill”) and its licensors reserve all rights in and to the work. Use of this work is subject to these terms. Except as permitted under the Copyright Act of 1976 and the right to store and retrieve one copy of the work, you may not decompile, disassemble, reverse engineer, reproduce, modify, create derivative works based upon, transmit, distribute, disseminate, sell, publish or sublicense the work or any part of it without McGraw-Hill’s...

Words: 234594 - Pages: 939