Monday, December 23, 2019

Rome And Rome Colosseum, Circus Maximus, And Hippodromes

History always finds its way to help shape our future. As an athlete looking back into the Greek and Roman facilities and how they were structured it can be breath taking and offer a wealth of knowledge. Some of the greatest facilities still stand today and others are being built. Some of the most famous facilities being in Greece and Rome: Colosseum, Circus Maximus, and Hippodromes. The Colosseum is one of the greatest buildings ever built. It was built around A.D. 70-72 by Emperor Vespasian (Colosseum). In A.D. 80 the Colosseum was opened up for games (Colosseum). Some of the games being played were gladiatorial combats and wild animal fights (Colosseum). After going strong for four centuries about 2/3 of the Colosseum fell down (Colosseum). Yet, not much remains the Amphitheater still is a symbol for Rome and a very popular place for tourist (Colosseum). At one point the Circus Maximus was one of the largest facilities in Rome (Circus Maximus). Many people would go here for entertainment. They were most commonly known for chariot races. â€Å"At one point the Circus Maximus could seat 250,000 people, one quarter of Rome’s population† (Circus Maximus). The early history of the Circus Maximus goes back to the sixth century (Circus Maximus). The fifth king of Rime, Tarquinius Prscus, created a track between the Palatine and Aventine hills (Circus Maximus). â€Å" In 174 BC the gates were rebuilt†¦Ã¢â‚¬ (Circus Maximus). There was a lot of rebuilding that had to be done because of a fire

Sunday, December 15, 2019

Hauntington Disease Free Essays

Huntington disease Name Institute Huntington Disease Introduction Shortage of information about Huntington disease (HD) and its non-clinical management inveigled me into a quest for journal articles about this comparatively rare illness. Having pored over scores of Journal of Clinical Nursing Issues, I stumbled across the article entitled â€Å"Exploring supportive care for individuals affected by Huntington disease and their family caregivers in a community setting†. It immediately arrested my attention, as it touched upon the possible implications of HD for the affected persons, their family members (including those, who could inherit the illness genetically) and caregivers. We will write a custom essay sample on Hauntington Disease or any similar topic only for you Order Now This article is a collaborative work of the three authors from the University of Plymouth, namely Beverley Soltysiak, Penny Gardiner and Heather Skirton. It was published first on 10 July, 2008. Summary of the article According to McDonald (2003), Huntington disease, formerly known as Huntington’s chorea, is a chronic neurodegenerative condition caused by a genetic mutation in the Huntingtin gene, situated on chromosome 4†. The article traverses implications and supportive care approaches to the individuals, who suffer from Huntington disease. Authors argue that different approaches should be applied to various age categories of the affected. The difference in symptoms may be subtle at first glance, but younger individuals, affected by the long-term conditions, find facilities for their senior counterparts unsuitable. Important role in this regard belongs to the psychological aspects of the disease. People struck by HD tend to lead sedentary and recluse life. Huntington disease affects badly humans’ perception and cognition, renders their speech unintelligible, and makes them helpless to some extent in general. The far-reaching implications include unsteady gait and severe depressions, which sometimes result in strangers mistaking persons with HD for inebriates or drug abusers. It takes protracted periods of time and frenzied efforts of caregivers to jolt people ffected by Huntington disease out of the so-called â€Å"public alienation†. Authors argue that Huntington disease is debilitating in terms of its impact on the person’s physical condition, but they conclude that it is devouring person’s psychological strength even more eagerly. Sporadic outdoors activities lead to the development of the trait of standoffishness, which, in its turn, hinders the process of treatm ent. This illness is incurable, while affected people usually live no more than 30 years after the emergence of the first symptoms. However, multifarious therapies and techniques aimed at helping patients to cope with the disease are employed (physiotherapy, occupational therapy, speech therapy). A multidisciplinary approach is utilized to make sure that complex care needs are met. Research focuses in part on interviewing the afflicted people in order to understand better how to help them to deal with the problems they face every day (anxiety disorders, animosity, petulance, apathy, and obsession). Depending on their willingness to cooperate, separate persons were interviewed individually or in groups. It was found that participants with cognitive deficits or/and psychic disorders did not feel comfortable to communicate with impaired colleagues in groups, and consequently opted for individual interview or shunned it at all. The same specialists facilitated both group and individual interviews. â€Å"Data analysis was undertaken using inductive coding technique† (Miles Huberman, 1994). Interviewers point out that it was a daunting task for them to conduct the research, because cognitive problems of people with Huntington disease barred interviewers from following their train of thought. The heed was paid to the participants’ standpoint on the following themes: 1) Deciding whether to have genetic test; 2) Being given the lethal diagnosis; 3) Disclosure of information about the participant’s being diagnosed with HD; 4) Entering into serious relationship and having a child; 5) Making decisions about how to let children know of the genetic mutation; 6) Observing a family member suffer and wither from HD. Following the diagnosis of one individual, other family members are haunted by or preoccupied with the fear of having genetic mutation. Some people prefer being oblivious to this possibility, while others, prompted by the desire to obtain confidence in future, eagerly agree to undergo a genetic test. In any event, propitious outcome of a genetic test has not proved to be a precondition for sunny disposition. It failed to provide them with a necessary degree of certainty, as those, who turned out to be healthy, started to monitor themselves vigilantly for the possible appearance of symptoms. Evaluation This article provides a comprehensive study of the implications of HD and the means to address the challenges that these implications entail. The main emphasis is placed on those with HD; though, a good amount of attention is also paid to their family members, who are prone to inherit the genetic mutation, and caregivers. Bearing in mind brevity of this research and overall paucity of research into non-clinical management of HD, it would not be wise to grumble about certain details that authors failed to examine. However, I see it fit to note that more approaches of incorporating the afflicted people into the social milieu should have been developed, or at least, more thorough analysis of those listed should have been provided. In terms of interest, I would give this article eight points out of ten. On the plus side, it is laced with excerpts from the interviews, which enable the readers to take a closer look at the problem. Moreover, authors managed to construe the material without abusing the buzzwords. This makes the article flow easily and renders it readable to a broad audience. Given the scarcity of knowledge about this area of health assessment, there are no slightest doubts that further research into this area should be carried out. Many gaps still are due to be filled. Some of the possible directions of research were mentioned above. The information highlighted in this article would be of an utmost importance to the family members of people with HD and those, who take care of these people. Hospital staff could also defer to some advice put forward by Soltysiak et al. This article constitutes a precious groundwork for the researchers, who are interested in this particular area. Conclusion People affected by Huntington disease have to address a series of challenges in everyday life. It should be noted that neither these very people, nor their relatives, lead ordinary life after a family member has een diagnosed with HD. Huntington disease seriously undermines person’s physical and psychological well-being, with psychological effects having far greater scopes. Reluctance of the affected persons to engage in social activities exacerbated by their distorted vision of the world hampers the process of treatment. There is no efficient treatment at all; though, a number of therapies were developed to extenuate the implications. The problem is that at the same time as people with HD need outdoors activities to muster stamina, they also need to muster stamina to go outdoors. By and large, individuals prone to HD feel frustrated at the lack of information about HD held by health professors. References MacDonald, M. E. , Gines, S. , Gusella, J. F. Wheeler, V. C. (2003). Huntington’s disease. Neuromolecular Medicine, 4. Miles, M. , Huberman, A. (1994). Qualitative data analysis – an expanded sourcebook. (2nded. ). Thousand Oaks, CA: Sage Publications. Soltysiak, B. , Gardiner, P. , Skirton, H. (2008). Exploring supportive care for individuals affected by Huntington disease and their family caregivers in a community setting. Journal of Clinical Nursing, 17, 7b, 226-234. How to cite Hauntington Disease, Essay examples

Saturday, December 7, 2019

Following Laws versus Rules Interpret Ethical Issues with Subprime Lo

Question: Describe about the Following Laws versus Rules for Interpret Ethical Issues with Subprime Loans? Answer: Interpret Ethical Issues with Subprime Loans Summary of the concept of subprime loans and the risk of subprime loans to the lenders and borrowers:- The subprime loan is a type of very low or no down payment loan which has an option of second loans that act as the down payment for the first loan and eliminate the necessity of cash down payment of monthly premium for PMI (Private Mortgage Insurance).The households or peoples with less than moderate incomes, having imperfect credit records and very limited wealth to access the housing loans to refinance the existing home or buy a new one are the greatly benefitted from this Private Mortgage Insurance or PMI Scheme(OCC, 1999). This type of loan results in a boom in the housing sector as this includes the opportunity to access easily the loans, which leads to a decrease in the interest rate and a rise in the income. According to the marketing data, there was a spread of this housing bubble outside the housing sector, which caused a slowdown in the economic progress. The economy is still suffering from this recession due to the high unemployment rate and weak economic recovery (Utt, 2 008). Having a poor past credit history, serious credit problem, income of the state, high doubt to income ratio, the subprime loan borrowers are considered as a person and it is not possible for him to documented all the underwriting information in the applications and always go for the high LTV or, loan to value mortgage. Because of the high-interest rate, there is a risk to the borrowers for defaulting during the ongoing situation. Foreclosure on their home is considered as the second risk. It was found that the price of the house owned by an individual or a borrower is lower than the down payments of his/her borrowings. Therefore, they keep the distance from that houses, which they cannot purchased and let the lender foreclosures on the assets. Having the higher delinquency rates compared to the standard prime mortgage is considered as having risks of sub-prime loans to the lenders (OCC bulletin 99-10 (1999), 1999). The lenders also have the higher loss rate risks besides, the higher d elinquency rates. As the lenders cannot manage the loss, they may leave the business because of the combined effects of high delinquency rates and loss rates (Ethical Issues with Subprime Loans, 2014). The role of leadership decision-making in the subprime loan during the financial crisis:- On subprime loans, the majority of the home mortgage loan defaults is dependent with a high-interest rate loan to the buyers of home and this type of risk is higher than the average credit risk. To extend the number of home ownership for the Americans, the federal government had encouraged the bank to make sub-prime loans. The banks are the biggest indirect investors in the subprime loans. The money that had been lent by the banks from the investment companies is used to purchase a large number of Mortgages from the mortgage lenders (Turano, 2006). It becomes difficult for many investment funds to repay the loans that he had taken out from the banks. Hence, a declaration about the uncoverable loans should be made by the banks. However, this process will lead to a declining in reserves and generate the new loans. As both the businesses and consumers depend on the loans to finance the investment expenditures, the introduction of subprime loans will threaten the economy. Because of this poorly structured subprime-lending program, there are major losses and other problematic issues faced by most of the institutions of U.S.A. The higher default race and the loss-on default rates involving with the subprime lending and high overhead costs are underestimated by the institutions which frequently lacked the business planning process, management expertise and risk management processes which are very necessary to eliminate the risks associated with the subprime loans in a safe and sound manner. Hence, in financial institutions, leadership play a very critical role, as their decision-making will affect the other institutions or other individuals. A leader of the financial institution must have the quality of integrity, accountability and the responsibility (Thiel, 2012). If a leader ignores these duties, then there will arise a big problem for the institution. This similar case happened in the case of the sub-prime loan. Despite the ethics in leadership is to focus on moving forward, the financial and corporate misconduct amidst in the subprime lending that have left few wonderings ('The Ethical Challenges of Subprime Loans', 2015). With the notion of social responsibility evaluating the effect of subprime loans:- In 1995, the total subprime loans were only $18.5 billion whereas after ten years in 2005 it was increased to 507.9 billion. Hence, between the decades of 1995-2005 the economy faced a huge increase of subprime loans i.e. 489.4 billion U.S. dollar. However, there was a burst of the housing bubble in the housing market since the year 2005, which resulted in an increase in the interest rate. Hence, there were foreclosures of purchased houses through the rising sub-prime loans, which indicated that there would be the continuous rise in foreclosure. This led to damage in the housing market, which has a spill over affect the overall economy and results in recession in the economy (Bryson, Bryson, Bryson, Bryson profile, 2015). To promote the home ownership, there are some goals of American policies. The U.S. government has set up different financial institutions to make the purchasing process of home easier, quick and also convenient to provide the home to every citizen. This is a kind of social responsibility of U.S. government on the low-income group families and the minority group of the society. To protect this social responsibility, in 1938, the Federal Nation Mortgage Association, FNMA, or Fannie Mae was set up by the U.S. government with the primary goal to provide a secondary market for home mortgages. That is if there is a need for funds after granting the mortgage to the borrowers, the mortgage can be easily sold by the banks to the borrowers and later if there will a need for funds for the banks, the mortgage can be easily sold to the FNMA by the banks. The lending institutions that have the access to the secondary mortgage market of FNMA had to abide by the rules of FNMA. The U.S. government fo cused on creating another institution to compete with FNMA in the secondary mortgage market, after its privatisation. The Federal Home Loan Mortgage Corporation or FHLMC or Freddie Mae was created by U.S. government in 1970 to expand the secondary mortgage market (Hagerty, 2008). The consumers or the borrowers cannot get direct loans from both the institutions FNMA and FHLMC. The main aim of these two institutions is to increase the number of low-income families and the number of a minority to own their home (Myassignmenthelp.com, 2015). Since the time to assure that this will not happen again, what measure should be taken? During the period of 2007-2008, when the U.S. economy faced a financial crisis, an overall measure was taken by the government to tackle the problem, as it was known to the problem that what was the problem and how to prevent it that it will not happen again. In the year 2007, there was a threat for the mortgage lenders as well as for the all financial institutions due to the highest defaults on the home mortgage loan. Several steps was taken by the government to provide the limited relief to eliminate foreclosures regarding the problems of sub-prime loans and to adjust and refinance the payments to stay current on their payments and to keep their homes the government will allow those steps with great credit opportunities. To strengthen the lending rules to prevent loans to being issued by people who are unable to pay the monthly payments and to offset the incentives generated by the mortgage-backed securities. To help the homeowners who are not able to repay some mortgage loans different legislations have been passed by U.S. government. In 2010, U.S. Congress has passed and signed the Wall Street Reform and Consumer Protection Act to send a new message to the executives of large financial corporation, the bondholders and the stake holders that if they allow their corporation again into the serious financial trouble, they will suffer from the extremely high and unavoidable financial losses (Board o f Governors, 2012). References Bryson, D., Bryson, D., Bryson, D., Bryson, D., profile, V. (2015).Following Laws versus Rules: Interpret Ethical Issues with Subprime Loans.Followingrulesvslaws-suprimemortgage.blogspot.in. Retrieved 2 August 2015, from https://followingrulesvslaws-suprimemortgage.blogspot.in/ Ethical Issues with Subprime Loans,. (2014).Ethical Issues with Subprime Loans. Retrieved 2 August 2015, from https://savdrew.wordpress.com/ Hagerty, J.R., H. (2008). Hagerty, J.R. (2008). Fannie, Freddie Mae shares suffer hit as mortgage default fear mount. The Wall Street Journal, March 11, 2008. Myassignmenthelp.com,. (2015).ethical issues and obligations,develop a blog aimed at allowing participants to. Retrieved 2 August 2015, from https://myassignmenthelp.com/answers/humanities/ethical-issues-and-obligations-develop-a-blog-aimed-at-allowing-participants-to-interpret-ethical-issues-surrounding-subprime-loans-be-sure-.html OCC bulletin 99-10 (1999), O. (1999). OCC bulletin 99-10 (1999). Interagency Guidance on Subprime Lending. The Ethical Challenges of Subprime Loans. (2015). Retrieved 2 August 2015, from https://baileypr.weebly.com/1/post/2013/12/the-ethical-challenge-of-subprime-loans.html Thiel, C., Bagdasarov, Z., Harkrider, L., Johnson, J., Mumford, M. (2012)., T. (2012). Thiel, C., Bagdasarov, Z., Harkrider, L., Johnson, J., Mumford, M. (2012). Leader Ethical Decision-Making in Organization: Strategies for Sensemaking. Journal Business Ethics. (2012) 107:49-64 DOI 10.1007/s10551-012-1299-1. Turano, E. (2006), T. (2006). Turano, E. (2006). Subprime mortgage lending: recognizing its potential and managing its risks. Housing Finance International, September 2006. US Board of Governors, U. (2012). Board of Governors. 2012. The U.S. Housing Market: Current Conditions and Policy Considerations Whitepaper, January 4. Utt, R. D. (2008), U. (2008). Utt, R. D. (2008) The subprime mortgage market collapse: A primer on the caused and possible solutions. The Heritage Foundation Leadership for America, April 22, 2008. Retrieved from https://www.heritage.org/research/report/2008/04/the subprime mortgage market.

Saturday, November 30, 2019

Kung Mangarap Ka Ng Matagal free essay sample

Johannes Chromosomes Wolfgang Audiophiles Mozart[2] (27 laundry 1756 5 December 1791), was a prolific and influential composer of the Classical era. Mozart showed prodigious ability from his earliest childhood. Already competent on keyboard and violin, he composed from the age of five and performed before European royalty.At 17, he was engaged as a court musician in Salisbury, but ere restless and traveled in search of a better position, always composing abundantly. While visiting Vienna in 1781, he was dismissed from his Salisbury position. He chose to stay in the capital, where he achieved fame but little financial security. During his final years in Vienna, he composed many of his best-known symphonies, concertos, and operas, and portions of the Requiem, which was largely unfinished at the time of his death. The circumstances of his early death have been much mythologies. He was survived by his wife Constance and two sons.Mozart earned voraciously from others, and developed a brilliance and maturity of style that encompassed the light and graceful along with the dark and passionate. We will write a custom essay sample on Kung Mangarap Ka Ng Matagal or any similar topic specifically for you Do Not WasteYour Time HIRE WRITER Only 13.90 / page He composed over 600 works, many acknowledged as pinnacles of symphonic, concentrate, chamber, operatic, and choral music. He Is among the most enduringly popular of classical composers, and his Influence on subsequent Western art music is profound.

Monday, November 25, 2019

The Conformity View by Asch Essay Example

The Conformity View by Asch Essay Example The Conformity View by Asch Essay The Conformity View by Asch Essay The Asch paradigm is an experimental technique, which is now note because of the many studies and experiments that Solomon Asch did for his conformity studies. The purpose of this study is basically proving weather the people say what they really think or just conform with other people’s answers. He tricked the participants who thought they were taking part to a study of visual perception then, Asch made them say which one of the comparison lines matched the standard one.This trial is repeated 18 times and although the length and the thickness of the lines change in each trial, the purpose does not change. Because this task it’s extremely easy, when the participants are doing it without first listening to other people’ answers they are right at 99% but when they come in a situation where there are many people that answer before them, saying a different answer than the one they had in mind, they rather conform to the mass and say as the other people did.In the main condition of the study, among all the people who are taking part in it, only one is a genuine participant who is always last to say his answer. Despite the fact that the genuine participant does not know that the others participants are told to answer in a certain way. The set of 18 trials was repeated several times, testing a different genuine participant each time. When we get to the results, in the trials, 12 out of 18 gave the wrong answer.The majority of the people have conformed not to appear different. In fact, they kept saying the wrong answer given by the majority of the people in almost 37% of the trials. 76% conformed on one trial, minimum. 24% only, remained faithful on what they believed the right answer was. When they experiment had come to an end, Asch asked all the participants why they conformed with other people’s answer and they mostly all said they wanted to avoid criticism, disapproval and they wanted to fit in the group.

Friday, November 22, 2019

Acts of Rebellion Essay Example for Free

Acts of Rebellion Essay Essay Topic: Literature , William Shakespeare Choose cite format: APA MLA Harvard Chicago ASA IEEE AMA Romeo and Juliet (446) , Capulet (321) , Dystopia (59) Haven't found the essay you want? Get your custom sample essay for only $13.90/page ? In 1984, Orwell presents the act of rebellion through love. â€Å"Listen. The more men you’ve had, the most I love you. Do you understand that?† this whole quote suggest that they are both rebelling, meaning that Julia has already rebelled in the past by having sex with other men. Also Winston is declaring that the more she rebels the more he would love her, which is also an act of rebellion in itself because love is unauthorized, by Big Brother. â€Å"The most† could suggest that Winston is encouraging everyone to rebel against Big Brother, which could mean that as Julia loves Winston, he is taking advantage of her by telling her that whatever Julia is doing is right that he is totally supporting her. Additionally this could mean that he wanted more people to be corrupt, and everyone to go to the wrong path and disobey Big Brother. Orwell presents the act of rebellion through love because in the Dystopian society there are strict rule that need to be followed, such as no having sex for pleasure, and this is clearly an act of rebellion as Julia had sex with lots of party member. Similarly in Romeo and Juliet where Shakespeare is presenting their love by rebelling, they are both willing to disobey the orders of the wise ones just to be with each other. â€Å"Therefore stay yet; thou need’st not to be gone† proposes that Juliet is stubborn, as the Daughter of Capulet; she is used to get what she wants. Additionally Romeo declares to her † Let me ta’en, let me be put to death† This could emphasise that he is willing to die for Juliet and stay with her than live his life without her, this clearly shows that he is rebelling against all the rules put upon them, just to stay with Juliet. â€Å"Not to be gone† could suggest that Juliet is being bossy as she is ordering him to stay with her. But alternatively this could highlight that as men in the Elizabethan had power over women, and they were patriarchal meaning that Juliet was a bad influence on Romeo, and that she was almost a threat to his manhood. As he accepts defeat Ro meo says â€Å"let me put to death† which could declare that Juliet is Romeo’s weakness and that if someone breaks Juliet, Romeo will also shatter. Acts of Rebellion. (2016, Aug 05).

Wednesday, November 20, 2019

Policy Paper Middle East Term Example | Topics and Well Written Essays - 2500 words

Policy Middle East - Term Paper Example The mere fact that Syria is facing a civil war constitutes the problem statement, and other associated factors in form of internal and external elements of the overall scenario of Syria. The paper looks at the current standing of civil war in Syria, the historic perspective and the elements that contributed towards it and the future outlook of the country. Syria at present is in the grip of civil war. Further intentions and objectives include getting an understanding and familiarity of the dynamics of the Syrian territory, politics, society, demographics and other associated factors. Assessment in terms of the foreign states and their influence is also part of the study . The topic also provides an overview of the current problem faced by Syria in terms of the ongoing internal civil war. Key words: Civil War, Shiite community. One party state, chemical weapons. Background: Syria is situated in the south western part of Asia and is important on multiple accounts. One of these accounts is the neighborhood and demographic importance. Syria has its borders with Turkey, Israel and Lebanon. Hence the mere geography of Syria speaks of its strategic importance and mere turbulence in Syria would lead to the disturbance of balance in the entire region. Population of Syria makes up for around 22 million citizens and Syria is a multi cultural society that is relatively progressive in its outlook as compared to various other societies of the Middle East. Damascus is the capital city of the country and is centre to the business and political activities and from foreign viewpoint; it is center of attention as well. Syria is a Muslim populous country with over 85 percent of population constituting the Sunni Muslims while the remaining small percentage constitutes the Shiite community of Muslims. Apart from the largely represented population of Muslims there are traces of Christians and they have absolute freedom of worship and other elements of private life in the best manner possible. The form of government in Syria: The country has an uneven history of political affairs. The first unevenness came about in the 1960s when an elected government was toppled by the then Military leader Hafiz Al Asad. Hafiz Al Asad went on to rule the country for next three decades. His rule and reign came to an end around the 21st century and his rule was succeeded by his son Hafiz Al Asad. Since then, the political spectrum of country has been dominated and run by the family politics. The Alawati family is in the corridors of power since last four decades and the country has shaped up into a single party state. It is the small minority of the Shiite community that has been ruling over the majority Sunni community and as a result has created a vacuum and imbalance of the political activities(Billingsley, 2009, 151). The country does not enjoy true and transparent democracy, Bashar Al Asad has been elected to the seat of President ship on multiple instances. Syria once also remained as the part of Mandate system set forth by League of Nations and was given into the custody of France and later on gained its independence as an independent state afterwards. The country depicts number of features and elements that are characteristic of a despotic, tyrant and unelected leadership. The first challenge and vacuum is in form of the absence of any other political party. The

Tuesday, November 19, 2019

Aviation Essay Example | Topics and Well Written Essays - 750 words

Aviation - Essay Example These constraints constitute environmental, technological, political and legal concerns. Airlines in different countries of the world are owned by both private and public owners and the pricing policy takes into consideration all the prominent players of the aviation industry, such as airports, ground transports, the customers, and freight forwarders. Apart from that, they consistently endeavour to maximise their profits and minimise costs paid to airport authorities (Adler et, el., n.d.,). Obviously this objective is achieved through the means of proper pricing policy. The current practices of airline pricing include the cost-based pricing method that takes into account all the costs encountered during the operation such as landing charges, passenger diverging charges, air tariffs, cargo charges, loading and unloading charges, security expenditures, engine charges and other charges applicable to specific situations. For instance, some airlines charge higher for night air travels while some charge noise charges in order to fund the suspension schemes concerning noise created by aircraft on the airport (Adler et, el., n.d.,). Some airlines also go for peak-period pricing, which refers to pricing at a higher rate for some specific business seasons while lower for the others. Although these methods are widely in practice within most of the airlines, yet few airlines charge different prices at different levels of services, seasons, markets etc. -2- Relation of Pricing Practices with Costs, Investment Decision and Aircraft Capacity Pricing practices prevailing among the airlines are closely knitted with the various costs, investment decision and aircraft capacity. In fact, pricing decisions are taken while considering all of these factors, as price can seriously affect them. An efficient pricing practice can lead an airline to alleviate costs, maximize revenues and operate efficiently with maximum utilization of aircraft capacity. Airlines base their pricing policy most prominently on costs, which are mainly the charges imposed on the airlines by the airport authorities plus other technological, aircraft maintenance and security expenditures. Airline pricing evidently reflects the exacerbation and alleviation of various costs encountered during the flight operations. As the costs rise, prices too go up and vice versa. Therefore, the major concern of airlines while devising an efficacious pricing policy remains to minimise the charges, fees and tariffs paid to airport for the purpose of maximising its revenues. Airline pricing practices can further be related to the investment decisions. Airlines do base their investment decisions on pricing through cost estimation in a way as discussed by Banker and Johnston (1993). They say that airlines base their investment decisions after estimating their costs drivers. Pricing is determined with the objective to minimise costs and enhance revenues. The revenues are in turn considered to further enhance their investment into innovative technology to get competitive edge over the other airlines in the industry. These investment decisions can only be made once all the costs likely to be encountered in the year is estimated well by airline. Therefore pricing leads to the estimation of various costs, which in turn takes an airline to devise its investment decisio

Saturday, November 16, 2019

Sample Management Essay Essay Example for Free

Sample Management Essay Essay The major change in an organization consists in inclination towards customization versus standardization. As competitiveness grows, more rivals want to obtain bigger market shares. This way, customization becomes a very powerful tool that attracts customers much. In such an approach, managers have to take into account not customers’ needs and wants, as they used to before, but rather they should consider each customer separately. Of course, there are organizations that have to work for every customer individually, like advertising agencies, or barber’s shops, they literary cannot provide one and the same good or service for all customers, their business would then become unprofitable. Such kinds of organizations do not count. Great example of the ones that do count would be companies that produce clothes. Nike, as well as Levi’s has changed their approach tremendously over last years. Their intrinsic life of organization has been altered by the consumers’ demand of customized tangible goods. As a result, managers’ function has also been changed and has become more customer-driven. Prominent examples of customization were evident when both of the listed above companies offered unique services for every customer. One can observe at their website that every customer can pick his own color for shoes, not choose out from the offered list, and then have his name or unique id written on the side of each shoe. Another change that most of the organizations, as well as managers, experience is the change of the organizational structure. Since the primary tasks of an organization change, as discussed above, inner structure of the company also has to be changed, and that is where managers must perform the best they can. In order to manage employees properly, the basic step they have to implement is pick the most appropriate theory of organization, the model that suits their companies the most. This is usually not an easy task because one might consider contingency theory to be the most appropriate, while actually the best model in the situation would be systems theory. Furthermore, management theorists have developed another organizational theory that a manager would be likely to choose in today’s extremely competitive business world, and that is chaos theory, which is mostly on the natural randomness and chaos, or as it is often referred to enthropy. Bibliography 1. Burke, Warner. (2002). Organization Change: Theory and Practice. SAGE publications. 2. Davidson, Jeff. (2001). The Complete Idiot’s Guide to Change Management. Alpha Books.

Thursday, November 14, 2019

To Kill a Mockingbird - Theme of Innocence :: Free Essay Writer

To Kill a Mockingbird - Theme of Innocence       Innocence is a time when a person has never done something, it is the first step of the theme of innocence to experience. The second step in the movement from innocence to experience, is experience. This step is what is achieved after a person or thing has done something they have never done before or learns something they have never know before. The theme of growth from innocence to experience occurs many times in the first part of To Kill a Mockingbird, by Harper Lee. This process is one of the central themes in the first eleven chapters of this book, because it shows how Scout and Jem change and mature.    In To Kill a Mockingbird, by Harper Lee, there are many great examples of Jem or Scout moving from innocence to experience. One of these is on page 24 when Scout learns the proper way to treat a guest. After Scout has a fight with Walter Cunningham, Jem invites him to dinner. During the meal, Scout watches Walter pour a lot of syrup on his food. Thinking it unusual, Scout inquired about why he was doing it. Her comment embarrasses Walter. Calpernia, the housekeeper, brings her into the kitchen and tells her that she should never comment on the ways of their guest's eating habits or otherwise. To drive home her point, Calpernia not only informs Scout of her mistake, she slaps her.    Prior to these events happening, Scout had never know that it was improper to make fun of or judge a guest of the house. In her innocence, she had never before realized this behavior was inappropriate. The hit as well as the scolding have removed her innocence. Scout is now very aware of her mistake. With her new experience, she will most likely never embarrass a house guest again. She has learned her lesson.    In my life I have also gone through many situations that have taken me across the threshold of innocence to experience. One example of this would be, that when I was young, I was unaware that leaning back in a chair was dangerous. This would be my innocence, but one day when I was leaning back, I fell to the ground and took off the skin on my chin.

Monday, November 11, 2019

Baroque Painting Analysis

Baroque: Two Pieces, Two Styles: Procaccini versus Le Nain Art has changed immensely throughout its existence in recorded history. It has progressed from cave drawings to beautiful academically trained polished pieces of strongly cultured art. The transformations which â€Å"contemporary† (for the time) artists made are remarkable. Their extraordinarily trained artistic eyes give way to the magnificent brushwork their brains and hands skillfully construct. These ideas are seen quite evidently in the Museum of Fine Arts’ Koch Gallery. This massive space houses some of the most amazing artwork from some of the most famous artists.The space is constructed much like in the Academic Salon in that the pieces are arranged at different levels dictating their importance. The more influential and well-crafted works are hung at eye level, while the pieces that are not as highly regarded by the salon are hung either high above view or below the better pieces. Two images which just happen to be aligned and positioned at eye level, stand out amongst the beautiful works surrounding them. The pieces are Giulio Cesare Procaccini’s â€Å"The Scourging of Christ† and Mathieu Le Nain’s â€Å"The Entombment of Christ†. The two works offer much to the viewer.In both paintings the artist depicts a particular moment in the ultimate death of Jesus Christ. Alone each work can be deciphered and interpreted in many ways but together the two images open up a world of contrast and viewpoints of differing styles and influences. Giulio Cesare Procaccini was born in Bologna, Italy and about 10 years later moved to Milan where he flourished as a baroque sculptor and painter Procaccini’s work was also influenced by the mannerist style, a style that his father worked in. Milan and Italy in general, in the early 17th century was a booming artist Mecca.Artists like Caravaggio, Gentileschi, as well as Procaccini were making major advances in the baroq ue style. The depiction of religious and historical scenes was crucial in the early baroque paintings seen at the time of Procaccini’s professional career. The works such as Caravaggio’s â€Å"Entombment† as well as â€Å"The Conversion of Saint Paul† shed some light onto the influences of Procaccini. Much of Italy at the time had an eye for the theatrical and dramatic. This period saw intense motions, emotions and lighting. Giulio Cesare Procaccini’s â€Å"The Scourging of Christ† can be seen as the definition of the lending of the baroque style with that of the mannerist. With its immense size the artist is able to fully articulate the space and fit in the necessary information. The forms in the composition are placed in a way that the image is symmetrical on all sides. The painting is only a small fraction of what is actually occurring in the scene. The frame of the piece works as a way for our brain to only see what is put before us, but we must look further and put ourselves in the actual event and feel the crowd around us. The crowd can’t be seen but implied by the deep vignette surrounding the divinely lit Jesus.The frame works as an isolation for the pain and loneliness that can be seen in the eyes of Jesus. Procaccini’s decision to center Jesus in composition speaks volumes to what he is trying to evoke from the viewer. Jesus is seen bound to a small pillar sharing the center of the composition. With all the motion surrounding him, Jesus seems silent and alone in his pain. The painting composition can be considered complex as well as simple at the same time. The mass of movement of the characters and tension seen in the dimly lit corners would classify the painting as complex.In contrast to that categorization, Jesus with the use of strong light and shade is seen almost solely by himself. Jesus is centered in front of four other figures that are all arranged in a way that the image has equal weig ht on all sides and all the corners are articulated evenly. The use of exposed flesh in repetition is used starting with the soldier to the left, continuing to Jesus and finally to the older gentleman filling the bottom right of the composition. This use of this repetition is a nice touch and allows the viewer to read equally the surfaces of the piece.The scale and proportion of the figures are all equal lending into the validity of the scene in the space. Procaccini’s main objective in the painting is for the viewer to focus solely on the figures, negating to even hint at a background. The forms of the figures are so well constructed that they allow the forms to take a three dimensional shape. This helps create the idea of space on an otherwise flat canvas. The figures that aggressively lurk in the background are caught in a moment in time just before Jesus is repeatedly whipped.Procaccini cleverly links this very Italianesque painting with its classical routes by covering t he figure just about to whip Jesus with the scourge in a traditional turban, an obvious touch of the Middle East. This accurate depiction of garment is in contrast to the roman soldier that ultimately wouldn’t have been present at this moment in history. The soldier does serve a purpose in establishing baroque classicism in the treatment of his drapery as well as his beautifully articulated musculature, solidifying the presence of baroque classicism.The older gentleman depicted to the right of Jesus is reminiscent of Bronzino’s father time. The posture of both this gentleman and father time are somewhat similar and also the way both artists have treated his age relative to his younger strong build. This may be a subtle way of saying that Christ’s time on earth may be drawing to a close. It may have also served as a way to motivate the citizens to make the most of their time on earth. Line is not a very vital part of the composition and overall makeup of the imag e.In fact, few lines can be seen in the structural lines of the pillar that Jesus is bound to. However, one line of importance leads from the left foot of Jesus, up his thigh and through his torso, shooting our eye up from Jesus’ body to the scourge wielding hand of the figure about to strike him. These implied lines add geometric quality as well as move the viewer’s eye in the places the artist wishes. Jesus’ body also hints at a mannerist influence in that the body has an organic flow and use of serpentinata. It is evident in the contrapposto or weight shift that causes the body to form a flowing â€Å"S† shape.Playing a subtle role in the success of the piece, color is hinted in small areas but is overtaken with the dim lighting. Red is present in the upper right hand corner on the well-crafted garment of yet another scourge wielding citizen. Keeping with symmetry, Procaccini places a splash of red in the form of the soldier’s drapery. With colo r impacting the overall image in a somewhat small way, it allows for the use of light to make more of an impact. The lighting in â€Å"The Scourging of Christ† is without saying, breathtaking. Much like Caravaggio, Procaccini has mastered the use of Tenebrism.Christ is seen vibrantly lit in the center illuminated before a dark dismal scene unfolding behind him. In this situation, the image is depicting Christ so therefore the light can be considered divine. The divine light is cast down from god upon Jesus and works as a way to almost calm the situation and say to Jesus and the viewer that it is ok, that he’s suffering for the good of all mankind. This strong message can be classified as baroque psychology, where the viewer is emotionally and spiritually connected. Procaccini’s understanding of how he human condition reacts to certain things aid his artwork in a way that he knows the right outlet to reach his audience through. In this case it is the divine hand or light of God. Without having a defined background and use of planes the artist uses the bright light and contrasting darkness around it to allow for space to be viewed. As said before, Jesus is the foremost figure due to Tenebrism and the subsequent figures are depicted in space behind. The smooth transition from the divine lit areas, to the darker more undefined corners of the composition are extremely successful.For the divine light to hit Christ and not stray far from the small glow from his pale skin requires calm and deliberate style strokes. This transition only works well with this type of paint application. The exact strokes give it a photographic like quality that capture the scene precisely how it occurs without the abstraction of strokes like that of Rembrandt. This snapshot of a second in time and the skillful rendering of the scene all work together in allowing the scene to become real and the viewer to become emotionally moved and involved.None of this is by chance; Procaccini has skillfully laid out every aspect of the piece from the narrative, to the characters, as well as the emotions this piece would evoke. This take on a classic scene is timeless and his mastery of the baroque and mannerist styles are expertly crafted. In a rather stark contrast to Procaccini’s rendering of Christ before his time of death, Mathieu Le Nain has created â€Å"The Entombment of Christ†, a depiction of Christ after he was taken from the cross. Mathieu Le Nain was one of three brothers who were well known French baroque artists in the 17th century.The French baroque style is quite different to that of the baroque styles practiced in Southern and Eastern Europe, in particular, those found in Italy by artists such as Caravaggio and Procaccini. This style adheres to more of an academic rule, in that it’s very cold and geometrically placed. The paintings lack the emotion expressed by baroque artists with different cultural influences. The Frenc h style has a certain order and neatness of placement. Nain’s piece is of a large scale allowing for many figures to be fully articulated in the space and also for the addition of a landscape filling up the background.The eye of the viewer is carried from the right side of the piece inward to the left. Inward meaning, the eye is brought from the foreground on the figure scene and gets pulled into the composition towards the landscape scene unfolding in the back. Pictured far in the background in an oddly scaled cross, quite possibly the one Christ was crucified on. The skewing of the size, scale and proportion must be the artist’s attempt at making Jesus’ sacrifice larger than life, larger than the common man’s comprehension pain and sacrifice.The soldiers pictured closer to the viewer are sized in a proper way in relation to their distance from the viewer. The cropping of the image is placed so that we register a lot of information yet we wonder what is beyond the visual plane Nain has allowed us. The composition, with respect to the figures, is heavily weighed to the right side of the piece. The use of an even number of figures with Christ centered allows for an eye, pleasing symmetry. The figures Nain depicts surrounding the dead body of Christ are created and placed in a way that the pale lifeless body of Christ is viewed first and with more importance.The figural space is crowded with the bustle and movement of the preparation for entombment, yet the momentary connection between Mary and Jesus seems to be silent and with overwhelming emotion, the emotion for a mother’s loss of a child. The two people depicted in the back right of the composition appear to be working on a burial garment for Jesus. The bearded male on the right looks on intently as the figure on the right lays out wonderfully articulated drapery. The figures importance is established with their placement in the background of the pictorial plane.They are re presented for historical integrity but are arranged behind the ultimate importance of Jesus and his mother, Mary. The garments worn by all pictured are more representative of actual ones worn at the time and place to which the crucifixion, and ultimately the entombment of Christ occurred. The turban is also another historically accurate head garment worn by men in the Middle East. The accuracy and attention to historical details are in contrast to the baroque styles practiced by eastern European baroque artists. The use of color is much more prevalent in Nain’s piece.High saturation and deep tones of blues and reds are placed throughout the composition as well as lower more soft tones. Although there are areas of deep color saturation and vibrant tones, the overall scene is depicted as a drab dark cave and gray landscape. The most vibrant royal blue cloth is draped over Mary as she braces herself in mourning. This traditional use of the color is an indicator of the holy famil y, with Mary in particular. Mary also wears a high saturation red garment. This color is repeated on the figure supporting Christ’s lifeless body. This repetition helps link the two halves of the composition.In this piece, light proves to be equally important as the use of color. The lighting in Nain’s piece is skillfully rendered within the look and feel of the French baroque style. The warm fluid use of light across the entire composition allows for much more of the surface to be interpreted by the viewer. The painting, although well lit, still has the ability for a strong divine light to cast its glow on the deceased body of Jesus. The divine light also strikes Mary who is sitting in a most mournful way next to the body of her son. Atmospheric perspective is well captured in the cascading hills depicted in the background of the piece.Space is clearly created by each crest and trough of the rolling landscape. An overall blue gray tone is cast upon the farthest distan ces from our eye. In contrast to the correct rendering of the farthest distance, Nain has created a proportionally incorrect crucifix. With that being said, the space is ordered well leaving ample room for the small landscape far past the cave. The pictorial plane can be both shallow and deep. The viewer is placed in the small space surrounding the body of Christ and if chosen can peer past to a more deep and sprawling space.There is a horizon line that begins in the landscape on the right and continues to divide the composition throughout the figural space. The horizon line ends on the worktable of the figures in the background. This continuous line keeps the composition equally weighted and well placed. The contrasting dark walls and spaces surrounding the figures against the divine light allow for space to be created also making the space more believable to the viewer. With the image falling into the French baroque era and style it can be seen that the stylizing of the image is v ery calm with no erroneous marks.The fluid strokes and smooth transitions play well with the narrative of the story for it’s the time after Christ’s death and life seems to move in slow motion. Although texture can be seen in the strokes of the cave walls giving validity to the space and allowing the viewer to feel as though they are in the scene. Nain’s skillful crafting of the piece and attention to emotional and historical details lend to the overall success of the piece. It is clear Nain wishes for the viewer to feel the somberness of the ultimate sacrifice endured by Christ.Staying true to the French baroque styles of the time he was able to convey his message through a well thought out and cleanly placed composition. Both Procaccini’s â€Å"The Scourging of Christ† and Nain’s,† and â€Å"The Entombment of Christ,† depict a particular moment in time of the crucifixion of Christ. Though each portrays particular scenes under their own vision in their particular style, Procaccini’s Italian baroque influences are extremely evident in the painting with the strong use of light and the theatrical scene with strong movement and gut wrenching emotions.In contrast to the busy chaotic scene pictured by Procaccini, Nain uses a more refined approach and paints a much more academic and calm scene. The dullness of the tones with vivid splashes of color add many historical as well as religious touches that add to the overall feel that Nain is trying to express. Overall the two pieces are some of the more breathtaking renditions of classic religious art that can be seen. Both artists are the definition of their style and exemplify what true artistry is. ——————————————– [ 1 ]. http://en. ikipedia. org/wiki/Giulio_Cesare_Procaccini [ 2 ]. http://www. wga. hu/tours/spain/p_17. html [ 3 ]. http://en. wikipedia. org/wiki/Figura_serpentinata [ 4 ]. http://en. wikipedia. org/wiki/Contrapposto [ 5 ]. http://webartacademy. com/painting-techniques-tenebrism [ 6 ]. http://www. artistdaily. com/blogs/artistdaily/archive/2013/01/30/no-one-could-beat-rembrandt. aspx [ 7 ]. http://www. britannica. com/EBchecked/topic/1475261/Le-Nain-brothers [ 8 ]. http://www. essential-humanities. net/western-art/western-painting/baroque-painting/#. UV0HaaKG2So

Saturday, November 9, 2019

Inaugural Ceromany of Sport Event Essay

The Sixth National Games kicked off in Dhangadi of Kailali district in Far-Western region on 28th of February 2012. President Ram Baran Yadav inaugurated the Sixth National Games amid a special function at Dhangadi Stadium. President Yadav urged players to elevate patriotism and brotherhood through sports. Prime Minister Dr. Baburam Bhattarai, Finance Minister Barsa Man Pun and other ministers also attended the openingceremony. Before the inauguration of the event, players from different districts had performed various pageantries. Earlier, Nepal’s Olympian Dipak Bista had lit the cauldron of Sixth National Games at the Dhangadhi stadium. A team of former Olympians had carried the flame to Dhangadhi stadium all the way from Buddha’s birth place Lumbini. Altogether 3,619 players with 1,940 officials from five development regions, Nepal Police Club, Armed Police Force Club, PLA Club of Maoist combatants and a university team had participated in the march-past that featured during the opening ceremony. The games were held in Dhangadhi, Mahendranagar and Tikapur in the far-western region . Altogether 10 gold medals were decided on the first day of the sixth national games today. The first gold medal of the game was grabbed by Ajay Pandit Chhetri in Cycling. Pandit finished first in the national mountain bike tournament held at Dhulikhel of Kavre , after completing the stipulated distance in 2 hours 1 minute and 18 seconds. Raj kumar shrestha and Narayan Gopal Maharjan won silver and bronze in the same even respectively. Likewise in women’s category of the same event, Nirjala Tamrakar bagged gold after completing the distance in 1 hour 53 minutes and 59 seconds. The silver and broze went to Laxmi Magar and Sita Rimal respectively. Meawhile in Birgunj 8 gold medals were decided in various swimming events. 13 years old Shirish Gurung of central region won gold in the 400 meter freestyle while Shailesh Rana and Prabesh Adhikari came out second and third respectively. In the women’s category of the 200 meter freestyle, Shaila Rana bagged gold while Shreya Dhital and Oshin Bharati bagged silver and bronze respectively. In Men’s event of 200 meter back stroke, the result came out in favor of Shailesh Rana while silver and bronze went to Babin Shrestha and Shirish Gurung respectively. Karishma Karki bagged gold, Shaila Rana silver and Manisha Bista bronze in the women’s event of the same category. Shailesh Rana, yet again added two more golds under his belt later in the event of 200 metre back stroke and the 100 metre butterfly. The Women’s event of these two categories had Shreya Dhital claiming 2 more golds as swimmers from the Central region completely dominatedthecontest. The event which continued till March 4 which featured altogether 32 games — 13 games were organised in Dhangadi, 12 in Mahendranagar of Kanchanpur and the remaining were organised in Kathmandu, Nepalgunj and Birgunj due to lack of infrastructures in the Kailali and Kanchanpur districts. Athletes and players from all five development regions of the coutnry are participated in the national sporting extravaganza.

Thursday, November 7, 2019

28 Super Simple Things You Can Do to Be Happier [Infographic]

28 Super Simple Things You Can Do to Be Happier [Infographic] Sometimes in our daily life, small annoyances and irritations can build up and begin to affect your day to day mood, health and general well-being. It is so easy to get content with our day to day life, but there are always things we can do to improve our well-being and happiness. This infographic by MyBreast outlines 28 simple things you can do every day to improve your happiness, from things as simple as sending an email to an old friend to celebrate small success with people you care about. You could even turn this into a 28 days challenge to improve your life. By the end of 28 days, you should look back and see how much impact small positive things can have over your well-being and happiness. [Source: Mybreast]

Monday, November 4, 2019

Political Communication in the USA Assignment Example | Topics and Well Written Essays - 1750 words

Political Communication in the USA - Assignment Example The bailouts allowed the state to set more conditions for the corporate sector and as a result America has an extremely state regulated financial sector which endangers the freedom for innovation and creativity (â€Å"The Government Won† 2013). This calls for further reforms in the government regulation because in the current situation, the state’s power is making politicians more influential in the capital market, even in the private sector which is eroding the capitalist freedom that has enabled significant growth over the centuries. The status quo that exaggerates the power of the state should be regulated such that banks are less answerable to the government and by extension politicians. Instead, they should set rules that regulate risk taking and standards for deposits so that companies can have leeway for innovation with the knowledge that in case they mess up, they can expect no protection from the tax payers. The article which was written just before the 2010 elections is titled the â€Å"the first social media election†. It discusses the impact of social media in the UK elections in a backdrop of a system which only five years ago the platform was irrelevant and inapplicable (Arthur, 2010). People watching the lection debates from home were said to be doing it on two screen, the TV and the Facebook or tweeter one. The article implies that there is a real possibility of social media influencing the outcome of elections since citizens may react to the nature of the feedback they access on their respective parties from social media. The labour and Tory parties are trying hard to capitalise on â€Å"social media â€Å"capital which according to many was what got Barack Obama elected in 2008 in the US.   

Saturday, November 2, 2019

Women Smoking Essay Example | Topics and Well Written Essays - 500 words

Women Smoking - Essay Example Due to the increased levels of smoking among women, the figure for deaths among women world-wide is set to double by 2020 (WHO, 1992). It is estimated that approximately 41,000 women die prematurely each year as a result of smoking in the U.K (Callum, 1995). Across the EU countries, the figure is estimated at 106,000. A total of 500,000 deaths per year is the estimated world total (WHO, 1992). A broad range of styles is offered to meet the expressed wants established as preferences by the different segments of the smoking population, for example women and these include taste, packaging and cigarette length, and these marketing strategies are targeted at women who are more concerned and worried about smoking but are less likely to quit. They look for more situational cues to smoke (Brown and Williamson, 1979). Smoking rates follow underprivilege, and these include the racial underprivilege. Statistics reflect that black women living in a society dominated by whites tend to have a higher smoking rate than their white counterparts. In America for example, the rates of lung cancer have increased faster among the black women than among white women.

Thursday, October 31, 2019

Retailing Advertising Analysis Essay Example | Topics and Well Written Essays - 2500 words

Retailing Advertising Analysis - Essay Example The strong emergence of online communication among people in various regions of the world has made possible, the delivery of services and products using the online platform as a communication, as well as a delivery media. This very factor has contributed in a great way to the emergence of online retailing where retailers and wholesalers can provide bulk delivery of products or individual delivery of products to clients or individual customers, who are located in different parts of the world. The virtual world of internet has literally played a major role in removing the geographical barriers existing in the physical world, and has helped in the value communication, value distribution as well as value delivery of the retail products by catering to the global audience. The emergence of online retailing has led to the development of new retailing formats like consumer to consumer format which has been made popular by online retailing sites like eBay, dealdump, dealplus, etc. In this cas e, the product that is being advertised is handcrafted jewellery items, which are designed and developed in India and is marketed by Indian fashions through their retail website www.indianfashionstore.in (Indian Jewellery, 2009). The handcrafted Indian jewellery mostly has the ethnic as well as traditional Indian themes and is catered mostly to the consumers living in UK. The target market for the products is mostly the female consumers of UK who are essentially falling in the age group of 18 - 36 years. The online retail website www.indianfashionstore.in acts as a window for displaying the multiple ranges of jewellery items online to customers around the globe. The political analysis of the market reveals that there are certain checkpoints in regards to dealing in jewellery business. The jewellery that is supposed to be imported in the UK market needs to be tested by the law and also has to have the label of hallmark in regards to its authenticity. Apart from that, import duty is a lso applicable for jewellery that is being imported in the UK market from Asia Pacific regions like India (Harris, 2011, p. 5) The economic analysis of the market reveals that the consumers are increasingly trying to squeeze their spending as the UK market continues to suffer from the pangs of the economic crisis rolled out by the Euro zone. However, the consumers insists in buying jewellery that is trendy and is bold in making the fashion statement for them, even in the troubled economic times. The social demand for the jewellery market in the UK region reveals that the modern woman who has the purchasing power parity are treating themselves to buying more jewellery for their personal use. Also, the trend of buying jewellery by men for the purpose of gifting to their significant partners is picking up in the UK market as well. Apart from these two segments, a large section of UK consumers are also highly interested in purchasing jewellery which are affordable as per their budget an d are highly trendy at the same time (Harris, 2011, p. 9). So, it is quite evident that the advertising of the India made jewellery products should highlight the hallmark issues while displaying their product to the intended target audience. Also the advertising needs to highlight the latest jewellery trends on the boundaries of

Tuesday, October 29, 2019

Cloud service technology and how is improving e-business Research Paper

Cloud service technology and how is improving e-business - Research Paper Example Cloud resources are usually shared by multiple users and dynamically reallocated per demand. This works for allocating resources to users. For instance, a cloud computer facility serving the entire Asian continent users during working hours with a specific Application like email is likely to reallocate the same resources to serve North African users during the working hours with a different application like web server (Armbrust et al., 2013). This approach maximizes the computer power usage hence decreasing environmental damage as less usage of power among other necessary requirements like air conditioning and rack. Cloud service technology enables multiple users to access a single server to be retrieved and update its data without necessarily purchasing various licenses for various applications (Armbrust et al., 2013). Cloud service technology has made it possible for companies to avoid upfront infrastructure costs. Instead, the companies have focused on projects that differentiate their businesses instead of infrastructure. In addition, the technology has allowed enterprises to get their applications up and running faster with less maintenance and improved manageability to enable information technology to adjust resources rapidly and meet the unpredictable and fluctuating demands of business (Bowen, 2011). The pay as you go model is the preferred model for cloud service technology. The model cautions administrators to adapt the cloud pricing model; otherwise, they are likely to pay high charges unexpectedly. The technology has enabled the production of hosted services. Cloud computing sells hosted services through application service provision. The application is run by client server software in remote locations. Some of the services are Software as a Service (SaaS) and Platform as a Service (PaaS) among others (Bowen, 2011). End users can access cloud based applications via thin client, mobile applications and web browsers among

Sunday, October 27, 2019

Causes And Effects Of Carbonated Beverages

Causes And Effects Of Carbonated Beverages The aim of our research is to focus on the side effects of carbonated drinks in order to create awareness for every consumer who wants to secure their upcoming future from the hazards of carbonated drinks, commonly called soft drinks. The need for research was felt, as it is one of the neglected areas, so by further research in this regard would surely help in creating awareness, educating the mass and in the development of preventive, promotional and curative health program in the community. As the knowledge of our people, particularly students regarding the side effects by the consumption of carbonated drinks is not satisfactory. The attitude of students is relatively better but their practices are neither preventive nor health promoting. Thus, there is a need of Behavioral Change in youngsters. Before discussing the causes and effects of carbonated beverages let us, know what the attitude is. Attitude towards something is very important for human life because facilitates communication between people. It is one of the important attribute of a person which communicates his first impression on others and the kind of personality he possesses. Personality type is one of the crucial elements in shaping an individuals life. Therefore, attitude towards something is very important to be determined at initials so that in upcoming stages of life an individual may learn and shape his attitude accordingly. Therefore, to change the attitude of people towards something, awareness is the first step and one of the efficient tools to help people learn and educate very effectively by providing them knowledge and by throwing light and exploring unexplored issues, which are directly or indirectly affect our lives. One of the important but neglected issues in our lives is of health. We like to suffer from problems and diseases first and then go for solutions; this type of approach is called as post approach. We as a nation is in need to adopt pre-approach especially in the field of health .One of the great saying defines the best: Prevention is better than cure. Carbonated Beverages are those drinks which have carbon dioxide (a colorless and tasteless gas) in it excluding alcohol. Among all the soft drinks colas are the most popular one. The ingredients in such colas are sweeteners, and chemicals such as carbonic and phosphoric acids, citric acid which harms teeth and causes weakness of bone. Colas contain a reasonable amount of caffeine. Caffeine is a natural diuretic and so can actually make a person thirstier and encourage dehydration. Variety of soft drinks is consumed by a high percentage of population on daily basis. The consumption of soft drinks in greatest quantity has been observed mostly in children and adolescents. In the current study, the knowledge base of students regarding the harmful effects of carbonated drinks is not satisfactory. William Frazier says: In order to neutralize a glass of cola, it takes 32 glasses of high pH alkaline water. In the 1840s, carbonated water began having flavorings added to it. By the turn of the 1900s, Carbonated Beverages had become a part of a typical western consumers drink choices. Originally, Carbonated Beverages were seen as healthy, or a way to distribute healthful creation in a way that made them pleasant and convenient to drink. Carbonated drinks were marketed as a digestive support as late as the 1950s.Then, they came to be seen as junk foodstuff as the term in essence came to mean soda pop. Now (2007), parts of the Carbonated Beverage industry are trying to rebrand themselves as Energy drinks, and natural drinks such as water, juices and various teas have been carbonated. Probably the first carbonated drink to be sold in a Can was Cliquot Club brand ginger ale, in 1938. (practically edible.com) In medical and scientific field there is a going concern about the causes and effects of carbonated drinks on the health of consumers but unfortunately until yet their harmful effects have not been explored widely. Still some of the researchers have identified harmful effects of cola on health but they are unable to increase awareness in consumers may be because they are not given a space to expose. According to the study of Himalayan Institute of Medical Science (H.I.M.S.), Dehradun, about 92.10% of the medical students and 95.08% of the nursing students had ever heard about the carbonated drinks. The aim of the study was to assess the awareness, attitude and practices of students regarding carbonated drinks. (Kishore, Aggarwal, Muzammil, Oct-December 2009) A clear association has been found in a meta-analysis of 88 studies between the soft drink consumption with increased body weight. Increased soft drink consumption was also found to be associated with decreased calcium intake and increased risk of numerous medical problems e.g., diabetes. Thus, a strong relation was found between soft drink intake and nutrition and health effects. (Vartanian, Schwartz, Brownell, 2007) In a number of observational studies and reports it was concluded that carbonated beverages are associated with the risk of reduced bone mass and increased fractures. Researchers examined that particularly colas were found to have strong link among other carbonated beverages and the reason of such adverse effect is the content that is phosphoric acid found in the carbonated beverages. (Heaney Rafferty, 2001) A study was done to examine the cause of osteoporosis and the research concluded that the consumption of cola is associated with low Bone Mineral Density (BMD) in women. (Tucker, Kyoko, Qiao, Hannan, Kiel, 2006) However, the relationship between the milk and risk of bone fracture, and consumption of soft drink with osteoporosis in women and children found to be inversely and directly proportional respectively. However, knowing the fact of these relationship women and children are still moving towards extra-consumption of soft drinks and declining milk attitudes has shown promptly. (Squirres, Sally) High consumption of carbonated drinks increases the tendency of osteoporosis especially in children and women. Phosphoric acid and citric acid are the two main acidic contents that play the dramatically role in increasing the proneness of bone fracture. The phosphoric acid removes those nutritious mineral whereby the bones weaken and so in aggressive conditions results in break of bones. A survey conducted on a large number of athlete women who consumes carbonated drinks in order to examine the effects of carbonated beverages. They find that acidic contents are the main cause of dissolving calcium from bones. (Spencer, Kramer, Osis, 1988) Leeann Birch, a researcher from Pennsylvania State University, has found that soft drinks frequently displace nutritious beverages, such as milk and juices, Because of such displacement of drinking choice especially youngsters are unable to meet their current milk requirement, which is needed at every stage for human body growth. The noticeably increment of the childhood obesity in this generation must be taken seriously by the parents of those children. Not only the obesity problems but also various problems are just resulted by the high consumption of carbonated beverages taken by them. These health problems may include diabetes, tooth decay, osteoporosis, and many neurological disorders. Children usually exposed to drink soda pops as junk food. They have the ability adopt the attitude of what others to something and if they feel pleasure, they make their attitude as a habit. Mostly youngsters are more addictive of such drinks just because of their attitudes of consuming carbonated drinks in surprising quantity without having the knowledge of risk associated with it. (Kishore, Aggarwal, Muzammil, Oct-December 2009). In this regard, a research conducted by the team of Harvard Researchers they found that 14-year-olds children who did not drinks habitually were less likely to be obese than those who use to ta ke drink soft. Carbonated beverages may cause significant long-term enamel dissolution and were found to be more aggressive towards enamel then coffee or tea. (Fraunhofer Rogers, 2004) Excessive consumption of soft drinks can cause complex dental consequences including dental erosion and caries, both conditions may result in harmful effects on dental hard tissues. (Cheng, Yang, Shao, 2009) We have found two causes of the dissolution of enamel. The general reasons given by dentists are the low pH value, amount of sugars and variety of addictives in carbonated drinks leads to the dissolution of enamel. The consumption of such drinks affects enamel, a hard thin calcium-containing layer that covers and protects the crown of a tooth. Numerous surveys are conduct in this regard. A young boy examined in this regard in 2002, who consumed more than two beverages per day, reported uncontrolled dental decay during operation at computer terminal. Secondly, it has found that soft drinks are more harmful for enamel in mostly two conditions: when taking alone and continual sipping. However, during food time soft drinks cannot affect as much as when it takes alone. During food, our mouth secreted saliva whereby the acids and the sugar does not retain on dental enamel but retained when drinking alone, this is happen more likely by cola drinks than other beverages, results in starting tooth decay. It is a common problem, associated with the consumption of a large number of soft drinks, in which acid level increases throughout the body. All carbonated drinks are very acidic in taste; particularly dark colas such as Coke and Pepsi are much more acidic. (Kishore, Aggarwal, Muzammil, Oct-December 2009) There is a news article, which has published in Al-Riyadh newspaper on August 20, 2006, in which it is stated that according to scientific and medical research: Drinking Pepsi and Cola leads to cancer because the key element is taken from Pigs Sausage. The heavenly book Quran, Bible and Torah forbids eating Pork, as it is the only animal that eats dirt, dung and urine, which makes lethal and deadly fabric polluted germs and microbes. The Indian University performed tests on the impact of consumption of Pepsi and Coca Cola, which proved that drinking them, lead to more rapid heart rate and low pressure. Bones kept in the cup of Pepsi soften during the week knowing that the bones of the dead remain in the grave for thirty years. Study itself confirmed that the calcium dissolved in Pepsi and it weakens the bladder, kidneys; kill the pancreas, lead to diabetes and contagious diseases. (pegham.com) A study was conducted on carbonated beverages and among all the soft drinks, Coke and Pepsi were taken in consideration. Some, but not all, carbonated drinks were linked to about 50-80% of higher risk of pancreatic cancer when consumption is done on regular basis with 1+ serving. Thus, the study concluded that a strong relationship was found between carbonated drinks and the risk of pancreatic cancer. (Chan, Wang, Holly, 2009) According to the Ministry of Health and Family Welfare (Dr.Ambumani Ramadoss) has clarified the steps that Government has taken from the JPC Report of 2003.After the JPCs Report standards were fixed to these carbonated drinks, namely, Coke, Pepsi or other later drinks. India was one of the first countries in the world to fix standards for carbonated drinks. (Kishore, Aggarwal, Muzammil, Oct-December 2009) Also in most of the observational studies, colas are seen to be strongly associated with the risk of increased bone fracture. In many western countries, the use of milk is declining because of increased consumption of soft drinks and fruit juices, resulting in unhealthy routine as milk and water are the essential products for daily life and should be consumed on daily basis for proper growth and health. One of the key point that all of us must consider is, that over utilization of anything should be avoided especially when something is related to human health as we all know: Health is Wealth. Therefore, awareness is the first step to understand the difference between right and wrong, good and bad, harmful and beneficial. Adolescents and kids dont think long-term, its the duty of adult people or the people who have the knowledge regarding this neglected issue, should educate the mass about it so that our young generation may know and understand harmful effects of carbonated drinks and may change their attitude towards such drinks. They may reduce the consumption of cola carbonated beverages or they might completely switch to nutritious drinks like milk and juices. However, if consumers wont change their attitude towards soft drink consumption then that may result in increased health problems like obesity and osteoporosis and at that time when they have got into these health problems then changing attitude or opting for healthy drinks will be too late to help. Healthier drinks are generally replaced by soda. By high consumption of soda you cut the intake of fruit juices, milk and even water and withdraw yourself from essential vitamins and minerals, which are the key ingredients for healthy life. Healthy people always have the attitude that they go for healthy things and there are so many healthy alternatives available such as water, tea and fruit juices. Water is the best alternative as it reduces the thirst and serves as the best drink of all the drinks in the universe as it contains natural elements. Another alternative of soft drinks can be tea, which can provide safety in our body as it contains antioxidants, which helps in fighting health problems. Now, variants of tea such as green tea is available in different flavors like herbs and lemon, considered as a helping tool in reducing weight. Another good alternative of soft drinks can be fruit juices as they are pure and rich in vitamins. Thus, there are many healthy and nutritious alternative drinks are available so we as a consumer must go for such drinks, as they are beneficial to us in form of growth and development of our body and mind, which is the essence of life.

Friday, October 25, 2019

Equality of Access or Opportunity: The Role of Womens Colleges in the 21st Century :: Free Essays Online

Equality of Access or Opportunity: The Role of Women's Colleges in the 21st Century 1. In 2001, almost fifteen million students attended postsecondary institutions in the United States and more than half of these students were women. Of these female students, ninety-eight percent of them attended coeducational institutions, but only two percent of them attended women's colleges (Langdon 2). While this data statistically documents American society's strong belief in the value of coeducation, it also highlights the recent decline in the popularity of women's colleges. As American society has come to believe that the problem of inequality in the education of men and women is no longer pertinent due to the fact that women are now afforded access to higher education, the country has discredited the validity of women's single-sex education. However, the surviving women's colleges are challenging this access-based definition of equality by renewing their mission statements and strengthening their educational goals. By refusing to equate equality of access with equality of opportunity and therefore recognizing the gender inequalities present in the educational system, women's colleges currently serve as the best way to prepare female students for active participation in the public sphere. 2. In order to understand the recent trend towards coeducation, the evolution of the women's college as a response to the lack of access to higher education must first be explored in depth. The women-only institutions that preceded the women's college and were highly popular from the 1820s on were known as "academies" or "seminaries" (Harwarth 1). While they did teach core academic subjects to their pupils, seminaries were seen by many progressive educationalists as an inadequate way to deal with the lack of quality education for females. Such seminaries lacked the governance of a board of trustees that provides educational institutions with permanence, credibility, and direction through the form of a mission statement and economic support in the form of an endowment. Because validity was seen as an essential step towards guaranteeing women a level educational playing- field, women's colleges followed the organizational mold cast by men's colleges, including forming board of trustee s, actions that institutionalized and therefore made important the goal of equal education for women. It was this tenet of equality upon which women's colleges were founded, specifically at this time period the equality of access to higher education. The will of Sophia Smith, founder of Smith College in 1875, stated that that it is "with the design to furnish my sex means and facilities for education equal to those which are afforded now in our Colleges for young men" (Harwarth 4).

Thursday, October 24, 2019

C# Step by Step Codes

SREEKANTH C# STEP BY STEP Microsoft Visual Studio C#. NET Step By Step 1 SREEKANTH C# STEP BY STEP Introduction Microsoft Visual C# is a powerful but simple language aimed primarily at developers creating applications by using the Microsoft . NET Framework. It inherits many of the best features of C++ and Microsoft Visual Basic, but few of the inconsistencies and anachronisms, resulting in a cleaner and more logical language. The advent of C# 2. 0 has seen several important new features added to the language, including Generics, Iterators, and anonymous methods.The development environment provided by Microsoft Visual Studio 2005 makes these powerful features easy to use, and the many new wizards and enhancements included in Visual Studio 2005 can greatly improve your productivity as a developer. The aim of this book is to teach you the fundamentals of programming with C# by using Visual Studio 2005 and the . NET Framework. You will learn the features of the C# language, and then use them to build applications running on the Microsoft Windows operating system.By the time you complete this book, you will have a thorough understanding of C# and will have used it to build Windows Forms applications, access Microsoft SQL Server databases, develop ASP. NET Web applications, and build and consume a Web service. Part I Introducing Microsoft Visual C# and Microsoft Visual Studio 2005 Chapter 1 Welcome to C# After completing this chapter, you will be able to: †¢ †¢ †¢ †¢ Use the Visual Studio 2005 programming environment. Create a C# console application. Use namespaces. Create a C# Windows Forms application. Microsoft Visual C# is Microsoft's powerful, component-oriented language.C# plays an important role in the architecture of the Microsoft . NET Framework, and some people have drawn comparisons to the role that C played in the development of UNIX. If you already know a language such as C, C++, or Java, you'll find the syntax of C# reassuringly fami liar because it uses the same curly brackets to delimit blocks of code. However, if you are used to programming in other languages, you should soon be able to pick up the syntax and feel of C#; you just need to learn to put the curly brackets and semi-colons in the right place. Hopefully this is just the book to help you!In Part I, you'll learn the fundamentals of C#. You'll discover how to declare variables and how to use operators such as plus (+) and minus (-) to create values. You'll see how to write methods and pass arguments to methods. You'll also learn how to use selection statements such as if and iteration statements such as while. Finally, you'll understand how C# uses exceptions to handle errors in a graceful, easy-to-use manner. These topics form the core of C#, and from this solid foundation, you'll progress to more advanced features in Part II through Part VI. 2 SREEKANTH C# STEP BY STEPBeginning Programming with the Visual Studio 2005 Environment Visual Studio 2005 i s a tool-rich programming environment containing all the functionality you'll need to create large or small C# projects. You can even create projects that seamlessly combine modules from different languages. In the first exercise, you'll start the Visual Studio 2005 programming environment and learn how to create a console application. Create a console application in Visual Studio 2005 1. In Microsoft Windows, click the Start button, point to All Programs, and then point to Microsoft Visual Studio 2005. 2.Click the Microsoft Visual Studio 2005 icon. Visual Studio 2005 starts. NOTE If this is the first time that you have run Visual Studio 2005, you might see a dialog box prompting you to choose your default development environment settings. Visual Studio 2005 can tailor itself according your preferred development language. The various dialog boxes and tools in the integrated development environment (IDE) will have their default selections set for the language you 3 SREEKANTH C# STEP BY STEP choose. Select Visual C# Development Settings from the list, and then click the Start Visual Studio button.After a short delay, the Visual Studio 2005 IDE appears. 3. On the File menu, point to New, and then click Project. The New Project dialog box opens. This dialog box allows you to create a new project using various templates, such as Windows Application, Class Library, and Console Application, that specify the type of application you want to create. NOTE The actual templates available depend on the version of Visual Studio 2005 you are using. It is also possible to define new project templates, but that is beyond the scope of this book. 4.In the Templates pane, click the Console Application icon. 5. In the Location field, type C:Documents and SettingsYourNameMy DocumentsMicrosoft PressVisual CSharp Step by StepChapter 1. Replace the text YourName in this path with your Windows user name. To save a bit of space throughout the rest of this book, we will simply refer to th e path â€Å"C:Documents and SettingsYourNameMy Documents† as your â€Å"My Documents† folder. 4 SREEKANTH C# STEP BY STEP NOTE If the folder you specify does not exist, Visual Studio 2005 creates it for you. 6. In the Name field, type TextHello. . Ensure that the Create Directory for Solution check box is checked and then click OK. The new project opens. The menu bar at the top of the screen provides access to the features you'll use in the programming environment. You can use the keyboard or the mouse to access the menus and commands exactly as you can in all Windows-based programs. The toolbar is located beneath the menu bar and provides button shortcuts to run the most frequently used commands. The Code and Text Editor window occupying the main part of the IDE displays the contents of source files.In a multi-file project, each source file has its own tab labeled with the name of the source file. You can click the tab once to bring the named source file to the foreg round in the Code and Text Editor window. The Solution Explorer displays the names of the files associated with the project, among other items. You can also double-click a file name in the Solution Explorer to bring that source file to the foreground in the Code and Text Editor window. 5 SREEKANTH C# STEP BY STEP Before writing the code, examine the files listed in the Solution Explorer, which Visual Studio 2005 has created as part of your project: Solution ‘TextHello' This is the top-level solution file, of which there is one per application. If you use Windows Explorer to look at your My DocumentsVisual CSharp Step by StepChapter 1TextHello folder, you'll see that the actual name of this file is TextHello. sln. Each solution file contains references to one or more project files. †¢ TextHello This is the C# project file. Each project file references one or more files containing the source code and other items for the project. All the source code in a single project must be written in the same programming language.In Windows Explorer, this file is actually called TextHello. csproj, and it is stored in your My DocumentsVisual CSharp Step by StepChapter 1TextHelloTextHello folder. †¢ Properties This is a folder in the TextHello project. If you expand it, you will see that it contains a file called AssemblyInfo. cs. AssemblyInfo. cs is a special file that you can use to add attributes to a program, such as the name of the author, the date the program was written, and so on. There are additional attributes that you can use to modify the way in which the program will run.These attributes are outside the scope of this book. †¢ References This is a folder that contains references to compiled code that your application can use. When code is compiled, it is converted into an assembly and given a unique name. Developers use assemblies to package up useful bits of code that they have written for distribution to other developers that might want to use them in their applications. Many of the features that you will be using when writing applications using this book will make use of assemblies provided by Microsoft with Visual Studio 2005. †¢ Program. csThis is a C# source file, and is the one displayed in the Code and Text Editor window when the project is first created. You will write your code in this file. It contains some code that Visual Studio 2005 provides automatically, which you will examine shortly. Writing Your First Program The Program. cs file defines a class called Program that contains a method called Main. All methods must be defined inside a class. The Main method is special—it designates the program's entry point. It must be a static method. (Methods are discussed in 6 SREEKANTH C# STEP BY STEP Chapter 3, â€Å"Writing Methods and Applying Scope. Static methods are discussed in Chapter 7, â€Å"Creating and Managing Classes and Objects. † The Main method is discussed in Chapter 11, â€Å"Unde rstanding Parameter Arrays. †) IMPORTANT C# is a case-sensitive language. You must spell Main with a capital M. In the following exercises, you'll write the code to display the message Hello World in the console; you'll build and run your Hello World console application; you'll learn how namespaces are used to partition code elements. Write the code using IntelliSense technology 1. In the Code and Text Editor window displaying the Program. s file, place the cursor in the Main method after the opening brace, and type Console. As you type the letter C at the start of the word Console an IntelliSense list appears. This list contains all of the valid C# keywords and data types that are valid in this context. You can either continue typing, or scroll through the list and double-click the Console item with the mouse. Alternatively, after you have typed Con, the Intellisense list will automatically home in on the Console item and you can press the Tab, Enter, or Spacebar key to selec t it. Main should look like this: static void Main(string[] args) Console } NOTE Console is a built-in class that contains the methods for displaying messages on the screen and getting input from the keyboard. 2. Type a period immediately after Console. Another Intellisense list appears displaying the methods, properties, and fields of the Console class. 3. Scroll down through the list until WriteLine is selected, and then press Enter. Alternatively, you can continue typing until WriteLine is selected and then press Enter. The IntelliSense list closes, and the WriteLine method is added to the source file. Main should now look like this: static void Main(string[] args) Console. WriteLine } 4. Type an open parenthesis. Another IntelliSense tip appears. This tip displays the parameters of the WriteLine method. In fact, WriteLine is an overloaded method, meaning that Console contains more than one method named Write Line. Each version of the WriteLine method can be used to output differ ent 7 SREEKANTH C# STEP BY STEP types of data. (Overloaded methods are discussed in Chapter 3. ) Main should now look like this: static void Main(string[] args) { Console. WriteLine( } You can click the tip's up and down arrows to scroll through the overloaded versions of WriteLine. . Type a close parenthesis, followed by a semicolon. Main should now look like this: static void Main(string[] args) { Console. WriteLine(); } 6. Type the string â€Å"Hello World† between the left and right parentheses. Main should now look like this: static void Main(string[] args) { Console. WriteLine(â€Å"Hello World†); } TIP Get into the habit of typing matched character pairs, such as ( and ) and { and }, before filling in their contents. It's easy to forget the closing character if you wait until after you've entered the contents. 8 SREEKANTH C# STEP BY STEP NOTEYou will frequently see lines of code containing two forward slashes followed by ordinary text. These are comments. They a re ignored by the compiler, but are very useful for developers because they help document what a program is actually doing. For example: Console. ReadLine(); // Wait for the user to press the Enter key All text from the two slashes to the end of the line will be skipped by the compiler. You can also add multi-line comments starting with /*. The compiler will skip everything until it finds a */ sequence, which could be many lines lower down.You are actively encouraged to document your code with as many comments as necessary. Build and run the console application 1. On the Build menu, click Build Solution. This action causes the C# code to be compiled, resulting in a program that you can run. The Output windows appears below the Code and Text Editor window. a. TIP If the Output window does not appear, click the View menu, and then click Output to display it. b. In the Output window, messages similar to the following show how the program is being compiled and display the details of any errors that have 9 SREEKANTH C# STEP BY STEP occurred.In this case there should be no errors or warnings, and the program should build successfully: c. —— Build started: Project: TextHello, Configuration: Debug Any CPU —d. Csc. exe /config /nowarn:†1701;1702†³ /errorreport: prompt /warn:4 †¦ e. Compile complete –- 0 errors, 0 warnings f. TextHello -> C:Documents and SettingsJohnMy DocumentsMicrosoft Press†¦ g. ============ Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ======== h. NOTE An asterisk after the file name in the tab above the Code and Text Editor window indicates that the file has been changed since it was last saved.There is no need to manually save the file before building because the Build Solution command automatically saves the file. 2. On the Debug menu, click Start Without Debugging. A Command window opens and the program runs. The message Hello World appears, and then the program waits for the user to press any key, as shown in the following graphic: 3. Ensure that the Command window displaying the program has the focus, and then press Enter. The Command window closes and you return to the Visual Studio 2005 programming environment. NOTE If you run the program using Start Debugging on the Debug menu, the pplication runs but the Command window closes immediately without waiting for you to press a key. 4. In the Solution Explorer, click the TextHello project (not the solution), and then click Show All Files button. Entries named bin and obj appear above the C# source filenames. These entries correspond directly to folders named bin and obj in the project folder (My DocumentsVisual CSharp Step by StepChapter 1TextHelloTextHello). These folders are created when you build your application, and they contain the executable version of the program and some other files. 10 SREEKANTHC# STEP BY STEP 5. 5. In the Solution Explorer, click the + to the left of the bin entry. Another folder named Deb ug appears. 6. 6. In the Solution Explorer, click the + to the left of the Debug entry. Three entries named TextHello. exe, TextHello. pdb, and TextHello. vshost. exe appear. The file TextHello. exe is the compiled program, and it is this file that runs when you click Start Without Debugging in the Debug menu. The other two files contain information that is used by Visual Studio 2005 if you run your program in Debug mode (when you click Start Debugging in the Debug menu).Command Line Compilation You can also compile your source files into an executable file manually by using the csc command-line C# compiler. You must first complete the following steps to set up your environment: 1. On the Windows Start menu, point to All Programs, point to Microsoft Visual Studio 2005, point to Visual Studio Tools, and click Visual Studio 2005 Command Prompt. A Command window opens, and the envionment variables PATH, LIB, and INCLUDE are configured to include the locations of the various . NET Frame work libraries and utilities. TIP You can also run the vcvarsall. at script, located in the C:Program FilesMicrosoft Visual Studio 8VC folder, if you want to configure the environment variables while running in an ordinary Command Prompt window. 2. In the Visual Studio 2005 Command Prompt window, type the following command to go to the My DocumentsMicrosoft PressVisual CSharp Step by StepChapter 1TextHelloTextHello project folder: 3. cd Documents and SettingsYourNameMy DocumentsMicrosoft PressVisual CSharp Step by StepChapter 1TextHelloTextHello 4. Type the following command: csc /out:TextHello. exe Program. cs 11 SREEKANTH C# STEP BY STEPThis command creates the executable file TextHello. exe from the C# source file. If you don't use the /out command-line option, the executable file takes its name from the source file and is called Program. exe. 5. Run the program by typing the following command: TextHello The program should run exactly as before, except that you will not see the à ¢â‚¬Å"Press any key to continue† prompt. Using Namespaces The example you have seen so far is a very small program. However, small programs can soon grow into bigger programs. As a program grows, it creates two problems. First, more code is harder to understand and maintain than less code.Second, more code usually means more names; more named data, more named methods, and more named classes. As the number of names increases so does the likelihood of the project build failing because two or more names clash (especially when the program uses third-party libraries). In the past, programmers tried to solve the name-clashing problem by prefixing names with some sort of qualifier (or set of qualifiers). This solution is not a good one because it's not scalable; names become longer and you spend less time writing software and more time typing (there is a difference) and reading and re-reading incomprehensibly long names.Namespaces help solve this problem by creating a named container for other identifiers, such as classes. Two classes with the same name will not be confused with each other if they live in different namespaces. You can create a class named Greeting inside the namespace named TextHello, like this: namespace TextHello { class Greeting { †¦ } } You can then refer to the Greeting class as TextHello. Greeting in your own programs. If someone else also creates a Greeting class in a different namespace and installs it on your computer, your programs will still work as expected because they are using the TextHello.Greeting class. If you want to refer the new Greeting class, you must specify that you want the class from the new namespace. It is good practice to define all your classes in namespaces, and the Visual Studio 2005 environment follows this recommendation by using the name of your project as the toplevel namespace. The . NET Framework Software Developer Kit (SDK) also adheres to this recommendation; every class in the . NET Framework lives inside a namespace. For 12 SREEKANTH C# STEP BY STEP example, the Console class lives inside the System namespace. This means that its fully qualified name is actually System.Console. Of course, if you had to write the fully qualified name of a class every time, it would be no better that just naming the class SystemConsole. Fortunately, you can solve this problem with a using directive. If you return to the TextHello program in Visual Studio 2005 and look at the file Program. cs in the Code and Text Editor window, you will notice the following statements: using System; using System. Collections. Generic; using System. Text; The using statement brings a namespace into scope, and you no longer have to explictly qualify objects with the namespace they belong to in the code that follows.The three namespaces shown contain classes that are used so often that Visual Studio 2005 automatically adds these using statements every time you create a new project. You can add further using direct ives to the top of a source file. The following exercise demonstrates the concept of namespaces further. Try longhand names 1. In the Code And Text Editor window, comment out the using directive at the top of Program. cs: //using System; 2. On the Build menu, click Build Solution. The build fails, and the Output pane displays the following error message twice (once for each use of the Console class):The name ‘Console' does not exist in the current context. 3. In the Output pane, double-click the error message. The identifier that caused the error is selected in the Program. cs source file. TIP The first error can affect the reliability of subsequent diagnostic messages. If your build has more than one diagnostic message, correct only the first one, ignore all the others, and then rebuild. This strategy works best if you keep your source files small and work iteratively, building frequently. 4. In the Code and Text Editor window, edit the Main method to use the fully qualified name System. Console.Main should look like this: static void Main(string[] args) { System. Console. WriteLine(â€Å"Hello World†); 13 SREEKANTH C# STEP BY STEP } NOTE When you type System. , notice how the names of all the items in the System namespace are displayed by IntelliSense. 5. On the Build menu, click Build Solution. The build succeeds this time. If it doesn't, make sure Main is exactly as it appears in the preceding code, and then try building again. 6. Run the application to make sure it still works by clicking Start Without Debugging on the Debug menu. In the Solution Explorer, click the + to the left of the References entry.This displays the assemblies referenced by the Solution Explorer. An assembly is a library containing code written by other developers (such as the . NET Framework). In some cases, the classes in a namespace are stored in an assembly that has the same name (such as System), although this does not have to be the case—some assemblies hold more than one namespace. Whenever you use a namespace, you also need to make sure that you have referenced the assembly that contains the classes for that namespace; otherwise your program will not build (or run). Creating a Windows Forms ApplicationSo far you have used Visual Studio 2005 to create and run a basic Console application. The Visual Studio 2005 programming environment also contains everything you'll need to create graphical Windows applications. You can design the form-based user interface of a Windows application interactively by using the Visual Designer. Visual Studio 2005 then generates the program statements to implement the user interface you've designed. From this explanation, it follows that Visual Studio 2005 allows you to maintain two views of the application: the Design View and the Code View.The Code and Text Editor window (showing the program statements) doubles as the Design View window (allowing you to lay out your user interface), and you can switch bet ween the two views whenever you want. In the following set of exercises, you'll learn how to create a Windows program in Visual Studio 2005. This program will display a simple form containing a text box where you can enter your name and a button that, when clicked, displays a personalized greeting in a message box.You will use the Visual Designer to create your user interface by placing controls on a form; inspect the code generated by Visual Studio 2005; use the Visual Designer to change the control properties; use the Visual Designer to resize the form; write the code to respond to a button click; and run your first Windows program. Create a Windows project in Visual Studio 2005 1. On the File menu, point to New, and then click Project. The New Project dialog box opens. 2. In the Project Types pane, click Visual C#. 14 SREEKANTH C# STEP BY STEP 3. In the Templates pane, click the Windows Application icon. . Ensure that the Location field refers to your My DocumentsVisual CSharp St ep by StepChapter 1 folder. 5. In the Name field, type WinFormHello. 6. In the Solutions field, ensure that Create new Solution is selected. This action creates a new solution for holding the Windows application. The alternative, Add to Solution, will add the project to the TextHello solution. 7. Click OK. Visual Studio 2005 closes your current application (prompting you to save it first of necessary) and creates and displays an empty Windows form in the Design View window.In the following exercise, you'll use the Visual Designer to add three controls to the Windows form and examine some of the C# code automatically generated by Visual Studio 2005 to implement these controls. Create the user interface 1. Click the Toolbox tab that appears to the left of the form in the Design View. The Toolbox appears, partially obscuring the form and displaying the various components and controls that you can place on a Windows form. 2. In the Toolbox, click the + sign by Common Controls to display a list of controls that are used by most Windows Forms applications. 15 SREEKANTHC# STEP BY STEP 3. Click Label, and then click the visible part of the form. A Label control is added to the form, and the Toolbox disappears from view. TIP If you want the Toolbox to remain visible but not hide any part of the form, click the Auto Hide button to the right in Toolbox title bar (it looks like a pin). The Toolbox appears permanently on the left side of the Visual Studio 2005 window, and the Design View shrinks to accommodate it. (You might lose a lot of space if you have a low-resolution screen. ) Clicking the Auto Hide button once more causes the Toolbox to disappear again. 4.The Label control on the form is probably not exactly where you want it. You can click and drag the controls you have added to a form to reposition them. Using this technique, move the Label control so that it is positioned towards the upper-left corner of the form. (The exact placement is not critical for this app lication. ) 5. On the View menu, click Properties Window. The Properties window appears on the right side of the screen. The Properties window allows you to set the properties for items in a project. It is context sensitive, in that it displays the properties for the currently selected item.If you click anywhere on the form displayed in the Design View, you will see that the Properties windows displays the properties for the form itself. If you click the Label control, the window displays the properties for the label instead. 6. Click the Label control on the form. In the Properties window, locate the Text property, change it from label1 to Enter your name, and then press Enter. On the form, the label's text changes to Enter Your Name. TIP By default, the properties are displayed in categories. If you prefer to display the properties in alphabetical order, click the Alphabetical button that appears above the properties list. . Display the Toolbox again. Click TextBox, and then click the form. A TextBox control is added to the form. Move the TextBox control so that it is directly underneath the Label control. TIP When you drag a control on a form, alignment handles appear automatically when the control becomes aligned vertically or horizontally with other controls. This give you a quick visual cue for making sure that controls are lined up neatly. 8. While the TextBox control is selected, locate the Text property in the Properties window, type here, and then press Enter. On the form, the word here appears in the text box. 9.In the Properties window, find the (Name) property. Visual Studio 2005 gives controls and forms default names, which, although they are a good starting point, are not always very meaningful. Change the name of the TextBox control to userName. 16 SREEKANTH C# STEP BY STEP NOTE We will talk more about naming conventions for controls and variables in Chapter 2, â€Å"Working with Variables, Operators, and Expressions. † 10. Display the T oolbox again, click Button, and then click the form. Drag the Button control to the right of the TextBox control on the form so that it is aligned horizontally with the text box. 11.Using the Properties window, change the Text property of the Button control to OK. Change its (Name) property to ok. The caption on the button changes. 12. Click the Form1 form in the Design View window. Notice that resize handles (small squares) appear on the lower edge, the right-hand edge, and the righthand bottom corner of the form. 13. Move the mouse pointer over the resize handle. The pointer changes to a diagonal double-headed arrow. 14. Hold down the left mouse button, and drag the pointer to resize the form. Stop dragging and release the mouse button when the spacing around the controls is roughly equal.TIP You can resize many controls on a form by selecting the control and dragging one of the resize handles that appears in the corners of the control. Note that a form has only one resize handle, whereas most controls have four (one on each corner). On a form, any resize handles other than the one in the lower-right corner would be superfluous. Also note that some controls, such as Label controls, are automatically sized based on their contents and cannot be resized by dragging them. The form should now look similar to the one in the following graphic. 1. In the Solution Explorer, right-click the file Form1. s, and then click View Code. The Form1. cs source file appears in the Code and Text Editor window. There are now two tabs named Form1. cs above the Code and Text Editor/Design View window. You can click the one suffixed with [Design] to return to Design View window at any time. Form1. cs contains some of the code automatically generated by Visual Studio 2005. You should note the following elements: 17 SREEKANTH C# STEP BY STEP o using directives Visual Studio 2005 has written a number of using directives at the top of the source file (more than for the previous example) . For example: using System. Windows. Forms;The additional namespaces contain the classes and controls used when building graphical applications—for example, the TextBox, Label, and Button classes. o The namespace Visual Studio 2005 has used the name of the project as the name of the toplevel namespace: namespace WinFormHello { †¦ } o A class Visual Studio 2005 has written a class called Form1 inside the WinForm Hello namespace: namespace WinFormHello { partial class Form1 †¦ { †¦ } } NOTE For the time being, ignore the partial keyword in this class. I will describe its purpose shortly. This class implements the form you created in the Design View. Classes are discussed in Chapter 7. ) There does not appear to be much else in this class—there is a little bit of code known as a constructor that calls a method called InitializeComponent, but nothing else. (A constructor is a special method with the same name as the class. It is executed when the form is cr eated and can contain code to initialize the form. Constructors are also discussed in Chapter 7. ) However, Visual Studio 2005 is performing a sleight of hand and is hiding a few things from you, as I will now demonstrate. In a Windows Forms application, Visual Studio 2005 actually generates a potentially large amount of code.This code performs operations such as 18 SREEKANTH C# STEP BY STEP creating and displaying the form when the application starts, and creating and positioning the various controls on the form. However, this code can change as you add controls to a form and change their properties. You are not expected to change this code (indeed, any changes you make are likely to be overwritten the next time you edit the form in the Design View), so Visual Studio 2005 hides it from you. To display the hidden code, return to the Solution Explorer, and click the Show All Files button.The bin and obj folders appear, much as they did with the Console application you developed in th e first part of this chapter. However, notice that Form1. cs now has a + sign next to it. If you click this + sign, you see a file called Form1. Designer. cs, and a file called Form1. resx. Double-click the file Form1. Designer. cs to display its contents in the Code and Text Editor window. You will see the remaining code for the Form1 class in this file. C# allows you to split the code for a class across multiple source files, as long as each part of the class is marked with the partial keyword.This file includes a region labelled Windows Form Designer generated code. Expanding this region by clicking the + sign reveals the code created and maintained by Visual Studio 2005 when you edit a form using the Design View window. The actual contents of this file include: o The InitializeComponent method This method is mentioned in the file Form1. cs. The statements inside this method set the properties of the controls you added to the form in the Design View. (Methods are discussed in Cha pter 3. ) Some of the statements in this method that correspond to the actions you performed using the Properties window are shown below: .. private void InitializeComponent() { this. label1 = new System. Windows. Forms. Label(); this. userName = new System. Windows. Forms. TextBox(); this. ok = new System. Windows. Forms. Button(); †¦ this. label1. Text = â€Å"Enter your name†; †¦ this. userName. Text = â€Å"here†; †¦ this. ok. Text = â€Å"OK†; †¦ } †¦ o Three fields Visual Studio 2005 has created three fields inside the Form1 class. These fields appear near the end of the file: private System. Windows. Forms. Label label1; 19 SREEKANTH C# STEP BY STEP private System. Windows. Forms. TextBox userName; private System. Windows. Forms. Button ok; .. These fields implement the three controls you added to the form in Design View. (Fields are discussed in Chapter 7. ) It is worth restating that although this file is interesting to look at, you should never edit its contents yourself. Visual Studio 2005 automatically updates this file when you make changes in the Design View. Any code that you need to write yourself should be placed in the Form1. cs file. At this point you might well be wondering where the Main method is and how the form gets displayed when the application runs; remember that Main defines the point at which the program starts.In the Solution Explorer, you should notice another source file called Program. cs. If you double-click this file the following code appears in the Code and Text Editor window: namespace WinFormHello { static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { Application. EnableVisualStyles(); Application. Run(new Form1()); } } } You can ignore most of this code. However, the key statement is: Application. Run(new Form1()); This statement creates the form and displays it, whereupon the form takes over. In the following exercise, you'll learn how to add code that runs when he OK button on the form is clicked. Write the code for the OK button 1. Click the Form1. cs[Design] tab above the Code and Text Editor window to display Form1 in the Design View. 2. Move the mouse pointer over the OK button on the form, and then double-click the button. The Form1. cs source file appears in the Code and Text Editor window. Visual Studio 2005 has added a method called ok_Click to the Form1 class. (It has also added a statement to the InitializeComponent method in the Form1. Designer. cs file to automatically call ok_Click when the OK button is 20 SREEKANTH C# STEP BY STEP clicked.It does this by using a delegate type; delegates are discussed in Chapter 16, â€Å"Delegates and Events. †) 3. Type the MessageBox statement shown below inside the ok_Click method. The complete method should look like this: 4. private void ok_Click(object sender, System. EventArgs e) 5. { 6. MessageBox. Show(â€Å"Hello † + userName . Text); } Make sure you have typed this code exactly as shown, including the trailing semicolon. You're now ready to run your first Windows program. Run the Windows program 1. On the Debug menu, click Start Without Debugging. Visual Studio 2005 saves your work, compiles your program, and runs it.The Windows form appears: 2. Enter your name, and then click OK. A message box appears welcoming you by name. 3. Click OK in the message box. The message box closes. 4. In the Form1 window, click the Close button (the X in the upper-right corner of the form). The Form1 window closes. †¢ If you want to continue to the next chapter Keep Visual Studio 2005 running, and turn to Chapter 2. †¢ If you want to exit Visual Studio 2005 now On the File menu, click Exit. If you see a Save dialog box, click Yes to save your work. Chapter 1 Quick Reference TO Do this KeyCombination 21 SREEKANTH C# STEP BY STEP Create a onsole application new On the File menu, point to New, and then click Projec t to open the New Project dialog box. For the project type, select Visual C#. For the template, select Console Application. Select a directory for the project files in the Location box. Choose a name for the project. Click OK. Create a Windows application new On the File menu, point to New, and then click Project to open the New Project dialog box. For the project type, select Visual C#. For the template, select Windows Application. Select a directory for the project files in the location box. Choose a name for the project.Click OK. Build application F6 the On the Build menu, click Build Solution. Ctrl+F5 Chapter 2 Working with Variables, Operators, and Expressions After completing this chapter, you will be able to: †¢ †¢ †¢ †¢ †¢ Understand statements, identifiers, and keywords. Use variables to store information. Work with primitive data types. Use arithmetic operators such as the plus sign (+) and the minus sign (–). Increment and decrement variabl es. In Chapter 1, â€Å"Welcome to C#,† you learned how to use the Microsoft Visual Studio 2005 programming environment to build and run a console program and a Windows Forms application.In this chapter, you'll be introduced to the elements of Microsoft Visual C# syntax and semantics, including statements, keywords, and identifiers. You'll study the primitive types that are built into the C# language and the characteristics of the values that each type holds. You'll also see how to declare and use local variables (variables that exist only within a function or other small section of code), learn about the arithmetic operators that C# provides, learn how to use operators to manipulate values, and learn how to control expressions containing two or more operators. Understanding StatementsA statement is a command that performs an action. Statements are found inside methods. You'll learn more about methods in Chapter 3, â€Å"Writing Methods and Applying Scope,† but for now , think of a method as a named sequence of statements inside a class. Main, which was introduced in the previous chapter, is an example of a method. Statements in C# must follow a well-defined set of rules. These rules are collectively known as syntax. (In contrast, the specification of what statements do is collectively known as semantics. ) One of the simplest and most important C# syntax rules states 22 SREEKANTH C# STEP BY STEP hat you must terminate all statements with a semicolon. For example, without its terminating semicolon, the following statement won't compile: Console. WriteLine(â€Å"Hello World†); TIP C# is a â€Å"free format† language, which means that white space, such as a space character or a new line, is not significant except as a separator. In other words, you are free to lay out your statements in any style you choose. A simple, consistent layout style makes a program easier to read and understand. The trick to programming well in any language is learning its syntax and semantics and then using the language in a natural and idiomatic way.This approach makes your programs readable and easy to modify. In the chapters throughout this book, you'll see examples of the most important C# statements. Using Identifiers Identifiers are the names you use to identify the elements in your programs. In C#, you must adhere to the following syntax rules when choosing identifiers: †¢ †¢ You can use only letters (uppercase and lowercase), digits, and underscore characters. An identifier must start with a letter (an underscore is considered a letter). For example, result, _score, footballTeam, and plan9 are all valid identifiers, whereas result%, footballTeam$, and 9plan are not.IMPORTANT C# is a case-sensitive language: footballTeam and FootballTeam are not the same identifier. Identifying Keywords The C# language reserves 77 identifiers for its own use, and you should not reuse these identifiers for your own purposes. These identi fiers are called keywords, and each has a particular meaning. Examples of keywords are class, namespace, and using. You'll learn the meaning of most of the keywords as you proceed through this book. The keywords are listed in the following table. abstract break char continue do event finally foreach in is as byte checked decimal double explicit fixed goto int ock base case class default else extern float if interface long 23 bool catch const delegate enum false for implicit internal namespace SREEKANTH new out protected return sizeof struct true ulong using while C# STEP BY STEP null override public sbyte stackalloc switch try unchecked virtual object params readonly sealed static this typeof unsafe void operator private ref short string throw uint ushort volatile TIP In the Visual Studio 2005 Code and Text Editor window, keywords are colored blue when you type them. TIP In the Visual Studio 2005 Code and Text Editor window, keywords are colored blue when you type them.Using Variabl es A variable is a storage location that holds a value. You can think of a variable as a box holding temporary information. You must give each variable in a program a unique name. You use a variable's name to refer to the value it holds. For example, if you want to store the value of the cost of an item in a store, you might create a variable simply called cost, and store the item's cost in this variable. Later on, if you refer to the cost variable, the value retrieved will be the item's cost that you put there earlier. Naming VariablesYou should adopt a naming convention for variables that help you avoid confusion concerning the variables you have defined. The following list contains some general recommendations: †¢ †¢ Don't use underscores. Don't create identifiers that differ only by case. For example, do not create one variable named myVariable and another named MyVariable for use at the same time, because it is too easy to get them confused. NOTE Using identifiers tha t differ only by case can limit the ability to reuse classes in applications developed using other languages that are not case sensitive, such as Visual Basic. †¢ †¢ †¢ Start the name with a lowercase letter.In a multiword identifier, start the second and each subsequent word with an uppercase letter. (This is called camelCase notation. ) Don't use Hungarian notation. (Microsoft Visual C++ developers reading this book are probably familiar with Hungarian notation. If you don't know what Hungarian notation is, don't worry about it! ) 24 SREEKANTH C# STEP BY STEP IMPORTANT You should treat the first two recommendations as compulsory because they relate to Common Language Specification (CLS) compliance. If you want to write programs that can interoperate with other languages, such as Microsoft Visual Basic .NET, you need to comply with these recommendations. For example, score, footballTeam, _score, and FootballTeam are all valid variable names, but only the first two ar e recommended. Declaring Variables Remember that variables are like boxes in memory that can hold a value. C# has many different types of values that it can store and process—integers, floating-point numbers, and strings of characters, to name three. When you declare a variable, you must specify what type of data it will hold. NOTE Microsoft Visual Basic programmers should note that C# does not allow implicit declarations.You must explicitly declare all variables before you can use them if you want your code to compile. You declare the type and name of a variable in a declaration statement. For example, the following statement declares that the variable named age holds int (integer) values. As always, the statement must be terminated with a semi-colon. int age; The variable type int is the name of one of the primitive C# types—integer which is a whole number. (You'll learn about several primitive data types later in this chapter. ) After you've declared your variable, you can assign it a value. The following statement assigns age the value 42.Again, you'll see that the semicolon is required. age = 42; The equal sign (=) is the assignment operator, which assigns the value on its right to the variable on its left. After this assignment, the age variable can be used in your code to refer to the value it holds. The next statement writes the value of the age variable, 42, to the console: Console. WriteLine(age); TIP If you leave the mouse pointer over a variable in the Visual Studio 2005 Code and Text Editor window, a ToolTip appears telling you the type of the variable. Working with Primitive Data Types C# has a number of built-in types called primitive data types.The following table lists the most commonly used primitive data types in C#, and the ranges of values that you can store in them. 25 SREEKANTH C# STEP BY STEP Data type int Description Size (bits) *Range Sample usage Whole numbers 32 int count; count = 42; long Whole numbers (bigger range) 64 float Floating-point numbers 32 231 through 2311 263 through 2631  ±3. 4 ? 1038 double Double accurate) numbers decimal Monetary values 128 string Sequence of characters 16 bits per Not applicable character char Single character 16 bool Boolean 8 precision (more 64 floating-point  ±1. 7 ? 10308 28 significant igures long wait; wait = 42L; float away; away = 0. 42F; double trouble; trouble = 0. 42; decimal coin; coin = 0. 42M; string vest; vest = â€Å"42†; char grill; grill = ‘4'; 0 through 216 1 bool teeth; true or false teeth false; = *The value of 216 is 32,768; the value of 231 is 2,147,483,648; and the value of 263 is 9,223,372,036,854,775,808. Unassigned Local Variables When you declare a variable, it contains a random value until you assign a value to it. This behavior was a rich source of bugs in C and C++ programs that created a variable and used it as a source of information before giving it a value.C# does not allow you to use an unassigned variable. Y ou must assign a value to a variable before you can use it, otherwise your program will not compile. This requirement is called the Definite Assignment Rule. For example, the following statements will generate a compile-time error because age is unassigned: int age; Console. WriteLine(age); // compile time error Displaying Primitive Data Type Values In the following exercise, you'll use a C# program named PrimitiveDataTypes to demonstrate how several primitive data types work. Display primitive data type values 26SREEKANTH C# STEP BY STEP 1. Start Visual Studio 2005. 2. On the File menu, point to Open, and then click Project/Solution. The Open Project dialog box appears. 3. Move to the Microsoft PressVisual CSharp Step by StepChapter 2PrimitiveDataTypes folder in your My Documents folder. Select the file PrimitiveDataTypes. sln and then click Open. The solution loads, and the PrimitiveDataTypes project. Solution Explorer displays the solution and NOTE Solution file names have the . sln suffix, such as PrimitiveDataTypes. sln. A solution can contain one or more projects.Project files have the . csproj suffix. If you open a project rather than a solution, Visual Studio 2005 will automatically create a new solution file for it. If you build the solution, Visual Studio 2005 automatically saves any updated or new files, and you will be prompted to provide a name and location for the new solution file. 4. On the Debug menu, click Start Without Debugging. The following application window appears: 5. In the Choose A Data type list, click the string type. The value 42 appears in the Sample value box. 6. Click the int type in the list.The value to do appears in the Sample value box, indicating that the statements to display an int value still need to be written. 27 SREEKANTH C# STEP BY STEP 7. Click each data type in the list. Confirm that the code for the double and bool types also needs to be completed. 8. Click Quit closing the window and stopping the program. Contro l returns to the Visual Studio 2005 programming environment. Use primitive data types in code 1. Right-click the Form1. cs file in the Solution Explorer and then click View Code. The Code and Text Editor window opens displaying the Form1. cs file. 2.In the Code and Text Editor window, find the show Float Value method listed here: private void showFloatValue() { float var; var = 0. 42F; value. Text = â€Å"0. 42F†; } TIP To locate an item in your project, point to Find And Replace on the Edit menu and click Quick Find. A dialog box opens asking what you want to search for. Type the name of the item you're looking for, and then click Find Next. By default, the search is not case-sensitive. If you want to perform a case-sensitive search, click the + button next to the Find Options label to display additional options, and check the Match Case check box.If you have time, you can experiment with the other options as well. You can also press Ctrl+F (press the Control key, and then p ress F) to display the Quick Find dialog box rather then usin g the Edit menu. Similarly, you can press Ctrl+H to display the Quick Find and Replace dialog box. The showFloatValue method runs when you click the float type in the list box. This method contains three statements: The first statement declares a variable named var of type float. The second statement assigns var the value 0. 42F. (The F is a type suffix specifying that 0. 2 should be treated as a float value. If you forget the F, the value 0. 42 will be treated as a double, and your program will not compile because you cannot assign a value of one type to a variable of a different type in this way. ) The third statement displays the value of this variable in the value TextBox on the form. This statement requires a little bit of your attention. The way in which you display an item in a TextBox is to set its Text property. You did this at 28 SREEKANTH C# STEP BY STEP design time in Chapter 1 using the Properties window. Thi s statement shows ou how to perform the same task programmatically, using the expression value. Text. The data that you put in the Text property must be a string (a sequence of characters), and not a number. If you try and assign a number to the Text property your program will not compile. For this reason, the statement simply displays the text â€Å"0. 42F† in the TextBox (anything in double-quotes is text, otherwise known as a string). In a real-world application, you would add statements that convert the value of the variable var into a string and then put this into the Text property, but you need to know a little bit more about C# and the .NET Framework before we can do that (we will cover data type conversions in Chapter 11, â€Å"Understanding Parameter Arrays,† and Chapter 19, â€Å"Operator Overloading†). 3. In the Code and Text Editor window, locate the showIntValue method listed here: private void showIntValue() { value. Text = â€Å"to do†; } T he showIntValue method is called when you click the int type in the list box. TIP Another way to find a method in the Code and Text Editor window is to click the Members list that appears above the window, to the right. This window displays a list of all the methods (and other items).You can click the name of a member, and you will be taken directly to it in the Code and Text Editor window. 4. Type the following two statements at the start of the showIntValue method, after the open curly brace: int var; var = 42; The showIntValue method should now look like this: private void showIntValue() { int var; var = 42; value. Text = â€Å"to do†; } 5. On the Build menu, click Build Solution. a. The build will display some warnings, but no errors. You can ignore the warnings for now. 6. In the original statement, change the string â€Å"to do† to â€Å"42†. b. The method should now look exactly like this: 9 SREEKANTH C# STEP BY STEP c. private void showIntValue() d. { i. int var; ii. var = 42; iii. value. Text = â€Å"42†; e. } 7. On the Debug menu, click Start Without Debugging. f. The form appears again. g. TIP If you have edited the source code since the last build, the Start Without Debugging command automatically rebuilds the program before starting the application. 8. Select the int type in the list box. Confirm that the value 42 is displayed in the Sample value text box. 9. Click Quit to close the window and stop the program. 10. In the Code and Text Editor window, find the showDoubleValue method. 1. Edit the showDoubleValue method exactly as follows: private void showDoubleValue() { double var; var = 0. 42; value. Text = â€Å"0. 42†; } 12. In the Code and Text Editor window, locate the showBoolValue method. 13. Edit the showBoolValue method exactly as follows: private void showBoolValue() { bool var; var = false; value. Text = â€Å"false†; } 14. On the Debug menu, click Start Without Debugging. The form appears. 15. I n the list, select the int, double, and bool types. In each case, verify that the correct value is displayed in the Sample value text box. 16. Click Quit to stop the program.Using Arithmetic Operators C# supports the regular arithmetic operations you learned in your childhood: the plus sign (+) for addition, the minus sign (–) for subtraction, the asterisk (*) for multiplication, and the forward slash (/) for division. These symbols (+, –, *, and /) are called operators as they â€Å"operate† on values to create new values. In the following 30 SREEKANTH C# STEP BY STEP example, the variable moneyPaidToConsultant ends up holding the product of 750 (the daily rate) and 20 (the number of days the consultant was employed): long moneyPaidToConsultant; oneyPaidToConsultant = 750 * 20; NOTE The values that an operator operates on are called operands. In the expression 750 * 20, the * is the operator, and 750 and 20 are the operands. Determining an Operator's Values Not all operators are applicable to all data types, so whether you can use an operator on a value depends on the value's type. For example, you can use all the arithmetic operators on values of type char, int, long, float, double, or decimal. However, with one exception, you can't use the arithmetic operators on values of type string or bool.So the following statement is not allowed because the string type does not support the minus operator (subtracting one string from another would be meaningless): // compile time error Console. WriteLine(â€Å"Gillingham† – â€Å"Manchester City†); The exception is that the + operator can be used to concatenate string values. The following statement writes 431 (not 44) to the console: Console. WriteLine(â€Å"43† + â€Å"1†); TIP You can use the method Int32. Parse to convert a string value to an integer if you need to perform arithmetic computations on values held as strings.You should also be aware that the type of the result of an arithmetic operation depends on the type of the operands used. For example, the value of the expression 5. 0 / 2. 0 is 2. 5; the type of both operands is double (in C#, literal numbers with decimal points are always double, not float, in order to maintain as much accuracy as possible), and so the type of the result is also double. However, the value of the expression 5 / 2 is 2. In this case, the type of both operands is int, and so the type of the result is also int. C# always rounds values down in circumstances like this.The situation gets a little more complicated if you mix the types of the operands. For example, the expression 5 / 2. 0 consists of an int and a double. The C# compiler detects the mismatch and generates code that converts the int into a double before performing the operation. The result of the operation is therefore a double (2. 5). However, although this works, it is considered poor practice to mix types in this way. C# also supports one less -familiar arithmetic operator: the remainder, or modulus, operator, which is represented by the percent symbol (%). The result of x % y is the remainder after dividing x by y.For example, 9 % 2 is 1 since 9 divided by 2 is 8, remainder 1. NOTE In C and C++, you can't use the % operator on floating-point values, but you can use it in C#. Examining Arithmetic Operators 31 SREEKANTH C# STEP BY STEP The following exercise demonstrates how to use the arithmetic operators on int values using a previously written C# program named MathsOperators. Work with arithmetic operators 1. On the File menu, point to Open, and then click Project/Solution. Open the MathsOperators project, located in the Microsoft PressVisual CSharp Step by StepChapter 2MathsOperators folder in your My Documents folder. . On the Debug menu, click Start Without Debugging. A form appears on the screen. 3. Type 54 in the left operand text box. 4. Type 13 in the right operand text box. You can now apply any of the operators to the values in the text boxes. 5. Click the – Subtraction option, and then click Calculate. The text in the Expression box changes to 54 – 13, and 41 appears in the Result box, as shown in the following graphic: 6. Click the / Division option, and then click Calculate. The text in the Expression text box changes to 54 / 13, and the number 4 appears in the Result box. In real life, 54 / 13 is 4. 53846 recurring, but this is not real life; this is C#! In C#, when you divide one integer by another integer, the answer you get back is an integer, as explained earlier. 32 SREEKANTH C# STEP BY STEP 7. Select the % Remainder option, and then click Calculate. The text in the Expression text box changes to 54 % 13, and the number 2 appears in the Result box. This is because the remainder after dividing 54 by 13 is 2 (54 – ((54 / 13) * 13) is 2 if you do the arithmetic rounding down to an integer at each stage—my old maths master at school would be horrified to b e told that (54 / 13) * 13 does not equal 54! . 8. Practice with other combinations of numbers and operators. When you're finished, click Quit. The program stops, and you return to the Visual Studio 2005 programming environment. Now take a look at the MathsOperators program code. Examine the MathsOperators program code 1. Display the Form1 form in the Design View window (click the Form1. cs[Design] tab if necessary). TIP You can quickly switch between the Design View window and the Code and Text Editor displaying the code for a form by pressing the F7 key. 2. In the View menu, point to Other Windows and then click Document Outline.The Document Outline window appears showing the names and types of the controls on the form. If you click each of the controls on the form, the name of the control is highlighted in the Document Outline window. 33 SREEKANTH C# STEP BY STEP IMPORTANT Be careful not to accidentally delete or change the names of any controls on the form while viewing them in the Document Outline window. The application will no longer work if you do. 3. Click the the two TextBox controls that the user types numbers into on the form. In the Document Outline window, verify that they are named lhsOperand and rhsOperand.When the form runs, the Text property of each of these controls holds (as strings) the numeric values you enter. 4. Towards the bottom of the form, verify that the TextBox control used to display the expression being evaluated is named expression, and that the TextBox control used to display the result of the calculation is named result. At runtime, setting the Text property of a TextBox control to a string value causes that value to be displayed. 5. Close the Document Outline window. 6. Press F7 to display the Form1. cs source file in the Code and Text Editor window. 7.In the Code and Text Editor window, locate the subtractValues method: private void subtractValues() { int lhs = int. Parse(lhsOperand. Text); int rhs = int. Parse(rhsOperand. Text); int outcome; outcome = lhs – rhs; expression. Text = lhsOperand. Text + † – † + rhsOperand. Text; result. Text = outcome. ToString(); } The first statement in this method declares an int variable called lhs and initializes it to the result of the explicit conversion of the lhsOperand. Text property to an int. (The Text property of a TextBox is a string, and must be converted to an integer before you can store it in an int. This is what the int.Parse method does) The second statement declares an int variable called rhs and initializes it to the result of the explicit conversion of the rhsOperand. Text property to an int. The third statement declares an int variable called outcome. The fourth statement subtracts the value of the rhs variable from the value of the lhs variable, and the result is assigned to outcome. The fifth statement concatenates three strings (using the + operator) and assigns the result to the expression. Text property. The sixth st atement converts the int value of outcome to a string by using the ToString method, and assigns the string to the result.Text property. 34 SREEKANTH C# STEP BY STEP The Text Property and the ToString Method I mentioned earlier that TextBox controls displayed on a form have a Text property that allows you to access the displayed contents. For example, the expression result. Text refers to the contents of the result text box on the form. Text boxes also have many other properties, such as the location and size of the text box on the form. You will learn more about properties in Chapter 14, â€Å"Implementing Properties to Access Attributes. † Every class has a ToString method.The purpose of ToString is to convert an object into its string representation. In the previous example, the ToString method of the integer object, outcome, is used to convert the integer value of outcome into the equivalent string value. This conversion is necessary because the value is displayed in the T ext property of the result field—the Text property can only contain strings. When you Controlling Precedence Precedence governs the order in which an expression's operators are evaluated. Consider the following expression, which uses the + and * operators: 2+3*4This expression is potentially ambiguous; does 3 bind to the + operator on its le