Saturday, August 31, 2019

In Praise of the F Word Essay

According to, In Praise of the F Word, by Mary Sherry tens of thousands will graduate high school with meaningless diplomas. Those with meaningless diplomas are the ones who’s been passing along even though they don’t truly understand the materials taught to them. Sherry argues that our educational system is to blame for cheating those students out of a proper education; however, an easy remedy is for teachers to use the trump card of failure. Sherry claims that before students can concentrate, the teacher needs to get their attention first. I agree with Sherry that it’s unfair to those student cheated by our educational system but her trump card of failure doesn’t solve the problem. Instead, it feels more like a threat to the student than a motivation. Her method is incompatible for all students because all student are different and it takes a teacher’s involvement to understand, not a teacher’s threat. Sherry used blame the student’s lack of concentration to the class but instead she now blames the failure to get the student’s attention. No matter what distraction are at hand for the student, the teacher needs to get the student’s attention first. Sherry states that there are many ways to do this depending on the teaching style but one sure way is the trump card of failure. She points out an example of her son who was lacking attention in class and then received the trump card of failure. It resulted in her son finishing the semester with an A. I feel like Sherry’s argument is incomplete. She doesn’t acknowledge that all students are different, and that some come from a more rugged background than others. Different students need to be treated differently, so one method will not work on all students. For example, there are students that plainly do not understand the material taught to them so instead they make excuses. Teachers will see the student’s excuse as a lack of attention and fail that student but instead all that student needs is a bit of guidance. Sherry’s method will not work for students that are afraid to ask for help. Furthermore, the threat will not help the student but give the doubt in their abilities. A tool for motivation turns into a tool for discouragement. Instead of facing the challenge head on with the help of the teacher, the students are left alone with the threat ringing in their ears. Students that can’t take the pressure eventually drop out, students that can just keep to themselves and barely passing by. I admit that Sherry brings up a good point; In order for a student to succeed in school, they first need to be attentive. Teachers need to find way to get the student’s attention but Sherry’s one all be all way will not help the teacher nor the students. Sherry implies that students perceive education as less important compared to their adult counterparts. no matter what environments they come from† students will not put school as a top priority on their list. Her argument was that for adults, even with complications in life i. e. unemployment, drug, abusive relationship, still make an effort towards higher education. Sherry states that compared to the adults, students rather be carefree while on cruise control through school. I wholeheartedly agree with Sherry that students would rather have a fun stress free school life instead of a prison, but I have a problem with her implications of a â€Å"terrible environments. Sherry hints that environments does not affect a student’s involvement in school but i think she’s severely inaccurate. Where a student come from, i. e. his life’s background, greatly affect what kind of person that student will turn out to be. For example, a student can come from a background that greatly values education; at the same time, another student can come from a background that could care significantly less about education. Not everyone is molded the same, there are students that are eager to learn, while there are also students that would refuse the help of a teacher. Sherry claims that the threat of flunking can be used as a positive teaching tool; a show of confidence by the teacher and parent to the student. However, She also completely fails to specify why students fail in the first place. There are students who doesn’t value education because of their unsupportive parents. Sherry’s son might be an inaccurate example because not all students have an english teacher as a parent. My friend Hao is a perfect example. Hao and I were best friends in middle school and freshmen year high school. His parents are always working so he’s exceedingly relaxed towards school. Everytime I hang out with him he’s either playing video games or watching movies. Eventually the lack of care for school caught up with him and he was held back for another freshman year. We try to keep in touch but our friendship grew apart because we aren’t in the same grade anymore. Sometime we would go weeks without seeing each other and the intervals just got longer each time. The times I do see him, I can tell he’s miserable. He dropped out without telling me and to this day I still wonder if I encouraged him alittle more about school, maybe he would’ve graduated with me. To my friend, Hao, school was just not important to him and even a threat of failure will not convince him otherwise. In his world, games were more important and school is just a nuisance. He was never taught the true value of an education by his parents. I know he’s not alone and there are many students like him. Although their world might not be gaming, it could be something else like friends, drugs, intercourse, etc. Sherry’s trump card of failure would of failed them, instead they need support not threats. While Sherry may claim that the success of the trump card of failure in the past. I would like to point out that things are forgotten for a reason. In this care the trump card of failure is deemed ineffective against the youths of today. Her method of teachers using threats against students for their attention will not help but damage. Everyone is unique and teachers need to deploy unique tactics to encourage students. A word of threat can only get so far, but the consequence greatly outweighs the worth.

Friday, August 30, 2019

Unit 14 – Describe the Role of Two Other Professionals

E8 describe the role of two other professionals who support the needs of children with special needs and their families The other two professionals who support the needs of children with special needs and their families are Speech therapist: Speech therapists are other professionals who work closely with parents, carers and other professionals such as teachers, nurses, occupational therapists and doctor’s in order to improve the speech and language problem of the children. Evaluation by a certified speech-language pathologist can help determine if your child is having difficulties. Speech-language therapy is the treatment for most kids with speech and/or language disorders. † (Speech Language Therapy, 2012) The major roles of a speech therapist are to identify children’s developmental speech and communication problems. They access in treating problems that are caused due to cleft palate or disorders and implementing and revising treatment programmes.They also supp ort children by working one to one with them, calculating the children’s progress and most importantly maintaining confidentiality. Lastly, speech therapists support the families of children with special needs by making them aware of the problem, giving them information, referring them to specialists and informing them regarding their children’s progress. Physiotherapist: Physiotherapists are other professionals who help treat people of all ages with physical problems caused by illness accident or ageing, for example: low muscle tone, posture etc.Physiotherapists support children with special needs by evaluating the problems of the child’s problem, improving their breathing to avoid any malfunction, helps slow down the bad effects that are caused by disease and teach the children various exercises for their bodies. â€Å"Physiotherapists are probably the best known of the therapists who work with children with special needs. They use exercises to help their pat ients gain and keep the best possible use of their bodies. (A Special Child in The Family, 2012) Physiotherapists also support the families by providing information about their children and also teaching them various exercises that they could do at home with their children. They also support by giving them information about how to handle their children, for example: how to lift things without straining your back. http://www. specialchild. co. uk/therapists. htm http://kidshealth. org/parent/system/ill/speech_therapy. html

Thursday, August 29, 2019

Advantages And Disadvantages Of Kind Of Company †Free Samples

There are two types of business forms that can be setup; each form has their own share of advantages and disadvantages. While going forward with this decision of which type of company to choose, the company   client should focus on few thing, which kind of business that it wants to operate, which kind of company will be suitable for that kind of business, the possible advantages and disadvantages of kind of company ,and whether it has the requester funds that might be needed to start such a company. After the client has figured out the required information, it can carry forward with the formation of the company. Below we will discuss the advantages and disadvantages of each form of company and what will be suitable for the client in the end. A company is the kind of legal entity that is formed as per the regulations under the Corporations Act 2001. A company has its own legal existence and also the identity of its shareholders must be different form its shareholders and directors.à ‚   A company has its own set of rules that must be followed and also if the company does not have its constitution, it goes by the "replaceable rules" of the Corporations Act 2001. A proprietary company is privately held company that can either be limited or unlimited. Such types of companies are present in Australia and South Africa.   A proprietary company is the type of company that is defined under section 45A(1) of the Corporations Act 2001. Such type of companies is required to have not more than 50 members.   These companies are also not allowed to raise funds from the public that is the main issue that is there with private companies, that they cannot raise money from the public.   It cannot engage itself into any activities that can force them to raise money from the public by issuing a prospectus. A prospectus is a document that is issue by the company stating the terms of offer for shares, to raise money from the public, for their business operations.   There are two types of proprietary companies, namely large proprietary company and small proprietary company.   Both are differentiated on the basis of revenue earned and the level of more o perating activities, and the total amount of fund raised by the company.   A proprietary company is classified as small company if it meets the following requirement-   In case of large proprietary companies, they are required to get their books of account audited and also to appoint an auditor for the same. The small companies are required to get their account audited and prepare their financial statements in the same manner, if they are required to do so as per the requirement of the Australian Securities and Investments Commission (ASIC), or in case of a foreign company , shareholders that are holding more than 5 present of the voting power requires to do so. In case of a proprietary company, the liability of the shareholder is restricted to the number of shares raised held by them, which means that they are liable just for that much amount of shares and not for anything beyond that. This is the situation in case of a limited company. When it comes to an unlimited proprietary company, in which there is a share capital, but the only difference is that the liability of the shareholders is not limited. (https://www.afigec.com/, 2017) Another form of company is the public company. This company have no limit on the number of shareholders and can raise money from the public, by issuing prospectus to the public for the issue of shares. The share capital can be divided into shares of particular denomination and then it can be given to the public, to raise money from the same. Most of the existent public companies were previously private companies that have chosen to go public. All the multinational companies are public companies. The main advantages of this kind of companies are- they have an access to the equity fund market ,a s well as the debt market to raise the requisite amount of fund, for their companies.   They can also additional shares in the public to raise money after the initial offering. That is the kind of many advantages that a public companies has , the area of operation is also large and the total amount of money involved in such kind of companies is also large, so if the client is having so much f unds, they can go ahead with such kind of companies.   The main disadvantages with this kind of business are that there is a lot of control issues involved with the same. And also there are a lot of regulations that a company has to abide by the various government regulations. A public company must have to meet the various government regulations requirements  Ã‚   and the various reporting requirements that the company must abide by. There is also lack of control, because there are so many shareholders, so it is not possible to establish authority in such type of company. (Asic.gov.au, 2017) There are various regulations and other government disclosures that the company needs to comply with, that are the main requirements that the company must need to follow that. The client needs to take decision based on the kind of business operations that the kind of company that they need.   Both of the same have their own share of their advantages and disadvantages and on the basis of the same, the client needs to take the decision the kind of company it wants to establish. (www.nfplawyers.com.au, 2017) Asic.gov.au. (2017). How to start a company | ASIC - Australian Securities and Investments Commission. [online] Available at: https://asic.gov.au/for-business/starting-a-company/how-to-start-a-company/ [Accessed 27 May 2017]. Incorporator.com.au. (2017). Incorporator.com.au - Proprietary company compared with Public Company (Australia). [online] Available at: https://www.incorporator.com.au/l3/21_01_Proprietary_company_compared_with_Public_Company_Australia.asp [Accessed 27 May 2017]. www.nfplawyers.com.au. (2017). Checklist-to-establish-a-Public-Company-Limited-by-Guarantee. [online] Available at: https://www.nfplawyers.com.au/wp-content/uploads/2012/07/Checklist-to-establish-a-Public-Company-Limited-by-Guarantee.pdf [Accessed 27 May 2017]. Registeracompany.com.au. (2017). Company basics - Register a Company Australia. [online] Available at: https://www.registeracompany.com.au/faq/company-basics.cfm [Accessed 27 May 2017]. https://www.afigec.com/. (2017). company-formation-in-Australia. [online] Available at: https://www.afigec.com/data/en/pdf/142/company-formation-in-australia.pdf [Accessed 27 May 2017].

Wednesday, August 28, 2019

HRM Issues in McDonalds Essay Example | Topics and Well Written Essays - 1000 words

HRM Issues in McDonalds - Essay Example HRM Issues in McDonalds McDonalds Corporation is the largest network of fast food restaurants headquartered in the United States. The company was founded in 1940 by brothers Richard and Maurice McDonald. Currently the organisation has it active presence in 119 countries across the world with franchisees, affiliates, or the corporation’s own restaurants. The firm’s main sources of revenues include rent, royalties, and fees from franchisees, and sales revenues from company’s directly-operated restaurants. As stated in its website, the corporation’s product lines include hamburgers, chicken, cheeseburgers, french fries, soft drinks, and desserts (McDonalds.com). The strategic position of McDonald with regard to the recruitment and selection, training and development, staff turnover, and reward and benefit has been a topic for academic discussion for decades. High staff turnover has been criticized as the indication of low staff morale in McDonald, however, a BBC report (28 January 2008), says that McDonalds specifically focuses on the issue of staff turnover as a strategic gap to be bridged (BBC News, 2008). The challenges involve the following; first, recruitment and training of new employees is an expensive task. Hence employee turnover contributes to the firm’s operating expenses. Secondly, due to this issue the organisation has been losing experienced and skilled employees and thereby it causes productivity declines. Most of the Multinational Corporations confront the issues of rising labour costs, staff turnover, and staff shortage. As Smith (2006, p. 175) points out, in order for keeping the labour costs low, McDonalds and other fast food chains have lobbied government and legislative bodies against worker benefits many times. And the result was high turnover which in McDonalds alone reached 300 percent per year in some of i ts outlets (Ibid). A recent report in Wall Street Journal dated April 10 says that McDonalds is striving to address the mounting complaints against its rude and unprofessional employees (Jargon 2013). The problems with low employee morale also have to be counted as the indication of high staff turnover that can be attributed to some HR failures. Evidences suggest that employee turnover has been pertinent in the industry for several years. For instance, a Chicago Tribune report (May 15, 2007) by Schmeltzer also describes what McDonalds did for retaining its employees in Chicago outlets. It launched a career campaign highlighting the employment in McDonalds as McCareer instead of McJob. According to the Fast Food Nation statistics (as cited by Lubin & Badkar Dec 7, 2012), McDonalds hires more than 1 million workers in the US every year with 700,000 domestic workforce and with 150% turnover rate. Msn Money report by Berr (Apr 11, 2013) also reveals that McDonalds has been recently faci ng numerous issues associated with staff shortage. Another report of the sort by Chittum (April 12, 2013) appeared on Columbia

Tuesday, August 27, 2019

Incidents that have had major economic impacts Coursework

Incidents that have had major economic impacts - Coursework Example The attack had dire consequences on both aggregate demand (AD) and aggregate supply (AS) of goods and services. Closure of the stock market and travel advisories both within and outside the country cut business activities leading to a drop in the GDP. AD curve shifted to the right giving rise to prices that ultimately leads to expected future inflation. At this point, aggregate supply shifts to the left in the short run until GDP surpasses its long-term average. The attack prompted the country to launch one of its greatest expenditure programs on September 20, 2001 after President Bush declared war on terror. Operations in Afghanistan would cost the treasury massive amounts in expenditure. According to Carter and Cox, 2011, the government spent an estimated $3.3 trillion in response to the threat. America invested extensively on the Department of Defense (DOD) and operations of the newly created homeland security department. The federal government channeled funds to the defense spending both in Afghanistan and homeland security surveillance including intelligence details (Makinen, 2011). High expenditure by the DOD and homeland security initiated a debt crisis in the country. The amount of funds usable in driving stimulus programs in the country reduced with the increase of expenditure on security. High debt levels experienced in America because of increased expenditure after 9/11 were among the forces that prompted the 2008 crisis. Limited Medicare benefits caused a downgrading of the country’s debt. Fiscal policy affected interest rates, government expenditure strategy and tax rates. The US government, therefore, used borrowing from the federal government to help restore the adversely affected airline sector. America used automatic in-built stabilizer to restore its economy after the incidence. Corporations received tax relief that enabled them to acquire funds to help rebuild the country’s

Monday, August 26, 2019

Multicultural Education Essay Example | Topics and Well Written Essays - 1750 words - 1

Multicultural Education - Essay Example The school principal is Lisa Nelson deputized by Brooke Newell. The school has 57 staffs and 694 students. The school neighborhood is surrounded by resources that are of the essence in the promotion of multicultural education. Some of the resources that promote multicultural education in the Pearland community are local parks, restaurants, school community centers and neighborhood libraries. Pearland community has among the best parks in Texas State. The parks provide residents with a place to walk and enjoy. Centennial Park is located at 3219 McLean road Pearland, TX77581. It is one of the resources that tend to boost multicultural education. People from different social standings, culture and race meet here. They talk to each other and learn a lot from the others. Students too from various schools meet here during holidays and is, therefore, a wonderful place to get to know about other people in the neighborhood. Shadow creek ranch nature trail located at 1801 kindly Drive Pearland, TX 77584 is another resource that is so vital among the people in the Pearland community as it tend to attract many families especially during weekends. It provides an opportunity for them to share their experiences and achievements. People get to know each other and learn from one another, hence promoting multicultural education. Families should be able to visit such a place and get to explore their world ( Pearland Focus Magazine).

Company Assessment Research Paper Example | Topics and Well Written Essays - 2500 words - 1

Company Assessment - Research Paper Example China, which is Nike's largest single sourcing country, employs more than 210,000 people and has over 180 manufacturers. The supply chain management was affected by the issues of unpaid wages, presentation of falsified documents, and underage employees. (Global Supply Chain Council, 2008) Nike tried to make sure that its code of conduct was followed by the Chinese manufacturers, in addition to Chinese laws. The official report released by Nike stated that labor-related issues such as hiring practices, inadequate grievance system for workers, falsified payroll records, and underage workers, were of great concern. (Global Supply Chain Council, 2008) When an identity check was carried out on 150,000 of Nike's workers in China, it was found that 167 employees were underage at the tie of recruitment and two of them were still underage. Paid wages were also not as per the raises mandated by the government. Moreover, the report stated that some of Nike's Chinese contract factories were playing tricks so they don't have to alter the wage levels. (Global Supply Chain Council, 2008) Nike is building a logistics centre in eastern China, which is to complete by the end of next year. This facility, like that in Jiangsu province, will be using high-tech conveyers and sorters for tracking and mobility of its products.Radio frequency technology will also be used to enhance efficiency and accuracy. Nike China is working hard to develop a state-of-the-art logistics facility and exhibit its expertise in supply chain management. It's also working to resolve labor issues, which leave a bad impact on company's reputation. Employing underage workers is the violation of international human rights and working laws. Moreover, many countries, such as USA are very particular about not doing trade of items that involve underage labor. This does not only harm company's prestige but also its revenues. (Gabe Perna, 2009 and Portland Business Journal, 2009) Recently, a Greenpeace report named "Slaughtering the Amazon" had identified different shoe companies that were held responsible for deforestation in the Amazon. Nike was one of them. Last month Nike announced its new leather policy of no sourcing from Amazon rainforest. It conducted extensive discussion with the suppliers and claimed that it is going to make sure that leather used in Nike products is not coming from Amazon rainforests. However, as there is no standard tracing systems a yet, the company cannot give a 100% guarantee. (Global Supply Chain Council, 2009) Nike has called its suppliers to develop a tracking system that would make sure that the leather used does not come from cattle raised in Amazon Biome. Suppliers are to come up with a transparent and traceable tracking system by July 1 next year. Incase suppliers fail to do so; Nike will extend the area outside of Amazon as its leather source. Suppliers are also required to become members of Leather Working Group by the end of this year. Nike is working with this group to create an industry standard traceability system. (Global Supply Chain Council, 2009) References Nikebiz, Company Overview, 2009, ,

Sunday, August 25, 2019

Housing and homelessness Coursework Example | Topics and Well Written Essays - 4000 words

Housing and homelessness - Coursework Example In the present day context, homelessness along with housing need is considered to be a social issue, which hampers the economic growth and stability of a country at large. The members of social care services provide affordable housing to people to secure their life and reduce health issues that lead towards the development of a healthy society (Department of Housing and Public Works, 2014). In relation to the above context, the essay intends to determine whether addressing and alleviating housing need is a part of social care policy and practice with focus on evaluating evidences and providing valid justifications. With the advent of globalisation, the lifestyle of people and economies of scale have changed by a considerable extent. The issue of homelessness and housing need is identified to s increase considerably that have been affecting the lives of the individuals and rising social issues. It will be vital to mention that in this present day context, the issue concerning homelessness must have ‘no place in the society’. Justifiably, homelessness is duly considered to be one of the social issues, which affects human civilisation and economy at large. It is observed in several countries that people live in the streets as they have no place for taking shelter. With reference to the census of 2011 in Queensland, UK, it was witnessed that about 19858 people lived in the streets as they were homeless (Department of Housing and Public Works, 2014). The issue concerning homelessness resembles the fact that the people are unable to afford a house for themselves, which is mainly because of increasing unemployment. This in turn elevates the poverty level, which is recognised as a social issue and thus utmost attention is provided to eradicate the same. Therefore, in this context, it can be inferred that assisting people in terms of offering them with street based help or

Saturday, August 24, 2019

Term paper for 1500 words Example | Topics and Well Written Essays - 1500 words

For 1500 words - Term Paper Example The National Broadband Network (NBN) represents the future generation of infrastructure and mode of communication. In the 21st century, the world is advancing at a rapid pace and Australia is also taking part in these technological advancements. According to the Prime Minister of the country, a slow internet connection is one major hindrance in the path of growth. Economic activities are highly dependent on the flow of information. Different communication channels lead to the identification of investment opportunities. Hence, a speedy connection of broadband would boost up economic activities and enlighten the future of the economy. Therefore, the Government of Australia has taken the initiative to connect every individual via the broadband network. It is imperative to ensure that all citizens gain access to the NBN. The project has been started in the year 2010 and is due for completion by the year 2015 (NBNCO, 2013). ‘Fiber to the node’ network A fiber optic network is a network of multiple nodes. By implementing fiber optic, the system designer can create a passive medium of network consisting of several nodes. The presence of multiple nodes makes the distribution network system safe and reliable (Cobo, 2012). By using a single mode of operation, the speed of information transfer might be increased up to 1 gigabit per second. The error rate of high speed optical networks has been found to be quite less and acceptable (Cobo, 2012). When a good broadband infrastructure is combined with highly advanced information technologies, it becomes capable of affecting productivity of firms operating in the economy and boosting economic growth. Common households across the country would be able to connect with one another, which fosters national integration. Highly effective broadband infrastructure creates additional ways in which the economic growth of the country might be augmented. Advanced information technologies can change as well as improve the metho d of processing information that results in higher involvement of IT firms, which implies the creation of new employment opportunities. Fiber to the node network allows the companies to implement processes, such as e-procurement, customer services, e-billing as well as make recruitment online using the internet network connection. The IT division of the firms, thus, makes a noteworthy contribution in the (long-term as well as short-term) performance of the firm, through its interactions with the other functionaries of the firm (Zyskind and Srivastava, 2011). Characteristics of NBN Broadband internet connection enables exchange of information and data across the different agents in the economy located in multiple locations. Through implementation of a high speed internet broadband network, companies would be able to manage their functions and operations in a decentralized manner of information processing. In the Australian economic system economic agents use available information as input for generating new output. The NBN in Australia would facilitate this process of information management. In this process, the nationwide network of internet would allow the firms as well as individual users to weigh and evaluate information before taking actions on the basis of that information. It leads to multiplication of data that benefits all actors in the economy. The NBN is a cost

Friday, August 23, 2019

Business Intelligence Table of contacts Essay Example | Topics and Well Written Essays - 500 words

Business Intelligence Table of contacts - Essay Example Technology helps develop the basis of business intelligence as its availability is the actual platform upon which business intelligence is based. What this suggests is the fact that the technological regimes would manifest a solid meaning and implication for the different processes to be completed within the business intelligence ranks. Whether or not technology comes out here as a significant tool is for the understanding of the people who are behind such an exercise. This is important because technological changes and amendments need to be incorporated within the business intelligence realms and without the incorporation of the same, there would not be any success for the sake of the business intelligence in the long run (Fuld, 1991). A number of renowned technological giants like IBM, HP and Microsoft are devising business intelligence software and tools to tackle the business related issues within a globally changing organizational climate. The role of the people and the processe s within business intelligence is such that they form the vital link through which work gets done. The business intelligence would not be termed as such if the people and their processes are not apt and in line with the changing requirements of the time. They have to incorporate the role of the technology and therefore take care of the impending issues.

Thursday, August 22, 2019

Disadvantages of Censorship Essay Example for Free

Disadvantages of Censorship Essay The censorship debate is a long one, and the numbers seem to be equally divided between both sides. Censorship exists in all forms of media, and far beyond it. Those against are not campaigning for a completely censorship free country, but just to minimise it to an extent where it is not such a predominant part of what we watch, hear and think. It would be impossible and unrealistic to believe that the country would be able to function properly without some control of the information leaked to the general public, but it is also a worrying prospect that we may not know as much as we think we do about the country we live in and the problems facing it. One example of the advantages of censorship is during World War II. It played a major part along with propaganda to maintain a positive atmosphere throughout England, as if all the gruesome details concerning the ever-increasing death rate, the awful state of the soldiers and the destruction of homes and buildings were openly shared, not only would the people of England lose the faith they once had in winning the war, but it would make the country much easier to beat. The army wouldnt have anything to prove, and the German spies closely monitoring the media would be able to pin-point the perfect places to destroy in order to bring morale to such a low that the English would have no choice but to surrender. But was this really justified? Didnt the people have a right to know the real condition other parts of the country were in? What gives the government the right to release incorrect statistics? This is the type of thing being debated about today. To what extent should free speech be limited? Would that even still count as free? What would have happened if an English soldier had been allowed to write home about the true glory of the war? His family would have obviously been horrified, and consequently told their friends and co-workers, warning them against sending their son to war. If this was wide-spread enough, there would have been a dramatic increase in the men avoiding conscription and a decrease in enthusiasm in joining, making it weaker and even more out-numbered by the opposing forces leading to almost definite defeat. But is this a reason enough to make this soldier lie? To subject thousands more men to a gruesome and possibly fatal ordeal? Does the ends really justify the means?

Wednesday, August 21, 2019

Education Essay Example for Free

Education Essay The most prominent example of a formal setting in the book is school. However, Scout does not learn much from school. This can be examplified by the fact that when Scout is able to read better than the teacher, Miss Caroline Fisher had expected, Miss Caroline Fisher told her to tell her father to stop teaching her how to read. Instead of helping Scout to improve her reading, Mrs Fisher is impeding Scouts learning process. This shows that schools do not cater to children of different abilities and Scouts learning is restricted in school. Hence, school is not the only place where a child learns. Jem and Scout learn moral values from Atticus. This is examplified by the many values Atticus teaches them such as moral courage and to stand up for what one believes is right. Atticus brought his children up to treat the blacks and the whites as equals. When Scout tells Atticus to send Calpurnia away, Atticus told Scout that they could not survive a day without Calpurnia and he told Scout to mind her. Scout learnt that she had to treat Calpurnia (a Negro) like how she would treat a White and to be respectful towards Calpurnia. Jem looks up to Atticus and tries to emulate him. This is because Atticus is a good role model and a good father. Jem learns from Atticus to have the moral courage to fight for what is right. This is evident as Atticus went all out to fight for Tom Robinson as he believed that Tom was innocent. Atticus did this although he knew that he would face severe criticism from the people in Mycomb and that he would put his life and his childrens at risk. From the example he sets, Jem is able to learn to have the moral courage to fight for what is right. Hence, Jem and Scout do learn in informal settings. Jem also learnt to have the courage to do what one decides to do. This is evident from Jems encounter with Mrs. Dubose. Mrs Dubose is a morphine addict and she tried very hard to get rid of her addiction. Mrs. Dubose sets an alarm clock and made Jem read to her as he was angry at what she said and cut off the top of her bushes. When the alarm clock rings, it would mark the end of Jems reading time. During this period of time when Jem is reading, Mrs Dubose will refrain from taking morphine. She used this method to try and get rid of her morphine addiction. To further elaborate, Mrs. Dubose was very courageous to try and get rid of her morphine addiction as it was a very painful process. Mrs. Dubose was almost dying but she wanted to leave the world beholden to nothing so she tried her very best to get rid of her addiction and displayed a strong sense of courage. Jem learnt from Mrs. Dubose that no matter how painful the process is, one should have the courage and determination to accomplish it. Hence, Jem do learn in an informal setting. Jem and Scout also gained knowledge from a new experience that Calpurnia showed them. This is evident as Calpurnia showed them how it was like in a Negro church. By visiting their church, they learnt about the difference in the conditions of the Negroes church and their church. They also learnt more about Tom Robinsons case when Scout asked Calpurnia why the pastor demands a donation from everyone to help Tom Robinsons wife provide for her kids. From these, the children were somewhat more aware of the discrimination happening in Maycomb.

Tuesday, August 20, 2019

Indias Financial Markets

Indias Financial Markets As all the Financial Markets in India together form the Indian Financial Markets, all the Financial Markets of Asia together form the Asian Financial Markets; likewise all the Financial Markets of all the countries of the world together form the Global Financial Markets. Financial Markets deal with trading (buying and selling) of financial securities (stocks and bonds), commodities (valuable metals or food grains), and other exchangeable and valuable items at minimum transaction costs and market efficient prices. Financial Markets can be domestic or international. The Global Financial Markets work as a significant instrument for improved liquidity. Financial Markets can be categorized into six types: Capital Markets: Stock markets and Bond markets Commodity Markets Money Markets Derivatives Markets: Futures Markets Insurance Markets Foreign Exchange Markets The Financial Markets play a major role in the Global Economy because it helps businesses to raise capital (in capital markets), they facilitate transferring of risk (in derivative markets), and they help international trade (in currency markets) to prosper. The International Stock Markets form a major part of the Global Financial Markets. The Amsterdam Stock Exchange is the oldest stock exchange, which started operating in continuous trade in the earlier part of the 17th Century. Some of the Important Stock Exchanges of the world are: The New York Stock Exchange (merged with Euro next): The New York Stock Exchange (NYSE) is a stock exchange based in New York City, USA that was incorporated in 1817. In terms of dollar volume, it is the largest stock exchange in the world, and in terms of the number of companies listed it is the second largest stock exchange in the world. The NYSE is also known as the Big Board. The indexes used in the NYSE are the NYSE Composite Index and the Dow Jones Industrial Average Index. The NYSE functions under NYSE Euro next, the formation of which was the result of NYSEs merger with Archipelago Holdings and Euro next. Tokyo Stock Exchange: The Tokyo Stock Exchange (TSE), incorporated in 1949, is located in Tokyo, Japan. In terms of monetary volume, The Tokyo Stock Exchange is the second largest stock exchange in the world, only next to New York Stock Exchange. The indexes used in the TSE are Nikkei 225, Topix, and J30. NASDAQ: The National Association of Securities Dealers Automated Quotations, or NASDAQ, is an electronic stock market based in New York City, USA that was incorporated in 1971. The NASDAQ Stock Market, Inc. is the owner and regulator of NASDAQ. The main index used in NASDAQ is the NASDAQ Composite. London Stock Exchange: Established in 1801, the London Stock Exchange (LSE) is one of the oldest and largest stock exchanges in the world. In terms of market capitalization, the London Stock Exchange was ranked 4th among all the other important stock exchanges in the world in March 2007. The London Stock Exchange is located in Paternoster Square near St. Pauls Cathedral, London. The stock market index of London Stock Exchange is the Footsie (FTSE). Euro next (merged with NYSE): Founded in 2000, Euro next N.V. is a pan-European Stock Exchange, which is based in Paris. In terms of market capitalization, Euro next ranks as the fifth largest stock exchange in the world. There was a merger of Euro next with the NYSE Group, which led to the formation of NYSE Euro next and it is the first global stock exchange. The main indexes used in Euro next are the Euro next 100 Index and the Next 150 Index. The Bombay Stock Exchange (BSE): Located in Mumbai, India and founded in 1875, the Bombay Stock Exchange is the oldest stock exchange of Asia. The main index of BSE is called the BSE Sensex (Sensitive Index) or the BSE 30. In terms of volume of transactions, the BSE was ranked as one of the top five stock exchanges in the world in 2005. Some terms that are used in the Global Financial Markets are: Geek, a Quant Grim Nerd, a Quant Quant Big Swinging Dick Rocket Scientist White Knight Today equity research has become a specialized activity, although confined to a very small segment of the market. It would be a little early to consider equity research as an independent business segment, but at the same time it must be appreciated that the value of equity research is being felt by the market. This is an interesting stage in the growth and development of equity research, especially in a situation where the traditional individual investor is unwilling to pay for vital stock related information while the institutional investor is already paying for research reports. The phenomenal growth of the financial markets over the last quarter of a century has meant that the very character of investment has changed with ever larger scales of market capitalization. The emergence of the Fund Manager as a new value addition in investment related financial services is actually a part of the growth and development of the institutional investor. The fund managers sole objective is to ensure maximum returns for his clients whose money he invests working in tandem with research inputs. The fund manager and his client are a vital part of the institutional investment process sustained by an advanced and research driven approach to capital market investment. Equity research still has some time to develop as a sustainable business model, but like any other research activity it has its limitations in developing into a booming business. Institutional investors are willing to pay ever higher amounts for in-depth and precise research in accordance with their requirements. Some of the modes of equity research are: Fundamental Analysis Technical Analysis Securities Market Analysis Index Momentum Analysis Securities Momentum Analysis Securities Chart Analysis India n Financial Market India Financial market is one of the oldest in the world and is considered to be the fastest growing and best among all the markets of the emerging economies. The history of Indian capital markets dates back 200 years toward the end of the 18th century when India was under the rule of the East India Company. The financial market in India today is more developed than many other sectors because it was organized long before with the securities exchanges of Mumbai, Ahmadabad and Kolkata were established as early as the 19th century. By the early 1960s the total number of securities exchanges in India rose to eight, including Mumbai, Ahmadabad and Kolkata apart from Madras, Kanpur, Delhi, Bangalore and Pune. Today there are 21 regional securities exchanges in India in addition to the centralized NSE (National Stock Exchange) and OTCEI (Over the Counter Exchange of India). The corporate sector wasnt allowed into many industry segments, which were dominated by the state controlled public se ctor resulting in stagnation of the economy right up to the early 1990s. Thereafter when the Indian economy began liberalizing and the controls began to be dismantled or eased out, the securities markets witnessed a flurry of IPOs that were launched. This resulted in many new companies across different industry segments to come up with newer products and services. A remarkable feature of the growth of the Indian economy in recent years has been the role played by its securities markets in assisting and fuelling that growth with money rose within the economy. This was in marked contrast to the initial phase of growth in many of the fast growing economies of East Asia that witnessed huge doses of FDI (Foreign Direct Investment) spurring growth in their initial days of market decontrol. During this phase in India much of the organized sector has been affected by high growth as the financial markets played an all-inclusive role in sustaining financial resource mobilization. Many PSUs (Public Sector Undertakings) that decided to offload part of their equity were also helped by the well-organized securities market in India. The launch of the NSE (National Stock Exchange) and the OTCEI (Over the Counter Exchange of India) during the mid 1990s by the government of India was meant to usher in an easier and more transparent form of trading in securities . The NSE was conceived as the market for trading in the securities of companies from the large-scale sector and the OTCEI for those from the small-scale sector. While the NSE has not just done well to grow and evolve into the virtual backbone of capital markets in India the OTCEI struggled and is yet to show any sign of growth and development. The integration of IT into the capital market infrastructure has been particularly smooth in India due to the countrys world class IT industry. This has pushed up the operational efficiency of the Indian stock market to global standards and as a result the country has been able to capitalize on its high growth and attract foreign capital like never before. Potential of India Financial Market India Financial Market helps in promoting the savings of the economy helping to adopt an effective channel to transmit various financial policies. The Indian financial sector is well-developed, competitive, efficient and integrated to face all shocks. In the India financial market there are various types of financial products whose prices are determined by the numerous buyers and sellers in the market. The other determinant factor of the prices of the financial products is the market forces of demand and supply. The various other types of Indian markets help in the functioning of the wide India financial sector. Features OF FINANCIAL Market in India: India Financial Indices BSE 30 Index, various sector indexes, stock quotes, Sensex charts, bond prices, foreign exchange, Rupee Dollar Chart Indian Financial market news Stock News Bombay Stock Exchange, BSE Sensex 30 index, SP CNX-Nifty, company information, issues on market capitalization, corporate earnings statements Fixed Income Corporate Bond Prices, Corporate Debt details, Debt trading activities, Interest Rates, Money Market, Government Securities, Public Sector Debt, External Debt Service Foreign Investment Foreign Debt Database composed by BIS, IMF, OECD, World Bank, Investments in India Abroad Global Equity Indexes Dow Jones Global indexes, Morgan Stanley Equity Indexes Currency Indexes FX Gold Chart Plotter, J. P. Morgan Currency Indexes National and Global Market Relations Mutual Funds Insurance Loans Forex and Bullion Indian money market AS PER RBI DEFINITIONS A market for short terms financial assets that are close substitute for money, facilitates the exchange of money in primary and secondary market. Indian money market was highly regulated and was characterized by limited number of participants. The limited variety and instruments were available. Interest rate on the instruments was under the regulation of Reserve Bank of India. The sincere efforts for developing the money market were made when the financial sector reforms were started by the government. Money markets are the markets for short-term, highly liquid debt securities. Examples of these include bankers acceptances, repos, negotiable certificates of deposit, and Treasury Bills with maturity of one year or less and often 30 days or less. Money market securities are generally very safe investments, which return relatively; low interest rate that is most appropriate for temporary cash storage or short term time needs. The National Stock Exchange, where the stocks of the largest Indian. Corporations are traded, is a prime example of a capital primary market. Regarding timing, there is no hard and fast rule on this, but when describing debt markets, short term generally means less than one year, intermediate term means one to five years, and long term means more than five years. THE NATURE OF MONEY MARKETS In this we define money markets broadly to include all financial instruments easily converted to means of payment that are used by governments, financial institutions and nonfinancial institutions for short-term funding or placements. By convention, we limit our scope to instruments of less than one year maturity. The most important function of a money market is to provide a means whereby economic units can quickly adjust through cash positions. For all economic units (business, households financial institutions or governments) the timing of cash inflows is rarely perfectly synchronized or predictable in the short run. In addition to facilitating the liquidity management of economic actors, money markets fulfill a number of additional economic functions: Interest rates on money market instruments serve as reference rates for pricing all debt instruments; Governments or central banks use money market instruments as tools at monetary policy; Short-term interbank markets, finance longer-term lending when financial intermediaries transform maturities. Features of Money Market It is a market purely for short-terms funds or financial assets called near money. It deals with financial assets having a maturity period less than one year only. In Money Market transaction cannot take place formal like stock exchange, only through oral communication, relevant document and written communication transaction can be done. Transaction has to be conducted without the help of brokers. It is not a single homogeneous market, it comprises of several submarket like call money market, acceptance bill market. The components of Money Market are the commercial banks, acceptance houses NBFC (Non-banking financial companies). It is not a single market but a collection of markets for several instruments. It is a need-based market wherein the demand supply of money shape the market. Money market is basically over-the-phone market. Dealing in money market may be conductive with or without the help of brokers. It is a market for short-term financial assets that are close substitutes for money. Financial assets which can be converted into money with ease, speed, without loss with minimum transaction cost are regarded as close substitutes for money. The major players of money market Reserve Bank of India SBI DFHI Ltd (Amalgamation of Discount Finance House in India and SBI in 2004) Acceptance Houses Commercial Banks, Co-operative Banks and Primary Dealers are allowed to borrow and lend. Specified All-India Financial Institutions, Mutual Funds, and certain specified entities are allowed to access to Call/Notice money market only as lenders Individuals, firms, companies, corporate bodies, trusts and institutions can purchase the treasury bills, CPs and CDs. Money market instruments Money market instruments take care of the borrowers short-term needs and render the required liquidity to the lenders. The varied types of India money market instruments are treasury bills, repurchase agreements, commercial papers, certificate of deposit, and bankers acceptance. Treasury Bills (T-Bills) Treasury bills were first issued by the Indian government in 1917. Treasury bills are short-term financial instruments that are issued by the Central Bank of the country. It is one of the safest money market instruments as it is void of market risks, though the return on investments is not that huge. Treasury bills are circulated by the primary as well as the secondary markets. The maturity periods for treasury bills are respectively 3-month, 6-month and 1-year. The price with which treasury bills are issued comes separate from that of the face value, and the face value is achieved upon maturity. On maturity, one gets the interest on the buy value as well. To be specific, the buy value is determined by a bidding process, that too in auctions. Repurchase Agreements Repurchase agreements are also called repos. Repos are short-term loans that buyers and sellers agree upon for selling and repurchasing. Repo transactions are allowed only among RBI-approved securities like state and central government securities, T-bills, PSU bonds, FI bonds and corporate bonds. Repurchase agreements, on the other hand, are sold off by sellers, held back with a promise to purchase them back at a certain price and that too would happen on a specific date. The same is the procedure with that of the buyer, who purchases the securities and other instruments and promises to sell them back to the seller at the same time. Commercial Papers Commercial papers are usually known as promissory notes which are unsecured and are generally issued by companies and financial institutions, at a discounted rate from their face value. The fixed maturity for commercial papers is 1 to 270 days. The purposes with which they are issued are for financing of inventories, accounts receivables, and settling short-term liabilities or loans. The return on commercial papers is always higher than that of T-bills. Companies which have a strong credit rating, usually issue CPs as they are not backed by collateral securities. Corporations issue CPs for raising working capital and they participate in active trade in the secondary market. It was in 1990 that Commercial papers were first issued in the Indian money market. Certificate of Deposit A certificate of deposit is a borrowing note for the short-term just similar to that of a promissory note. The bearer of a certificate of deposit receives interest. The maturity date, fixed rate of interest and a fixed value are the three components of a certificate of deposit. The term is generally between 3 months to 5 years. The funds cannot be withdrawn instantaneously on demand, but has the facility of being liquidated, if a certain amount of penalty is paid. The risk associated with certificate of deposit is higher and so is the return (compared to T-bills). It was in 1989 that the certificate of deposit was first brought into the Indian money market. Bankers Acceptance A bankers acceptance is also a short-term investment plan that comes from a company or a firm backed by a guarantee from the bank. This guarantee states that the buyer will pay the seller at a future date. One who draws the bill should have a sound credit rating. 90 days is the usual term for these instruments. The term for these instruments can also vary between 30 and 180 days. It is used as time draft to finance imports, exports. It depends on the economic trends and market situation that RBI takes a step forward to ease out the disparities in the market. Whenever there is a liquidity crunch, the RBI opts either to reduce the Cash Reserve Ratio (CRR) or infuse more money in the economic system. In a recent initiative, for overcoming the liquidity crunch in the Indian money market, the RBI infused more than Rs 75,000 crore along with reductions in the CRR. Call money market The call money market consists of overnight money and money at short notice for periods up to 14 days. It essentially serves the purpose of equilibrating the short-term liquidity position of banks. The call money market as a significant component of the money market possesses a few special characteristics:- Call money is an instrument for ultra-short period management of funds and is easily reversible. It is primarily a telephone market and is therefore, administratively convenient to manage for both borrowers and lender. Being an instrument of liability management, it provides incremental funds and adds to the size of balance sheet of banks. From the macro-side, developed call money market helps to smoothen the fluctuations in the reserve-deposit rations of banks thereby contributing to the stability of the money-multiplier process. A stable money multiplier in turn serves as a reliable means of monetary regulation and policy guide. From the micro angle, short-run borrowing by banks improves the efficiency of funds management in two ways. One way, it enables banks to hold higher reserve-deposit ratio than would be possible otherwise. In another way, it allows some banks to permanently increase their pool of investible funds. Hence, active well-organized call money market improves the funds management practices of banks which in turn further their overall efficiency and profitability. The money market continued to remain orderly during Q2 of 2009-10. Reflecting the surplus liquidity conditions, the call rate hovered around the lower bound of the informal LAF corridor during the Q2 of 2009-10). The call rate averaged 3.25 per cent in Q2, which was marginally higher than 3.22 per cent in Q1.Interest rates in the collateralized segments of the money market the market repo and the collateralized borrowing and lending obligation moved in tandem with the call rate during Q2 but remained below the call rate. The weighted average interest rate in the collateralized segment of the money market marginally increased to 2.7 per cent during Q2 of 2009-10 from 2.4 per cent during Q1. Transaction volumes in CBLO and market repo segments continued to remain high during Q2 of 2009-10 reflecting the easy liquidity and active market conditions. Banks as a group are the major borrowers in the collateralized segment whereas mutual funds (MFs) continue to remain the single largest len der of funds in that segment. In fact, more than 75 per cent of the lending in the collateralized segment was contributed by the MFs in Q2, reflecting their continued enhanced lending capacity. The collateralized market remained the predominant segment of the money market, accounting for more than 80 per cent of the total volume in the money market in Q2. Source = http://www.rbi.org.in/scripts/BS_ViewBulletin.aspx?Id=10690#t56 Objective of call Money Market To provide a parking place to employ short term surplus funds. To provide room for overcoming short term deficits. To enable the central bank to influence and regulate liquidity in the economy through its intervention in this market. To provide a reasonable access to users of short-term funds to meet their requirement quickly, adequately at reasonable cost. Importance of call Money Market Development of trade industry. Development of capital market. Smooth functioning of commercial banks. Effective central bank control. Formulation of suitable monetary policy. Non inflationary source of finance to government. To provide help to the industry and trade. Some practical aspect of call money market v Number of Participants in Call/Notice Money Market:- (As on March 31, 2008) Category Bank PD FI MF Corporate Total I. Borrower 154 15 169 II. Lender 154 15 20 35 50 274 v Market Shares of Constituents in Call/Notice Money Market (In Percent) Borrowings Lendings Year Banks PDs Banks PDs Others 2007 68 32 52 11 37 2008 66 34 45 11 44 v Shares of Select Participants in Call Money Market: Lending (In Percent) Year Banks FIs Total 2007 20 18 38 (15) 2008 17 14 31 (13) Banks: Canara Bank, Central Bank, PNB and SBI FIs: ICICI, IDBI, LIC, SIDBI and UTI. Parenthetic figures relate to those of the SBI. v Shares of Select Banks in Call Money Market: Borrowings (In Percent) Year Banks 2007 36 2008 39 Select banks include ABN-AMRO Bank, Centurion Bank, Citi Bank, Deutsche Bank; Grind lays Bank, HDFC Bank, Hongkong Bank, IDBI Bank and Standard Chartered Bank. Some guidelines regarding call money market by r.b.i It may be recalled that in the annual policy Statement of April 2008, the intention to move towards a pure inter-bank call/notice money market by gradually phasing out non-bank participation was highlighted. Accordingly, in stage I, non-bank participants are allowed to lend, on average in a reporting fortnight, up to 85 per cent of their average daily lending during 2007-08. Subsequently, in the annual policy Statement of April 2008, it was stated that RBI would announce the date of effectiveness of stage II, wherein non-bank participants would be allowed to lend, on average in a reporting fortnight, up to 75 per cent of their average daily lending in call/notice market during 2007-08, depending on the date when NDS/CCIL becomes fully operational. In view of the encouraging developments in the functioning of NDS/CCIL, it is desirable to accelerate the progress of moving towards a pure inter-bank call/notice money market and facilitate further deepening of repo/term money market. Accordingly, it has been decided that effective from the fortnight beginning June 14, 2007, under stage II, non-bank participants would be allowed to lend, on average in a reporting fortnight, up to 75 per cent of their average daily lending in call/notice money market during 2007-08. However, in case a particular non-bank institution has genuine difficulty in deploying its excess liquidity, RBI may consider providing temporary permission to lend a higher amount in call/notice money market for a specific period on a case by case basis. To facilitate monitoring of your operations in call/notice money market on a daily basis, you are requested to continue to submit the daily return in time to the Principal Monetary Policy Adviser, MPD, RBI as per the extant practice. Current market rate = 2.10% 3.30% Commercial Bill market Bills of exchange are negotiable instruments, drawn by the seller (drawer) of the goods on the buyer (drawee) of the goods for the value of the goods delivered. These bills are known as trade bills. Trade bills are called commercial bills when they are accepted by commercial banks. If the bill is payable at a future date and the seller needs money during the currency of the bill, he may approach his bank to discount the bill. The maturity proceeds or face value of a discounted bill from the drawee is received by the bank. If the bank needs funds during the currency of bill, it can rediscount the bill that has been already discounted by it in the commercial bill rediscount market at the available market discount rate. The RBI introduced the Bills Market scheme (BMS) in 1952 and the scheme was later modified into the New Bills Market Scheme (NBMS) in 1970. Under the scheme, commercial banks can rediscount the bills, which were originally discounted by them, with approved institutions. With the intention of reducing paper movements and in a bid to facilitate multiple rediscounting, the RBI introduced an instrument called Derivative Usance Promissory Notes (DUPN). Consequently, the need for the physical transfer of bills has been waived and the bank that originally discounts the bills only draws DUPN. These DUPNs are sold to investors in convenient lots of maturities (from 15 days up to 90 days) on the basis of genuine trade bills, discounted by the discounting bank. Commercial bill is a short term, negotiable, and self-liquidating instrument with low risk. It enhances he liability to make payment in a fixed date when goods are bought on credit. According to the Indian Negotiable Instruments Act, 1881, bill or exchange is a written instrument containing an unconditional order, signed by the maker, directing to pay a certain amount of money only to a particular person, or to the bearer of the instrument. Bills of exchange are negotiable instruments drawn by the seller (drawer) on the buyer (drawee) or the value of the goods delivered to him. Such bills are called trade bills. When trade bills are accepted by commercial banks, they are called commercial bills. The bank discounts this bill by keeping a certain margin and credits the proceeds. Banks, when in need of money, can also get such bills rediscounted by financial institutions such as LIC, UTI, GIC, ICICI and IRBI. The maturity period of the bills varies from 30 days, 60 days or 90 days, depe nding on the credit extended in the industry. Characteristics of Commercial bill Securities offered to the public must be registered with the Securities and Exchange Commission according to the Securities Act of 1933. Registration requires extensive public disclosure, including issuing a prospectus on the offering. It is a time-consuming and expensive process. Most commercial paper is issued under Section 3(a) (3) of the 1933 Act which exempts from registration requirements short-term securities as long as they have certain characteristics. Commercial paper is typically a discount security (like Treasury bills): the investor purchases notes at less than face value and receives the face value at maturity. The difference between the purchase price and the face value, called the discount, is the interest received on the investment. Commercial paper is, occasionally, issued as an interest-bearing note (by request of investors). The investor pays the face value and, at maturity, receives the face value and accrued interest. All commercial paper interest rates are quoted on a discount basis. The exemption requirements have been a factor shaping the characteristics of the commercial paper market. The following are requirements for exemption: The maturity of commercial paper must be less than 270 days. In practice, most commercial paper has a maturity of between 5 and 45 days, with 30-35 days being the average maturity. Many issuers continuously roll over their commercial paper, financing a more-or-less constant amount of their assets using commercial paper. The nine-month maturity limit is not violated by the continuous rollover of notes, as long as the rollover is not automatic but is at the discretion of the issuer and the dealer. Many issuers will adjust the maturity of commercial paper to suit the requirements of an investor. That proceeds from commercial paper issues be used to finance current transactions, which include the funding of operating expenses and the funding of current assets such as receivables and inventories. Proceeds cannot be used to finance fixed assets, such as plant and equipment, on a permanent basis. A safekeeping agent hired by the investor held the certificates, until presented for payment at maturity. The settling of the transaction, (the exchange of funds for commercial paper first at issuance and then at redemption, occur in one day. On the day the commercial paper is issued and sold, the investor receives and pays for the notes and the issuer receives the proceeds. On the day of maturity, the investor presents the notes and receives payment. Commercial banks, in their role as issuing, paying, and clearing agents, facilitate the settling of commercial paper by carrying out the exchanges between issuer, investor, and dealer required to transfer commercial paper for funds. Types of Commercial Bills: Commercial bill is an important tool finance credit sales. It may be a demand bill or a usance bill. A demand bill is payable on demand, that is immediately at sight or on presentation by the drawee. A usance bill is payable after a specified time. If the seller wishes to give sometime for payment, the bill would be payable at a future date. These bills can either be clean bil

Monday, August 19, 2019

Differential Reinforcement Essay -- essays research papers

  Ã‚  Ã‚  Ã‚  Ã‚  Differential Reinforcement is defined to occur when behavior is reinforced by being either rewarded or punished while interacting with others (Siegel, 2003). With this said, the theory was developed as a way of labeling both positive, as well as negative aspects of individual action. This idea of reinforcement is a branch of the infamous Differential Association theory presented by Edwin H. Sutherland in 1939. Another commonly used term for this theory of reinforcement is called differential conditioning (Siegel, 2003). As mentioned, the types of reinforcement are either positive or negative, and operate on the results of specific crimes or random acts. Rewarding behaviors plainly urges such action to be repeated, while punishment often deters those offenders from repeating their same mistakes. Parenting practices, social groups, schools, television, and the community are just a few of the examples that are linked to this theory. According to Ronald Akers (1966), each behavior a person commits is a learned behavior, meaning some type of outside force paved the way to this various knowledge. This theory goes hand in hand with the ideology that he argued in his studies, but focuses on the after effects (or results), rather than prevention or control. This theory does not help support the effectiveness of deterrence, but it does give us a little insight on why people decide to engage in criminal activity. Perhaps the most influential group in shaping someone’s behavior is their peer group. Take for example, gang activity. Street gangs, though usually found in highly urbanized areas, still exist and even thrive throughout most of the United States. It is the safety, security, and power that effects these members with faulty, risky and distant thinking, which usually ends up in some type of negative reinforcement. Guilt is often by association, as well as socialization. Purely, this relationship dominates the theory of crime as a learned b ehavior. No one is born with the general knowledge of how to break the law or to simply be criminal by nature, but through life experiences and perceptions of the events that surround them, the criminal activity is learned. Use the professional art of safe (or vault) cracking, for example. To perform such a trick, one must be taught how to do it. Such information is never provided at birth, or thr... ... strategies to govern the influences these gangs have on crime and society.   Ã‚  Ã‚  Ã‚  Ã‚  Between gangs, youth and WWC/CV (white collar crime/corporate violence), criminologists have their hands full with analyzing the behavior of individuals. When punishments outweigh the benefit of criminal activity, most crimes are never actually committed. But if the threat of punishment is too weak, or ineffective then proper action is usually avoided and a crime gets committed. Criminologists search for a way to make connections by associating these theories with new cases reported each year. One problem is the discretion of police and the lack of crimes actually reported to police. Regardless, it is very easy to see the truth behind these concepts. For example, thieves that are safecrackers must have been taught to be able to do that trade. However, with the available data and records criminologists do have, there is tons of drawn out information supporting this theory of DR. Without doubt, differential reinforcement is a two-way street with human activity. One will always affect the other and it is up to the individual to reach for the positive, instead of the negative.

The Depression :: essays papers

The Depression Imagine for a moment, waking up one day to find yourself on a dirty floor, a pile of rags, or maybe even the street. You look down at yourself to find you're wearing the same clothes you wore yesterday, except they are completely filthy and have lots of holes in places like the knees and elbows. You have no access to a mirror to show you what you look like so you go to touch you hair with your hand and find it to be a pile of grease and dirt that obviously hasn't been washed in days, maybe even weeks. You get up and start to head for work, or school, only to realize you have no place to go. The pain of hunger eats away at you, but you just ignore it knowing that there is nothing for you to eat and you have no money to buy any food. You have no job, no money, no family, no hope. Welcome to the Depression. The 1920's was a time of great prosperity in the lives of most Americans and our natural human ignorance made us think it would stay that way forever. We had just come out of the Great War and business was booming, along with agriculture and the stock m arket. The outlook for the future was great, but people failed to understand that economies can't be on the upswing forever, it has to come down sometime. All of the signs of a depression were there; the farmers were producing too much, the uneven distr ibution of income, easy credit/huge debts, imbalance of foreign trade; people just didn't notice them. Not until October 29, 1929--BLACK TUESDAY--anyway, when the bottom of the stock market fell out, taking millions of American lives with it. Even thoug h any didn't admit it, they knew what was on the way. People who had been buying stocks on margin (10% down) suddenly found themselves penniless and in bigger debt than they could imagine. America went into a panic, pulling money out of banks in a frenz y causing many to close their doors. President Hoover tried hard to make the times better for the unemployed first by setting aside almost $800 million for public works like the now Hoover Dam. Conditions, however, failed to improve. His other policies, the Reconstruction Finance Corporat ion (RFC) and the Home Loan Bank Act, also didn't make much difference. The election of 1932 made it clear that the American people were unhappy with Hoover.

Sunday, August 18, 2019

Mongols and Europe :: essays research papers

Change Over Time Essay: Mongols and Europe Over the years there have been many great nomadic groups, such as the Vikings and the Kievan, but no nomadic group has been more successful than the Mongols. The Mongols have had many lasting influences on Russia, China, and even Europe. The Mongols have left a mark on the European trading systems in technologies as well as in their trading systems trade routes. One thing that stayed the same throughout Europe was their many religion. Although the Mongols set their primary trading system along the Silk Road, the Mongols also set out trade in Europe. The Mongols had a passport like system used mainly in China, because of the long distant trade through regions many languages were encountered, thus the paisa or passport comes in play. The paisa is said to have an inscription which is said to be the permission from the ruler to travel through the region. The paisa or passport was brought by the Mongols to Europe, and then adopted by the European. Many nomadic tribes were uneducated and illiterate, much like the Mongols, because the Mongols were so uneducated this made it harder for them to navigate along the oversea trade routes of Europe. The Mongols were a nomadic group known for their skills of horse riding and their ability and skill to shoot a crossbow over amazing distances. Since the Mongols were so great by horse back, the trade in Europe went from to the majority of people trading by land. But because of the none stop traveling of nomadic groups, this lead to no set or given religion for the Mongols, this helped the different religions of Europe stay constant.

Saturday, August 17, 2019

Importance of Tolerance in a Community

â€Å"What is Tolerance? It is the consequence of humanity. We are all formed of frailty and error; let us pardon reciprocally each other’s folly-that is the first law of nature. † (Voltaire, Philosophical Dictionary, pg. 206) Tolerance is showing respect to others by appreciating others and allowing them to live. Individuals have different religions, opinions, practices and attitudes. Tolerance is about accepting other people’s lifestyle or beliefs without being judgmental. It contributes to a universal peace.Unfortunately, too much suffering is nurtured in this world due to lack of tolerance. Moreover, one should ask if tolerance should have a limit particularly when it goes against moral values. Tolerance contributes in making a society stable. Without it, there would be no progression and no peace. In a society where different religious groups reside, it is essential. Every person is called to respect others’ practices and appreciate their contribution to a multi-racial community. Tolerance brings more justice, more equality and less racism. All people are born free and equal in dignity and rights, and they should not be discriminated against because of their nationality, ethnicity, religion, race, gender, political opinions, wealth or property. † (Universal Declaration of Human Rights, United Nations, 1948). However, there is a high degree of intolerance for example between Israeli Jews and Palestinians. They are killing in the name of identity, statehood and religion. For the economy of a community to flourish, tolerance must play an important role at the workplace.Higher productivity can be achieved if colleagues work together while understanding each other. A modern system of management keeps fighting and bullying away. The employer and the employee respect each other on the basic principle of tolerance. Tolerance at the workplace means respecting the attitude and practices of another person. Co-workers can feel more at ease with each other and concentrate on their work. People may do the same thing in different ways or hold opposing attitudes. Furthermore, employees should be able to accept the policies and laws of the workplace and by being tolerant this can be achieved.Tolerance at workplace therefore reduces frustration and improves happiness. Tolerance should also reside in families. It starts with the wife and the husband who afterwards show it towards the children. The modern family is a refuge from the problems of life. It is based on love and tolerance. Without tolerance in the parent-child relationship, there would be a lack of understanding. Furthermore, intolerance between wife and husband can lead to domestic violence. There would be too much tension in a home if tolerance was not practiced. It is an essential component in relationships.A better atmosphere prevails within bonds when it is present. Parents therefore should be able to teach tolerance to their children, for them to learn to be open to differences. In politics, tolerance plays a major function. Political tolerance is a key principle of democracy. It leads to better governance where genuine democracy prevails. Tolerance fosters democratic values as people have the right to voice their opinion. Criticism can be beneficial as tolerance helps us to accept others views. As a result, the opposition system can freely disapprove a government’s decisions and propose alternatives.Politicians should be able accept and respect the basic rights of persons and groups whose opinion differ from theirs. All citizens, including political leaders, have the responsibility to put political tolerance into practice by words and actions. For an individual to integrate in a community, he or she must be tolerant with himself or herself. He or she must know how to live with others. We cannot expect everyone to think alike. To live in peace and harmony, one must show respect for oneself and for others. One must accept o thers as they are and tolerance is the key to it.It is a way of life and it contributes to self-happiness and happiness for everyone. In addition, by showing tolerance to other, one gives an example of this virtue to his surroundings. Thus, one should include tolerance as one of his or her basic principle of life. However, as almost everything in life, tolerance has a limit. There are so many evils in society that cannot be encouraged such as drug consumption and trafficking, corruption, favoritism, violence and all sorts of crimes. â€Å"Tolerance ends where harm begins. † Tolerance is meant for the worthy, to fight for human rights and aim for peace; not to encourage injustice and harm.Severe sanctions need to be taken against illegal affairs and unmoral practices. Definitely tolerance has its place in every field of life. It makes relationships smoother, allows freedom of expression and freedom of opinion. For the economy, it contributes to a higher productivity. It can al so contribute to one’s happiness. It implies that one should accept differences of opinion and settle disputes peacefully. Countries can achieve peace and harmony through this basic principle of life. Tolerance is a basic principle of life that everyone should have. Nevertheless, we ought not to tolerate unjust practices.

Friday, August 16, 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