Wednesday, August 26, 2020

Introduction to Law Contract Essay Example

Prologue to Law Contract Essay Open, private, private individuals and cross breed bills are on the whole types of what in the long run becomes essential enactment likewise alluded to as an Act of Parliament. In the same way as other proposed laws and law changes essential enactment begins life as a white paper, this is an announcement of strategy from the legislature. These white papers are regularly dependent upon investigation in the House of Commons before being presented as a bill at the principal perusing. When the bill has been presented it will go through both the House of Commons and the House of Lords for thought. At the second perusing it is available to discuss however can't be changed. In the event that the bill is passed at this stage it, at that point travels through various advisory groups in the House of Commons entire house, standing and select board of trustees. At these boards of trustees the bill can be discussed and changed before moving onto the report and third understanding stages. Whenever endorsed at both of these stages the bill will at that point be introduced to the Queen for Royal Assent. This is the last phase of law making and Royal Assent affirms the bill as an Act of Parliament and at this stage it gets rule. Judges are required to apply essential enactment in legal disputes no matter what, yet can utilize their understanding of the enactment where pertinent. We will compose a custom exposition test on Introduction to Law Contract explicitly for you for just $16.38 $13.9/page Request now We will compose a custom article test on Introduction to Law Contract explicitly for you FOR ONLY $16.38 $13.9/page Recruit Writer We will compose a custom article test on Introduction to Law Contract explicitly for you FOR ONLY $16.38 $13.9/page Recruit Writer Designated enactment is a term used to depict laws and guidelines made by approved bodies or people, for example, priests or neighborhood specialists utilizing powers presented on it by an Act of Parliament. Every thing of appointed enactment is normally known as a legal instrument yet the Queen by Order in Council can make some assigned enactment. This is regularly the situation in time of crisis for example to force sanctions. Byelaws are made by designated enactment yet for the most part work just in the area of their creation. Designated enactments can be tested either in court through legal survey or as a feature of the safeguard. One reason to challenge might be on the grounds that the enactment is esteemed to be ultra vires, or past the forces of the body or establishment that passed the enactment initially. Legal point of reference is the procedure by which judges can utilize the choices of past cases as the expert for the premise of their choice, as long as there is adequate resemblance in the realities. There are some key rules that ought to be followed when utilizing legal point of reference. All courts will undoubtedly follow the choices of a higher court. This is known as gaze decisis to remain by the chose. The coupling guideline of legal point of reference is proportion decidendi the explanation of the choice. This is an announcement by the appointed authority of the legitimate standards being applied for the situation and it is just this explanation that gives proportion decidendi. In the event that there has been no past point of reference set, at that point an appointed authority may proclaim the law and a unique point of reference is set. This may then be utilized in later cases as the point of reference. Enactment framed in the European Community comes as guidelines and mandates made by the Council of Ministers of the EU comprised of government pastors from part states or the Commission, which is comprised of senior authorities from the part states. EU Legislation centers around a wide scope of issues, for example, exchange, agribusiness, social arrangement, work and nature. European Union enactment drawn up by an individual from the European Parliament and is proposed by the Commission before being talked about and decided on by the Parliamentary council. Touchy issues, for example, agribusiness, social strategy and tax assessment should be concurred collectively by the Council of Ministers so as to be passed yet a framework known as Quality Majority Voting is utilized to choose most of issues. Every part state has a designation of votes as indicated by its size and populace. For whatever length of time that in any event half of the part states and in any event half of the EU populace are in understanding, the enactment can be passed. Issues chose by unanimity don't should be concurred by the European Parliament however its recommendation can be looked for and in certain occurrences the enactment can't be passed until the exhortation or assessment of the Parliament has been looked for. The European Communities Act 1972 enables the UK overseeing gathering to change existing enactment to reflect new European enactment. The entirety of the types of law recently referenced are naturally connected in different manners. At the point when an appointed authority is directing a case in a UK court he should totally comply with essential enactment as this the most elevated type of law in the land. Combined with this he should consider assigned enactment however the capacity to challenge is accessible if the enactment is viewed as outside the locale of the body or foundation that made the enactment in any case. This is known as ultra vires. Contingent upon the degree of the courts chain of command at which the case is being heard, legal point of reference can happen if the material realities of the case being heard are sufficiently close to that of a past case in which a judgment has been set. A sub-par court in the progressive system must comply with the choice made already on the off chance that it was made in a predominant court. On the other hand, if the point of reference was set in a mediocre court to the current one, the adjudicator may settle on another choice and this turns into the new point of reference for sometime later. The European Communities Act 1972 enables the UK government to change existing enactment to reflect new European enactment or to guarantee that any zones of inconsistency are adjusted. This successfully implies every single European guideline and mandates can be considered in a UK official courtroom thus sit close by all UK enactment. Recognize an offer and a challenge to treat. An offer can be portrayed as an announcement by which the offeror (individual creation the offer) vows to be bound inasmuch as the conditions of the offer are acknowledged by the offeree (individual tolerating the offer). At the point when an individual or an organization causes an offer it to can be made to another individual, a gathering of people or to totally anybody on the planet (Carlill v Carbolic Smoke Ball Co Ltd (1893)). In straightforward terms, an offer is overwhelmingly as an inquiry Will you purchase this thing for à ¯Ã¢ ¿Ã¢ ½xx? A positive choice made by a person to follow through on the expressed cost for the thing brings about an acknowledgment of the offer and hence an agreement is shaped. Nonetheless, this isn't generally the situation. Now and again an offer is gone before by an encouragement to treat. A challenge to treat is the underlying stage at which an individual or an organization (invitor) show that they are happy to go into an agreement or understanding yet that the provisions of that agreement or are yet to be resolved. A portion of the manners by which the invitor can welcome offers incorporate:- 1. Showcases of products in stores this only shows what things are accessible and on which offers can be made (Pharmaceutical Society of GB v Boots Cash Chemists Ltd (1952)). 2. Promoting the advert is going about as a shop window to all expectations and purposes. As the promoter may just have a limited measure of stock they could just have planned the advert to be an encouragement to treat (Partridge v Crittenden (1968)). Where the publicist is making a guarantee, for example, a prize, this could be classed as a one-sided understanding and in this manner recognized as a proposal as no further exchange is expected (Carlill v Carbolic Smoke Ball Co Ltd (1893)). 3. Tenders a delicate is an encouragement to give products or administrations to a cost. The individual or people welcoming the tenders will at that point pick an offer that suits their necessities. Until the individual welcoming the delicate has settled on a choice to acknowledge a delicate there is no agreement shaped (Spencer v Harding (1870)). 4. Sell-offs the parcels or things showed are the encouragement to treat. Any offers made by people or organizations are offers and the barker may choose to acknowledge or reject such offers (Payne v Cave (1789)). In outline, an offer is a guarantee by an offeree to go into an authoritative understanding, expecting all terms determined by the offeror are acknowledged. A challenge to treat is the phase before a proposal much of the time and basically shows eagerness by the invitor that they are set up to go into arrangements, which might possibly prompt an offer and ensuing acknowledgment. At the point when two gatherings have gone to an agreement or rather what shows up, by all accounts, to be an agreement the way that one gathering is mixed up with regards to the character of another doesn't imply that there is no agreement, or that the agreement is a nullity and void from the earliest starting point, per Lord Denning MR in Lewis v Averay (1972). How far is the above explanation a genuine impression of the law? So as to guarantee an instance of mixed up personality there must be in any event one of two standards demonstrated. Right off the bat, the gathering asserting the misstep must show that he hosts befuddled the other get-together with another person. Moreover, he should have the option to show that he had motivation to wish to manage the proposed individual. Also, the gathering claiming the slip-up must have the option to show that he had made sensible endeavors to build up the personality of the gathering with whom they were proposing to shape an agreement. For an agreement to be voided void abdominal muscle initio, from the earliest starting point, it must be repealed before the rebel gives the property to an outsider. In the event that this isn't the situation, at that point the rebel has great title to the property and can pass on the property with great title. On account of Lewis v Averay (1972) the character of the rebel was not evident until after the endeavored liquidating of the cheq

Saturday, August 22, 2020

Effect of Ethnicity in Nigeria Essay Example

Impact of Ethnicity in Nigeria Essay Impact OF ETHNICITY ON THE SOCIO-ECONOMIC DEVELOPMENT OF NIGERIA CHAPTER 1. 0 INTRODUCTION Nigeriaâ isâ byâ farâ the generally populated of Africa’s nations, with more than one-seventh of the continent’s individuals. The individuals have a place with a wide range of ethnic gatherings. These gatherings give the nation a rich culture, yet they additionally present significant difficulties to country building. Ethnic hardship has tormented Nigeria since it picked up freedom in 1960. Authoritatively known as the ‘Federal Republic of Nigeria’, she hasâ aâ federal type of government and is isolated into 36 states and an administrative capital region. Lagos, (once in the past the capital of Nigeria) is the financial and social focus situated along the coast, and possessed significantly by the Yoruba-talking clan. It is additionally the country’s biggest city (regarding populace). The legislature moved from Lagos to Abuja in 1991 in the expectation of making a national capital where none of the country’s ethnic gatherings would be prevailing. Theâ land size areaâ of Nigeria is roughly 923,768 sq km (356,669 sq mi). It was home to ethnically based realms and ancestral networks before it turned into an European state. Despite European contact that started in the sixteenth century, these realms and networks kept up their self-governance until the nineteenth century. The frontier period started vigorously in the late nineteenth century, when Britain united its standard over Nigeria. In 1914 the British blended their northern and southern protectorates into a solitary state called the Colony and Protectorate of Nigeria. Nigeria got free of British principle in 1960. We will compose a custom paper test on Effect of Ethnicity in Nigeria explicitly for you for just $16.38 $13.9/page Request now We will compose a custom paper test on Effect of Ethnicity in Nigeria explicitly for you FOR ONLY $16.38 $13.9/page Recruit Writer We will compose a custom paper test on Effect of Ethnicity in Nigeria explicitly for you FOR ONLY $16.38 $13.9/page Recruit Writer After autonomy Nigeria experienced incessant upsets and extensive stretches of absolutist military standard somewhere in the range of 1966 and 1999, when a popularity based non military personnel government was set up Nigeria is exceptionally wealthy in crude materials like raw petroleum, tin, iron and so on however is exclusively subject to raw petroleum which is a significant wellspring of salary for the nation. While oil riches has financed significant interests in the country’s framework, Nigeria stays among the world’s least fortunate nations as far according to capita pay. Oil incomes drove the administration to overlook agribusiness, bringing about reliance on food importation. Fig 1. 1 MAP OF NIGERIA SHOWING THE 36 STATES 1. 1 The individuals of Nigeria Nigerias decent variety, both in tongue and clan makes it a troublesome area to expose to exact arrangement. This has prompted the propensity among numerous researchers to concentrate on the three significant ethnic or geographic zones in the nation viz the Hausa-Fulani (Northern Nigeria), the Yoruba (Western Nigeria) and the Igbo (Eastern Nigeria). These geographic zones are not at all exclusively involved by the three ethnic gatherings. A plenty of littler socio-ethnic gatherings might be situated in these zones. Theâ highestâ population densities are in the Igbo heartland in south-eastern Nigeria, in spite of poor soils and substantial resettlement. The seriously cultivated zones around and including a few significant urban communities of the Hausa ethnic gathering particularly Kano, Sokoto, and Zaria in the north are likewise thickly populated. Different zones of high thickness incorporate Yorubaland in the southwest, the focal Jos Plateau, and the Tiv country in Benue State in the south focal district. Densities are moderately low in the dry upper east and in many pieces of the center belt. Biological variables, including the commonness of ailments, for example, resting affliction, conveyed by the tsetse fly, and recorded components, particularly the heritage of pre-provincial slave attacking, help clarify these low densities (Encarta, 2009). Table 1. 1: Statistics of Nigeria Population| 138,283,240 (2008 estimate)| Population density| 152 people for each sq km 393 people for every sq mi (2008 estimate)| Urban populace distribution| 48 percent (2005 estimate)| Rural populace distribution| 52 percent (2005 estimate)| Largest urban areas, with population| Lagos, 11,100,000 (2005 gauge) Ibadan, 3,570,000 (2007 gauge) Ogbomosho, 861,300 (2007 estimate)| Official language| English| Chief strict affiliations| Muslim, 50 percent Christian, 40 percent Indigenous convictions, 10 percent| Life expectancy| 47. 8 years (2008 estimate)| Infant mortality rate| 94 passings for each 1,000 live births (2008 estimate)| Literacy rate| 70. 7 percent (2005 estimate)| Source: Encarta Encyclopedia (2009) 1. 2 Social issues Wealthâ andâ powerâ areâ distributed unevenly in Nigerian culture. This is because of a few components including defilement, political flimsiness, and joblessness, in the midst of others. The extraordinary lion's share of Nigerians, engrossed with every day battles to procure a living, have not many material belongings and minimal possibility of improving their part. In the interim, boss, rich shippers, legislators, and high-positioning government workers regularly gather and display enormous riches, which to a degree is normal and acknowledged in the Nigerian culture. The greater part of these first class keep up power through systems of support: They make sure about and convey work and get political help consequently. The framework takes into consideration some redistribution of pay since supporters frequently pay for things, for example, school expenses and marriage costs for family members, network improvement, and noble cause work. Economicâ inequalityâ has a serious impact on wellbeing, particularly for youngsters. One-fifth of Nigerian youngsters pass on before the age of five, basically from treatable infections, for example, intestinal sickness, measles, challenging hack, looseness of the bowels, and pneumonia. Short of what one-portion of newborn children are vaccinated against measles, and ailing health influences in excess of 40 percent of kids younger than five. Grown-ups are similarly influenced, in spite of the fact that with less fatal outcomes. Just 20 percent of country Nigerians and 52 percent of urban Nigerians approach safe water. 33% have no entrance to medicinal services basically in light of the fact that they live excessively far from facilities or other treatment communities. Numerous others can't bear the cost of the expenses charged by facilities. Whileâ averageâ incomes are higher and passing rates lower in urban areas, urban destitution is as inescapable as provincial neediness. Secure, well-paying occupations are rare, in any event, for those with significant training. Food is commonly costly. Lodging, as well, is exorbitant in spite of its simple quality, inciting the poor to assemble essential houses in shantytowns. Sewage removal frameworks in many urban communities are likewise fundamental or crude, with contaminated streams, wells, side of the road channels, and different waterways expanding the danger of irresistible infection. Industry, cars, and the consuming of fuel-wood further dirty air and water. Crime in Nigeria rose in the mid-1990s because of joblessness, monetary decay, and social imbalance, which are abetted by wasteful and degenerate police and customs powers. The greater part of all offenses are burglaries, thefts, and break-ins, albeit equipped thefts are additionally unmistakable. Nigeria is a significant channel for drugs moving from Asia and Latin America to business sectors in Europe and North America. Huge scope Nigerian extortion rings have focused on businessmen in different pieces of the world. Nigeriaâ hasâ beenâ wracked by occasional savage conflicts among ethnic and strict gatherings since the 1990s. The purposes for these conflicts have differed from nearby political questions to clashes between fundamentalist Muslims and Christians or moderate Muslims. By and large, neighborhood community or strict pioneers have controlled these contentions for political increase. 1. 3 Ethnicity: The Ethnic Composition of Nigeria Ethnicity is a term not effortlessly characterized and for legitimate comprehension of the idea related terms requires depiction; an ethnic gathering is viewed as a casual intrigue bunch whose individuals are unmistakable from the individuals from other ethnic gatherings inside the bigger society since they share family relationship, strict and semantics ties (Cohen, 1974). Ethnicism is another related idea used to signify ‘ethnic loyalty’ (Pepple, 1985). The idea of unwaveringness here shows ability to help and follow up in the interest of the ethnic gathering. Along these lines, ethnic reliability or ethnicism for the most part includes a level of commitment and is regularly joined by a rejective disposition towards those viewed as pariahs I. e. individuals from other ethnic gathering (Salawu and Hassan, 2011). In this way the term Ethnicity can be characterized as the cooperations among individuals from numerous differing gatherings (Nnoli, 1978). Nigeria is a general public with various ethnic gatherings, religions, dialects, societies and institutional courses of action. As a heterogeneous society of a few ethnic gatherings, Nigerians are in this manner portrayed by gatherings, wants, convictions, values, customs, fears and so forth. These assorted varieties in national life show in a few different ways including; music, language, culture, move, convictions, religion and so forth. The way that more than 300 distinguished language bunches exist in Nigeria has made some disarray as one may compare every language bunch with an ethnic gathering (Adejuyibem 1983) and along these lines show up at more than 300 ethnic gatherings. As Iwaloye and Ibeanu (1997) and Anugwom (1997) have contended, in any case, dialects and ethnic gatherings don't really concur. One language might be spoken by more than one ethnic gathering and one ethnic gathering may have etymological varieties of a similar root language. In addition, while language might be one of the significant variables for characterizing an ethnic gathering, some ethnic gatherings in Nigeria may have lost their unique etymological roots, while reta

Friday, August 14, 2020

MindMeister Is Now on Jolicloud! - Focus

MindMeister Is Now on Jolicloud! - Focus Please note:  Jolicloud was discontinued on April 1, 2016. For a list of all current MindMeister integrations, please visit mindmeister.com/integrations! Jolicloud, the new netbook OS by Netvibes founder Tariq Krim, has just released an improved alpha version for testing to a selected group of preview testers, and were very proud to be part of it: MindMeister comes preinstalled on the Jolicloud operating system installed meaning that theres a MindMeister icon in the Jolicloud application directory that brings you directly to the MindMeister site (soon also to a custom-built start page for Jolicloud users). With the announcement of  Google Chrome OS theres currently a lot of buzz around this topic and we believe that Tariq and his team have done an amazing job rethinking the overall layout of a desktop operating system for the Internet age (were not the only ones who think so, as proven by the recent $4.2m investment in Jolicloud by some major VCs). Apart from MindMeister, many of the usual suspects are available on the Jolicloud desktop Facebook, Twitter, Gmail, Skype, Dropbox, MobileMe and many more. Take a look yourself at the Jolicloud tour or read their own announcement of the MindMeister integration.

Wednesday, May 13, 2020

Zheng V. Liberty Apparel Company Inc - 10186 Words

ZHENG v. LIBERTY APPAREL COMPANY INC 88 91 998 103 Ling Nan ZHENG, Ren Zhu Yang, Yun Zhen Huang, Wen Qin Lin, Sai Bing Wang, Ye Biao Yang, Cui Zhen Lin, Rong Yun Zheng, Hui Fang Lin, Xiu Ying Zheng, Jin Ping Lin, Hui Ming Dong, Yu Bing Luo, Sau Chi Kwok, Sai Xian Tang, Yi Zhen Lin, Rui Fang Zhang, Mei Juan Yu, Mei Ying Li, Qin Fang Qiu, Yi Mei Lin, Mei Zhu Dong, Fung Lam, Xiu Zhu Ye, Sing Kei Lam, and Xue Jin Lin, Plaintiffs-Appellants, v. LIBERTY APPAREL COMPANY INC., Albert Nigri, and Hagai Laniado, Defendants-Cross-Claimants-Appellees, Ngon Fong Yuen, 88 Fashion Inc., Top Five Sportswear, Inc., S.P.R. Sportswear, Inc. and 91 Fashion, Inc., Defendants, Lai Huen Yam, a/k/a Steven Yam, 998 Fashions, Inc. and 103 Fashion Inc.,†¦show more content†¦Because the Contractor Defendants either could not be located or have ceased doing business, plaintiffs have voluntarily dismissed their claims against those defendants with prejudice. Accordingly, plaintiffs now seek damages only from the Liberty Defendants. Liberty, a â€Å"jobber† in the parlance of the garment industry, is a manufacturing company that contracts out the last phase of its production process. That process, in broad terms, worked as follows: First, Liberty employees developed a pattern for a garment, cut a sample from the pattern, and sent the sample to a customer for approval. Once the customer approved the pattern, Liberty purchased the necessary fabric from a vendor, and the vendor delivered the fabric to Libertys warehouse. There, the fabric was graded and marked, spread out on tables, and, finally, cut by Liberty employees. After the fabric was cut, Liberty did not complete the production process on its own premises. Instead, Liberty delivered the cut fabric, along with other essential materials, to various contractors for assembly. The assemblers, in turn, employed workers to stitch and finish the pieces, a process that included sewing the fabrics, buttons, and labels into the garments, cuffing and hemming the garments, and, finally, hanging the garments. The workers, including plaintiffs, were paid at a piece rate for their labor. From March 1997 through April 1999, Liberty enteredShow MoreRelatedThe Case Of Nino V. The Jewelry Exchange Essay970 Words   |  4 PagesIn the case of Nino v. The Jewelry Exchange, there were allegations brought forth by Rajae Nino who felt he was discriminated against by his former employer, on the account of his gender and national origin. When he was employed with said employer, he was given a copy of the company’s employment contract by the human resources manager and instructed him to read it and sign it without affording him any opportunity to negotiate over its terms. With most discrimination cases, â€Å"the EEOC encouragesRead MoreSmall Businesses Are Essential For The Fabric Of The American Economy Essay1326 Words   |  6 Pageslike the threat that faces most business owners is a sizeable one. In August of 2015, the National Labor Relations Board released it’s long awaited decision regarding joint employement in connecting to the Browning-Ferris Indust ries of Pennsylvania, Inc. issue. In an unprecedented move, one that overturned their previous decisions and threatens to upend the basis of franchisor/fanchisee relationships the board decided that in order to find that two or more entities are joint employers of a singleRead MoreWhat Are the Impacts of Rfid in Oil and Gas Supply Chain Management?21195 Words   |  85 Pages3) That this declaration is provided to the best of my knowledge and believes. Signed___________________________________ Justin Executive Summary One of the greatest phenomenon in business today is the zeal by companies, especially in the manufacturing and retail industry to gain competitive advantage through innovation and technology that can bring about reduction in cost and fast delivery while also monitoring product visibility in the supply chain. This can only

Wednesday, May 6, 2020

Blade Runner Free Essays

Blade Runner Is a CyberPunk Science Fiction Movie Filmed and Directed by Acclaimed Director Ridley Scott in 1982. The film depicts a dystopia society of the future in which man has reached the level of technological supremacy where his exact copy can be engineered. These â€Å"Replicants† have superior Strength, Speed, Agility and at least equal intelligence to their creators. We will write a custom essay sample on Blade Runner or any similar topic only for you Order Now A fail safe device in the form of an incept date; the replicants only have four years in which they can live. The narrative follows Deckard (Harrison Ford) who is a Blade Runner, and a Blade Runners job is to Retire (kill) Replicants. A group of Replicants have escaped from an off-world and travelled back to earth. This group is represented cleverly, allowing the Human viewer to feel strong empathy towards the group of desperate robots who display basic human instincts, and only want to live longer. When we see robots that are exactly alike to Humans, the Human viewer can understand that desperation for life. It is with this creation of Empathy that the serious question is asked, â€Å"What makes us Human? † The Backdrop of a dystopia society (L. A. , 2019) the actual humans appear to be Lonely, Dirty, sad and unsympathetic. The Replicates of these people display the Human traits that we regard ourselves with; they show Empathy, Compassion, love and desperation to live. Looking at the various film Conventions, we can see and understand the portrayal of these Replicants by Scott. In Visual Texts, the written Conventions are extremely important in anchoring the directors preferred meaning, and guiding the narrative. Especially with the misunderstood film Blade Runner, the opening sentences are extremely important in introducing the story and setting the viewer up for the revaluations they will make. The words creeping onto the screen explain how Tyrell Corporation advanced Robots into Beings â€Å"Virtually identical to a human† known as Replicants. These superior Robots are straight away used as slaves in hazardous Off-World Colonies. From this the viewer can gather that the vision of the future they’re witnessing shares some similarities to the past, so that history is repeating itself. It may be implying that human instincts will always stay the same. That is, that a human will send people different than themselves, people they’re somewhat afraid of, to do things they wouldn’t do. The replicants are representing slavery, they are determined as an underclass the moment they’re made, an underclass in a society made up of historically stereotypical under classes. There aren’t many white people in the future America, plenty of Asians, middle easterners and Latinos. From this we can gather that racism has evolved with technology, from this we can gather that people show specism instead. Through their hardships though, the Replicants form bonds and friendships with each other, humanity that serves as a shining light in the dark world. Continuing on the theme of Humanity, Symbolic elements are very important in representing the Replicants as Humans. Throughout the film, Eyes are a recurring theme, as it is widely recognised that the eyes a window to the soul. The soul can then be thought of as the symbolic object of being human. The opening shot of the LA landscape reflects the dystopia of Scott’s vision. An eye is then shown, reflecting the industrial landscape and the Tyrell Pyramids, the residing picture evokes a similarity to the â€Å"Eye of Providence,† one of many religious themes that occur in the film. The Voight-Kampff test that determines if your human, it studies the eyes, questions are asked to provoke empathy, which is suggested as an important human quality. But this notion is questioned, for the replicants express far more empathy and compassion than the disillusioned Humans. J. F. Sebastian and Pris share short life spans, so the Replicant befriends the lonely human abandoned by his fellow species. Leon becomes angry that Zhora was shot in the back by Deckard, is it acceptable to shoot a woman in the back even if they’re created by humans? Lastly Roy saves Deckard’s life during the closing scenes, he purely terrorised the questionable hero so Deckard could feel what it’s like to live in fear. The robot teaches the human how to feel. These basic human instincts aren’t shown in the depicted humans, from these representations we can see what Ridley Scott was aiming to address. These themes were furthermore helped by the technical aspect of filmmaking. Visual effects and film techniques work in hand with the audio aspect in creating mood and provoking emotions by messing with our senses. The opening shot of an Urban L. A. in Blade Runner was revolutionary in cinematography and filmmaking, along with the rest of the film, inspired by early crime dramas. These quick two minutes sum up the feeling and mood Scott was aiming for. We are shown what the world has the potential to become, and with this we feel the basic human emotion of fear. With this dark backdrop the Replicants elegantly shine. The aim of Blade Runner is to trigger emotions within the viewer, in part so empathy can be felt towards Replicants and their emotions they feel. Film Noir is cinematically used to emphasise the cynical and desperate mood of dystopias. Blade Runner pays homage to classic crime dramas that became popular during the 50’s and 60’s. The Smokey police office in which Deckard talk’s to Bryant is very similar to classic Noir movies. With this old but effective film technique, the carefully composed but simply presented soundtrack evokes this sought after emotion and empathy. Vangelis’s creation of classical music and futuristic synthesises work in harmony with the film Noir to portray the Replicants. It is with this emotion that we evaluate what it means to be human, thanks in part to the representations of Replicants and the Visual texts used to convey these representations. Blade Runner was ahead of its time. Undoubtly it was groundbreaking in its field of Science Fiction and contained the best cinematography films could show in its time. It asked questions of emotions Humans take for granted. Looking at the representations and groups in society of history, the film somewhat predicts how human’s may react in certain situations/societies. When we see a burned out world with depleted resources and dirty unliveable conditions, there is no surprise that off-world colonies are available. Typically in human history, when problems become too big, we just forget it and move to something else. Another prediction made by the film is the representations of Replicants. They convey human actions very cleverly, that is that we become scared of feel threatened by people/things that are different to us. The initial reaction is to mistreat or kill these dissimilar beings, as is the reaction towards the Replicants. It is through these faster, Stronger more intelligent replicates that we gather a glimpse of what it means to be human. From the get-go the Replicants are mistreated, used as tools, they are implanted with fake memories which only make the situation worse. But regardless of the adversity, the Replicants still manage to show compassion. They live in fear, fear cause by humans, but when handed the opportunity to extract revenge and even kill this source. The Replicant decides that purely knowing the Person causing them pain can experience empathy for them, robots, they become human, it’s with that Roy batty dies, but Human emotion lives on. How to cite Blade Runner, Essay examples Blade Runner Free Essays Texts offer insights into the human experience by conveying the values and attitudes predominant in society at the time. The context in which a text is composed affects the ideas that are explored and how they are presented. Invariably, texts from differing contexts cause the composers to have different intents and present different notions due to the change of audience and the difference in values and attitudes they hold. We will write a custom essay sample on Blade Runner or any similar topic only for you Order Now However, some issues remain universal issues that transcend time. The human experience is how humanity perceives and conducts themselves, and the values and attitudes that are predominant in their nature at the time. These values and attitudes change in accordance to context, due to the ever evolving nature of the environment around us and humanity itself. Examples of issues that have changed in value over time are the ideas of nature and the environment, and the concept of science and religion. These notions are explored and can be compared and contrasted in Ridley Scott’s Blade Runner (The Director’s Cut) and Mary Shelley’s Frankenstein. The 19th century was a period of upcoming scientific technological advancement, due to prominent scientists proposing controversial ideas, which defied the strict religious conventions of the period. Scientists such as Luigi Galvani, Giovanni Aldini and Erasmus Darwin put forth theories that placed man in the perceived almighty position of God, which in turn questioned the authenticity of the religious beliefs that society held. These theories, such as Galvanism, are evident in Shelly’s work, most prominently in the animation of Frankenstein’s monster. This allusion to Giovanni Aldini’s public experiments, where he manipulated electricity to cause corpses to move, conveys to the responder a similar message to which Aldini did. Both Shelley and Aldini cause the society in which they were in to question the source of life, by presenting the notion that electricity was the â€Å"spark of life†. However, this idea was perceived as work against God, as shown in Frankenstein through the quote â€Å"the beauty of my dream vanished, and breathless horror and disgust filled my heart†. The juxtaposition of the positive and negative connotations of â€Å"beauty† and â€Å"disgust† convey to the responder that the theories which catalysed the Scientific Revolution were initially considered beneficial to society, however, due to the controversy it caused, it was also considered blasphemous, and to an extent, the work of the devil. It is through this that an insight into the human experience is gained, an insight which reveals the value humanity placed on religion at the time and how the questioning of these values were becoming increasingly common. How to cite Blade Runner, Papers

Sunday, May 3, 2020

Legal Risk Management for Victorian Desalination- myassignmenthelp

Question: Discuss about theLegal Risk Management for Victorian Desalination Project. Answer: Introduction The Victorian Desalination Project supplies water to Melbourne, Geelong along with some other regional areas. It can supply high quality water whenever required. Also, it has a life up to 100 years which will help it in supplementing the water needs of the people in times of draught in the future (Aquasure, n.d.). Initiated in 2007, the project was completed in 2012. The water supply to the public was started in March 2017 through Cardinia Reservoir. The project is incurring a cost amounting to $608 Million in a year .The desalination plant consists of 29 buildings which also includes the reverse osmosis building. It has the capacity to produce 150 Billion liters of water per year. Additionally it has the capability to expand the production of water to 200 Billion liters in a year (Porter et al., 2014). So, this report is about the Victorian Desalination Project and appropriate provisions applicable on it. Besides this, the features of the contract applicable on this project along with the sharing of risk amongst the clients and the contracts will also be discussed in it. Summary of the Projects Scope and Objectives The Melbourne Desalination Plant is a Public Private Partnership between the Department of Sustainability and Environment of the Victorian Government and Aquasure. The plant is one of the most ecofriendly projects in the world utilizing renewable energy resources for its operation. Also, it has installed the world leading energy recovery machines to lessen the power consumption and adopted a unique design with green roof with a coastal park (Loftus and March, 2016). Due to the consistent drought and the rising necessity of the water requirements, the government of Victoria announced the next stage of its plan for water production in June, 2007. It was known as Our Water Our Future: The Next Stage of the Governments Water Plan. The plan provides the long term solutions for providing water by expanding and enhancing the supply of water in Melbourne. Additionally, the networking of water resources was performed across the State with the help of water grid. A flexible and speedy solution was designed for the changing water needs of the citizens of the country with the help of this project. The scope of the project comprises of the components such as establishment of Desalination Plant, Marine Structures, Power Supply and Transfer Pipelines. Desalination Plant has been established with the production capacity of 150 Gigaliters per year. Also, it has the potential to increase its production of water up to 200 Gigaliters per year (Beaudoin et al.,2016). The Marine Structures has been designed to intake the seawater and to purify it through the saline concentrate outlet. There is a transfer pipeline which is approximately 85 Kilometers long and it joins the Desalination Plant to the Melbourne Water supply network. Moreover, there is a power supply connected to the Desalination Plant and the connected infrastructure. The objectives of the Desalination Plant are to produce 150 GL desalinated water per year. Also, it can produce up to 200GL per year and can supply high quality water in times of draught. It is designed for storage of desalinated water (Zotalis et al., 2014). Also, it conducts the processes for waste treatment .It uses certain chemicals for the pretreatment, desalination and post treatment of water. The Marine Structures transfer the sea water to the Desalination Plant and eliminates the saline content from the desalination process. These are situated one or two kilometers offshore from the Desalination Plant in the open coastal area. This structure consists of sea water intake and treats it with the solution for eliminating the saline concentrate and discharging back to the ocean. The transfer pipelines have the capability to supply 200GL of water per year. It is connected to Melbourne Water infrastructure which allows wide distribution of water with the help of Melbourne Water supply network and it is also connected to the regional water authorities. The Power supply supplies the electrical energy to the Desalination Plant and Transfer Pipeline. The objective of the power supply is to connect the existing power supply network near Tynong via a220 KV northerly grid connection (Stewart, 2016). Relevant regulations applicable on the VDP Project Following acts are applicable on the VDP project: The Planning and Environmental Act 1987 Environment Protection Act 1970 Coastal Management Act 1995 Aboriginal Heritage Act 2006 Water Act 1989 The Planning and Environmental Act 1987 provides a regulatory system for the use and development of land in Victoria. It is administrated throughout Victoria with the help of planning schemes under this act. It sets out specified details on the various uses and development which are permitted within each municipal area (Research Office Legislative Council Secretariat, 2015). The Environment Protection Act 1970 has formulated the Environmental Protection Authority (EPA). It makes the provisions which outline the powers, accountabilities and duties for the avoidance of pollution and safeguarding the environment. It provides the legislative framework for obtaining information and suggestions regarding the possible effects on environment due to the installation of the project by the decision makers. The act mandates the formulation of a body to prepare Environmental Effects Statements (EES) which must be submitted to the Minister governing the Act (Victoria State Government, 2018). Coastal Management Act 1995 provides the approvals for the utilization and evaluation of the coastal Crown Land in Victoria. According to Section 3(1) of the act, the Coastal Crown Land refers to any land preserved as per the Victorian Crown Land (Reserves) Act 1978 for safeguarding the coastlines. It also consists of sea waters and the sea beds within the limits of Victoria. The Crown land within the limit of 200 meters of the water mark of the coastal waters is also included in coastal Crown Land. According to Section 37 of the Act, an individual must not utilize or evaluate coastal Crown Land without the written consent of the Minister governing the Act. Aboriginal Heritage Act 2006 administers the formulation of the Aboriginal heritage Council with the membership of owners who shall suggest the safeguarding of Aboriginal heritage .Also, it manages the Aboriginal parties which develop the management plans and execute the cultural heritage agreements . The site of the plant, the transfer pipeline and the power supply corridor cover the areas of both Aboriginal and European cultural heritages. Water Act 1989 provides for the administration of the terrestrial phase of water cycle, management of sustainable use and its conservation. It also includes the nullification of the inconsistencies in the treatment of surface and groundwater resources and waterways (Ettehad, 2015). Features of the contract applied in the project and the manner in which the risks are apportioned between the clients and the contractors in this contract Features of the contract applied in the project The Melbourne Desalination Plant is Public Private Partnership between the Department of Sustainability and Environment of the Government of Victoria and Aquasure. According to UniPhi (2018) the features of the contract applied in the project are that the parties to the contract believe that the harmonious industrial relations should exist amongst all the stakeholders. The parties approve to work in a cooperative way to ensure the successful installation of the project. The parties believe that the project should successfully supply the water to the people of Victoria. The project aims to secure the highest level of occupational health and safety standards. It is also focused on developing and preserving the best practices in the completion of the infrastructural projects. Lastly, it aims to achieve and maintain the employee commitment for the completion of the project in a preserved and effective way (Hecka et al., 2016). The manner in which the risks are apportioned between the clients and the contractors in this contract The risks are allocated amongst the clients and contractors in the contract by adopting the following methods: If the employee working on the site of the contract, faces an unavoidable risks to his/her health and safety, he or she should immediately withdraw from the site and inform the employer about it. The employee must follow the directions of the employer and should perform any other work within the expertise of the employee provided it should be safe for him or her to perform. If a problem associated with safety has been detected at the workplace , then the Occupational Health and Safety Representative will examine the area and will determine what action can be taken to prevent The parties to the contract will follow the risks warnings which will last for 6 months (Falkenberg and Styan, 2015). Lastly, no chemical will be added in the Desalinated Water which has the potential risk to human health and life. To protect the humans from harm, suitable monitoring equipment will be installed to abide by the compliance as per the Safe Drinking Water Act 2003 (Duff, Labate and Slugg, 2017). Conclusion Hence, to conclude, it can be said that Victorian Desalination Plant is amongst the biggest desalination plant in Australia which supplements the fresh water requirements of about one third of the households and industries, without depending on rain. The project is one of the greenest projects in the entire world utilizing the renewable resources to conserve 100 % of the operational energy. Also, it ensures that along with supplying desalinated water to the citizens of the land, the execution of the activities of the project does not have a negative impact on the environment .In this regard it complies with the various laws and regulations such as The Planning and Environmental Act 1987, Environment Protection Act 1970 etc. References Aquasure (n.d.) The Victorian Desalination Project [online] Available from: https://www.aquasure.com.au/desalination-plant Beaudoin , A.J., Bonefas, S.J., Jacoway, I.R. and Marx, A.L.(2015) Analysis of Domestic and International Desalination to Outline the Decision Making Landscape for Implementation and Operation of Desalination Plants in the United States. [online] Available from: https://web.wpi.edu/Pubs/E-project/Available/E-project-121615-173333/unrestricted/Final_Report.pdf Duff, J., Labate, V. and Slugg, A.M.(2017) Prospects and Pitfalls of Desalination Development: Insights from Three States. Ocean and Coastal Law Journal. 22(2),pp. 130-155. Ettehad, E. (2015) Public Interest in Desalination Delivery in Three Australian States A Newspaper Content Analysis[online] Available from: https://search.ror.unisa.edu.au/record/UNISA_ALMA11142892180001831/media/digital/open/9915996012001831/12142892170001831/13142955910001831/pdf Falkenberg , L.J. and Styan, C.A.(2015) The use of simulated whole effluents in toxicity assessments: A review of case studies from reverse osmosis desalination plants . Desalination. 368(2015), pp. 3-9. Hecka,N., Paytana,A. , Pottsc ,D.C. and Haddad, B.(2016) Predictors of local support for a seawater desalination plant in a small coastal community. Environmental Science Policy.66(2016), pp. 101111. Loftus , A. and March , H.(2016) Financializing Desalination: Rethinking the Returns of Big Infrastructure. International Journal of Urban and Regional Research. [online] Available from: https://onlinelibrary.wiley.com/doi/pdf/10.1111/1468-2427.12342 Porter, G., Michael, Downie, David, Scarborough, Helen, Sahin, Oz, Stewart and Rodney (2014) Drought and Desalination: Melbourne water supply and development choices in the twenty-first century. Desalination and Water Treatment. XX (2014), pp. 1-19. Research Office Legislative Council Secretariat(2015) Fact Sheet Seawater desalination in Australia[online] Available from: https://www.legco.gov.hk/research-publications/english/1415fs10-seawater-desalination-in-australia-20150930-e.pdf Stewart, M. (2016) Victoria Infrastructure Investment Update[online] Available from: https://www.engineersaustralia.org.au/sites/default/files/content-files/2016-12/infrastructure_investment_update_2016_-_vic.pdf UniPhi (2018) Victoria Desalination Plant Records and Document Management[online] Available from: https://uniphi.com.au/case-studies/victoria-desalination-plant-record-and-document-management/ Victoria State Government (2018) Environmental Effects Statement[online] Available from: https://www.water.vic.gov.au/water-grid-and-markets/victorian-desalination-project/environmental-management/environmental-effects-statement Zotalis, K., Dialynas , E.G. , Mamassis ,N. and Angelakis, A.N.(2014) Desalination Technologies: Hellenic Experience. Water . 2014(6), pp. 1134-1150.

Friday, March 27, 2020

Sex Roles among Men

Gender roles and sex roles can be discussed as interconnected notions which can influence each other significantly.Advertising We will write a custom essay sample on Sex Roles among Men specifically for you for only $16.05 $11/page Learn More If the connection and interdependence of gender and sex roles in the context of heterosexual relations are rather obvious, the connection and the impact of the notions on each other from the perspective of homosexual or bisexual relations require their further investigation. From this point, the discussion of anal sex roles among men is important for revealing and analyzing the correlation between the male gender role and the anal sex roles of men in their homosexual relations. It is significant to answer the question about the impact of masculinity as the male characteristic on the men’s sex roles and possible impact of sex preferences on the man’s everyday behavior0. In addition to these points, the topic about anal sex roles among men was chosen because of the current interest of the public in the questions of homosexuality which is observed with the help of examining contemporary movies, books, and shows’ themes. Thus, there are a lot of prejudice associated with the topic which should be discussed from the point of homosexual men’s gender and sex roles and their interdependence. Although much prejudice is connected with homosexual relations, those men who have sex with the other men are also characterized by such feature as masculinity and its components as responsibility and bravery, but the level of masculinity in a man’s nature can influence his preference according to anal sex roles.Advertising Looking for essay on gender studies? Let's see if we can help you! Get your first paper with 15% OFF Learn More Today people are inclined to develop definite stereotypes about homosexuality and provide common assumptions the main idea of which is that homosexual men are rather sensitive, tender, acquire certain female features in their behavior and actions, and unable to do the work which is considered as appropriate for men according to the visions of male and female gender roles. The public’s opinions on the problem of homosexuality can be divided into tolerant and quite aggressive. This point is still discussed as controversial in society. That is why the issues depicted in the movie Brokeback Mountain (2005) directed by Ang Lee provoked the great discussion of the question of homosexual relations. Ennis Del Mar and Jack Twist, the main characters of the movie, are two men from the American West who discover their homosexual preferences and fall in love with each other. The story develops during the period between the 1960s and the 1980s, and it concentrates on the detailed depiction of the romantic and intimate relations between these two men. The controversy associated with the issues discussed in the movie depe nds on the history of the question of homosexual relations and the public’s attitude to this phenomenon. It is possible to say that today the people’s vision of the relations of this kind is rather progressive, but biases still exist. Several decades ago the level of prejudice was extremely higher. Nevertheless, this phenomenon is known for people since the period of Ancient Greece when homosexual relations were discussed as the part of Zeus’s religious cult and the necessary aspect of the military service.Advertising We will write a custom essay sample on Sex Roles among Men specifically for you for only $16.05 $11/page Learn More However, in spite of the fact these relations are depicted in many pieces of art, there was not a single vision of the issue. Homosexual relations developed and were the common aspect of the personal life, but they were also criticized. The situation which is described in the movie also presents many aspe cts of the problem. Ennis Del Mar is portrayed as a man with highly developed masculine qualities. He is strong, in a good physical form, and hard-working. Ennis tries to resist his feeling of deep love toward another man when he becomes aware of his homosexuality. Jack Twist is more passionate and emotional, his masculine features are not as developed as Ennis’s ones, and he actively admits his homosexuality. According to Wei and Raymond, homosexual men can identify their sex roles strictly or they can change their preferences, thus, they can be ‘versatiles’ (Wei Raymond, 2011). In spite of the fact Ennis strives to reject his homosexuality and cannot be discussed as an active homosexual according to his vision of the problem, his active anal sex role of a ‘top’ supports the idea that was developed by Moskowitz and Hart. The researchers analyzed the connection between masculinity and anal sex roles and concluded that ‘tops’ are more ma sculine than ‘bottoms’, and this fact also depends on their physical features (Moskowitz Hart, 2011). Moreover, Jack who actively searched for the sexual satisfaction, but revealed less masculine features, was depicted as a ‘bottom’. That is why masculinity as the main male feature in relation to their gender characteristics also influences the men’s anal sex roles.Advertising Looking for essay on gender studies? Let's see if we can help you! Get your first paper with 15% OFF Learn More The analysis of Ennis and Jack’s sex roles with references to the investigations provided by the specialists in the field allows discussing the deep connection between male gender role and homosexual relations. Men’s preferences according to their anal sex roles can be explained with referring to their character features. From this point, homosexuality can be discussed only as a certain kind of sexuality characterized by its peculiarities. References Moskowitz, D. A. Hart, T. A. (2011). The influence of physical body traits and masculinity on anal sex roles in gay and bisexual men. Archives of Sexual Behavior, 40, 835-841. Wei, C. Raymond, H. F. (2011). Preference for and maintenance of anal sex roles among men who have sex with men: Sociodemographic and behavioral correlates. Archives of Sexual Behavior, 40, 829-834. This essay on Sex Roles among Men was written and submitted by user Fernanda Vargas to help you with your own studies. You are free to use it for research and reference purposes in order to write your own paper; however, you must cite it accordingly. You can donate your paper here.

Friday, March 6, 2020

UNIT 7 TASK 1 Essay

UNIT 7 TASK 1 Essay UNIT 7 TASK 1 Essay Sociological Perspectives Functionalism This is the sociological approach that sees the institutions of society as functioning in agreement among each other making a particular and obvious role to the smooth running of society. This perspective can best be understood by likening society to the human body, the same way the human body functions through the efficient interrelationship of major organs like the lungs, heart, kidneys and the liver, it has mechanisms to deal with diseases so that different in society each have particular contributions to make. They work as one by using methods of social control to deal with deviant members or groups so that society functions efficiently. Talcott Parsons played an important role in the development of functionalism as the sociological approach; he imagined society as a system made up of interrelated institutions that contributed to its ease of running and success. He thought the most important role of an institution was to socialise individuals and make sure they understand the fundamental values of their society and behave in suitable ways; this ensured that there was order in society. This perspective can be criticised by claiming that it doesn’t approach areas of conflict that characterise modern societies and in principle could be found in every society, although functionalists emphasise that consensus and agreement are a perfect image of institutions having clear, positive functions and co-operating effectively for the good of everyone. Nonetheless, this does not look like it’s to reflect various peoples experience and understanding of the modern world where there are frequently obvious winners and losers and lots of non-conformists. Functionalism is based on the idea that in all societies members share a number of essential principles and beliefs which value consensus underpins the socialisation process and the working of the main institutions. Marxism Marxism also being a conflict model as well as a structuralist model. This perspective was originally developed by Karl Marx, he thought that individual behaviour was formed by society but believed that the economic system defined society and everyone’s place within it. He held the view that in the industrial society during his time, there were two social classes, one which is the bourgeoisie or the capitalists, the small but powerful group who owned the factories as well as the other places of employment. The proletariat, a much larger, less fortunate â€Å"financially†, poorer group of workers. His idea was that both these social class groups would always be in conflict, land and offices would want high profits whereas the employees will want higher wages which would eventually consume the profits. This is the reason sometimes Marxism is called the conflict model. He thought that this particular conflict would lead to revolution because there was an unbalanced relatio nship between the bourgeoisie and the proletariat and conflict was inherent in the economic system. Marxists claim that the bourgeoisie also had power in other institutions and they nurture the society because they manage the mass media, the legal system and it’s their ideas that control the school curriculum. Through the socialisation process, the values and attitudes of the ruling class are passed on rather than the general value system of the functionalists. This is done effectively that the majority of the proletariat do not understand that they are being exploited and that they are helping the interests of the bourgeoisie rather than their own group, the lack of awareness by the proletariat is called false consciousness, this is the false consciousness of taking on the views and beliefs of the Bourgeoisie by the proletariat. Just the same as functionalists, Marxists also possess a structuralist perspective, they view family as contributing to an established social system and would consider the family as the servant of the capitalist

Wednesday, February 19, 2020

Strengths and Weaknesses of Social Contract Theory Research Paper

Strengths and Weaknesses of Social Contract Theory - Research Paper Example This paper tells that the social contract is considered to be an agreement between the state and those subjected to it, over their duties towards one another and how these duties are likely to be carried out. It is through the belief in this contract that many states today have come to be formed, and this mainly through the development of constitutions. The social contract theory recognizes that individuals have their own natural rights some of which they surrender to their governments so that the latter can protect their remaining rights. This paper seeks to show that while the social contract theory has many strengths, it also has various weaknesses, both of which will be addressed. The social contract theory is one which attempts to bring order to the society through the recognition of the rights and duties of individuals and states towards each other. This recognition allows for the development of a constitution which helps in the formulation of laws the protect the rights of ind ividuals while at the same time making it possible for people within the society to recognize their responsibilities not only to the state but also towards one another. It is through this recognition that it becomes possible for the government to enforce its authority over the society within its territory and this helps it to protect the individuals living within it. This theory can be considered to be a guideline for governments on how they can handle their responsibilities towards their people, for example, the provision of security as well as ensuring that their people are able to exercise their freedoms without any prejudice. It also recognizes that there are certain situations where individual rights have to be put aside in favor of the good of society especially in situations where individuals are required to pay taxes in order to help the government to fulfill its obligations.

Tuesday, February 4, 2020

Strategy Outline Example | Topics and Well Written Essays - 500 words

Strategy - Outline Example This development has prompted the company to develop a competitive strategy that can help it create competitive advantages and a sustainable market position (Low & Arain 2010, 15). One of the important approaches towards increasing efficiency in business activities is the use of strategies that reduce a company’s operational costs. This is important since companies can take advantage of the reduction in costs to maximize on the returns from the services and products they sell. Across various businesses in different industries, competitive advantages have often been achieved when firms attain high levels of profits from the activities they engage in. It is important to point out that particular industry structures play a crucial role in determining the amount of profits that business get from their operations (Plunkett & Research, 2010, 47). This is because; the particular forces shaping the industry and the same ones that determine the profits those firms derive from their operations. In the retail industry, like other industries, the particular forces affecting company and business performance include competition, like that which Wm Morrison is facing currently, the bargaining muscle in sellers and buyers of goods and services, as well as availability of complements and substitutes in the products and services being offered in the market(Worthington & Britton 2006, 13). The porters five model is used in making an analysis of the viability of business towards making competitive advantages and market position (Sadler 2003, 32; Grant 2008, 51). Businesses that want to grow and expand are expected to make an environmental planning and analysis on order to align their strategies accordingly. According to the porters five model, Wm Morrison has not received any major threats with the entry of new suppliers in the market. This can be attributed

Monday, January 27, 2020

U.S. Transportation Energy Analysis of Modal Use and Trend

U.S. Transportation Energy Analysis of Modal Use and Trend Joe Willie   U.S. vehicles travel over three trillion miles per year. The vast majority (99.64%) of these miles are traveled on U.S. roads, with the greatest portion of these miles attributed to passenger and light-duty vehicles (US Dept of Transportation, 2014). Transportation accounts for 28% of the energy used in the U.S. (US Energy Information Administration, 2016) and 26% of U.S. greenhouse gas emissions equaling 1.786 billion tons of CO2 equivalent.(EPA 2016). U.S. vehicle travel increased from 724 billion miles in 1960 to the current level by 2006, at which point the total vehicle miles stabilized (US Dept of Transportation, 2014). 90% of the fuel used for transportation in the U.S. is petroleum based (US Energy Information Administration, 2016). Transportation has become the leading and most-rapidly increasing contributor to greenhouse gas (GHG) emissions both globally and the U.S (Schipper, Saenger, and Sudardshan, 2011). Between 1991 and 2006, nearly half of the growth in U.S. carbon emissions was attributable to transportation. CO2 emission growth due to transportation has been driven by several factors, including increasing demand for passenger and freight transport, urban development and sprawl, lack of rail and bus transit and cycle infrastructure in many regions, fuel-inefficient vehicles, relatively low oil prices, and the limited availability of low-carbon fuels (Brown, Southworth, Sarzynski 2008). Given the scope and growth of transportation and associated emissions, it is becoming increasingly important to understand and quantify impacts and trends in various transportation modes. Light trucks (pickups, minivans, and SUVs) and passenger cars account for 34% and 24% of U.S. transportation fuel usage, respectively (US Energy Information Administration, 2016). Light trucks and passenger cars combined contribute 59% of U.S. transportation carbon emissions (U.S. Department of Energy, 2014). Fuel efficiency standards in the U.S. were initially established by Congress 1975. Corporate Average Fuel Economy (CAFE) standards set the average, sales-weighted, fleet fuel economy for new vehicles starting with the 1978 model year, with the intention of doubling average fuel economy to 27.5 mpg by 1985. The Department of Transportation also established CAFE standards for light trucks ( pickups, minivans, and SUVs) beginning with the 1978 model year. In 2007, CAFE standards for light trucks were increased to 22.2 mpg, with further increases scheduled. No increases were made beyond 1985 levels for passenger cars until until 2007, when the Energy Independence and Security Act ra ised the fuel economy standards of Americas cars, light trucks, and SUVs to a combined average of at least 35 miles per gallon by 2020 (Union of Concerned Scientists, 2017). However, it seems likely that this standard will be scaled back by the current administration before it is implemented. Minimum fuel efficiency standards for cars and light cars are set at different levels. A passenger car is any 4-wheel vehicle not designed for off-road use that is manufactured primarily for use in transporting 10 people or less. A light truck is any 4-wheel vehicle which is designed for off-road operation (has 4-wheel drive or is more than 6,000 lbs. gvwr and has typically truck-like physical features); or which is designed to transport more than 10 people, provide temporary housing, provide open bed transport, permit greater cargo-carrying capacity than passenger-carrying volume, or with the use of tools can be converted to an open bed vehicle by removal of rear seats to form a flat continuous floor (NHTSA, 2006). The ambiguity of this definition enables manufacturers to define vehicles as trucks or cars at their discretion. Many sport utility vehicles (SUVs) produced today which seem to meet the passenger car definition above are classified as light trucks, allowing their manufact urers far greater leeway to meet CAFE standards . It is useful to analyze vehicle carbon intensity for cars and light trucks. This is defined as the amount of carbon dioxide emission per vehicle distance traveled. Carbon intensity is inversely proportional to fuel economy. From 1973 to 2008 carbon intensity decreased 33% per vehicle mile and 15% per passenger mile. After 1973, new cars became much lighter, less powerful, and gradually more efficient. By 2007 a new cars and light trucks used half as much energy per unit weight as ones sold in the 1970s. However, new car weight had increased to 80% of the 1975 values for cars, and light truck weight increased above 1975 values. As a result the decline in fuel usage per mile of new cars and light trucks sold in the 1990s was closer to 33% less than those sold in 1973 (Schipper, Saenger, and Sudardshan, 2011). Low-density suburban development, or urban sprawl, has dominated development in the U.S. since World War II. This also includes scattered and commercial strip development, as well as large expanses of single-use development . Suburban households drive 31 percent more than urban households, while western households drive 35 percent than northeastern households (Kahn, 2000). Whats more, households in low density areas tend to own more cars, are more likely to own less fuel efficient vehicles such as SUVs and trucks, have lower vehicle occupancies, and use public transportation less than households in high density areas (Brownstone, 2008). Domestic air carrier service accounts for 6% of the total U.S. transportation energy use and 11% of the U.S. transportation carbon emissions. U.S. planes traveled 6 billion vehicle miles (608 billion passenger miles) for such travel in 2014. Domestic airline mileage increased from 858 million vehicle miles (31 billion passenger miles) in 1960 to 6.7 billion vehicle miles (588 billion passenger miles) in 2006 before decreasing to current levels. (U.S. Department of Transportation, 2016). It is interesting to note that although total vehicle miles have decreased by over 10% since 2006, total passenger miles have increased 3.4% during the same period. This is likely due to efforts by airlines to increase cost efficiency by increasing plane occupancy. While automobile fuel use was affected by efficiency standards, there were no similar policies for air travel. Instead, technological progress and efforts to support profitability have led to reduced carbon intensity in air transportation. Many unprofitable non-stop flights between smaller cities have been eliminated in favor of hub-and-spoke patterns developed by the major airlines, which increased plane loads. In addition, air travel intensity declined as plane occupancy increased to about 80% capacity in 2006 from around 50% in the early 1970s. This created more crowding on aircraft, but led to considerable reduction in fuel consumption. As a result, the carbon intensity of air travel declined by 60% between 1973 and 2006, greatest for any major mode of transportation (Schipper, Saenger, and Sudardshan, 2011). Rail and bus shares of U.S. transportation decreased from just over 7% in 1960 to around 4% in 2008, in terms of passenger miles. This is disconcerting given that the carbon intensities of bus and rail travel are (potentially) significantly lower than both passenger cars and air travel. Rail intensity can vary considerably. Heavily used intercity passenger (Amtrak) or commuter rail lines (Metro North, LIRR) typically have very low energy intensities, well below that of auto or air travel. Unfortunately, only a few large urban transit systems provide energy intensities that are competitive with automobile travel. As a result, North American public transportation service is overall not very energy efficient (energy consumption per passenger-mile). Under current conditions, U.S. transit vehicles consume about the same energy per passenger-mile as cars, although less than vans, light trucks and SUVs (Litman, 2015) . Bus travel, including intercity buses, school buses, and urban buses, has a mixed record. In fact, because buses carried so few passengers, city buses released more CO2 per passenger-mile on average than cars/light trucks during periods in the 1990s. But by 2000, newer, more efficient buses used progressively less fuel/mile, to the point where the intensit of a bus with an average of 9 passengers fell below that of automobiles again. (Steiner Mauzerall, 2006). Efficiency of public transit vehicles is highly dependent on passenger occupancy. A bus with seven passengers is about twice as energy efficient as an average automobile, while a bus with 50 passengers is about ten times as energy efficient. Rail transit tends to be about three times as energy efficient as diesel bus transit. New hybrid buses are about twice as energy efficient as current diesel buses. Chester and Horvath (2008) and Chester, et al. (2013) calculate life cycle energy consumption and pollution emissions for vari ous modes of transportation, including fuel used in their operation, and energy used in vehicle and facility construction and maintenance. While, public transit typically uses less than half the energy of a passenger car and a quarter of the energy of a light truck or SUV, these efficiencies vary significantly with on travel conditions. During peak periods, when occupancy is high, buses are the most energy efficient mode, but during off-peak, when occupancy ise low, buses are least efficient. (Litman, 2015) Although public transit is on average only modestly more energy efficient than automobile travel, and less efficient than some commercially available cars, this reflects the relatively low occupancies of transit vehicles. Transit services with high passenger occupancy rates are relatively energy efficient. Public transit improvements can provide significant energy savings and emission reductions by increasing operation efficiency, reducing traffic congestion, and substituting for automobile travel. Residents of transit-oriented communities tend to drive significantly less than they would in conventional, automobile-oriented locations. Transit improvements support other energy conservation strategies, such as efficient road and parking pricing policies. Without high quality transit such strategies are less effective and less politically acceptable. Current demographic and economic trends are increasing demand for high quality public transit and transit-oriented development (Litman, 20 15). American railroad passenger traffic grew steadily from the late 1800s until the 1920s, when long distance travel shifted to private automobiles and rail travel began a long decline. This decline was interrupted briefly due to gasoline rationing and the suspension of auto production during World War II when railroads were put back into service to transport the great volume of soldiers and war workers. Intercity bus service, which had been very limited before 1940, expanded during this period, as well. After the war, however most rail companies discontinued passenger service entirely. Passenger stations were demolished or abandoned, and railroad cars were taken out of service. In an effort to preserve rail service, Congress created Amtrak in 1970 and provided federal funds to support the new rail system. Commuter lines provided the remaining service. This was followed within a few years with the federal governments deregulation of U.S. airlines. The great increase in air travel that be gan after mid century is projected to continue indefinitely, offering speedy and safe transportation that strain air transit facilities. Bus travel provided a low-cost alternative airplane or train travel and has retained a small but relatively stable niche (Caplow, Hicks and Wattenberg, 2000). The MTA, which is the New York Metropolitan areas transit system, is a noteworthy case study of a large-scale US public transit system. The Metropolitan Transportation Authority is North Americas largest transportation network, providing service for 15.3 million people in 5,000 square miles including New York City, Long Island, southeastern New York State, and Connecticut. MTA subways, buses, and railroads provide 2.73 billion trips each year to New Yorkers, including about one in every three users of mass transit and two-thirds of the rail riders in the U.S. While 15 percent of the nations workers use public transit to get to their jobs, four of every five of New York Citys central business district rush-hour commuters use transit service, most of it operated by the MTA (MTA, 2017). The MTA accounts for 65 percent of all New York City commutes while using just 5 percent of New York Citys total energy consumption (MTA, 2008). The MTA also boasts the largest bus fleet in the U.S. and more subway and rail cars than all the rest of the countrys subways and commuter railroads combined. According to the MTA, ridership on its mass results in a 15 million metric ton net reduction of pollutants, making New York the most carbon-efficient state in the nation (MTA, 2017). New Yorkers consume one quarter as much energy per capita as the average American, largely attributable to the MTA system (MTA, 2008). While the energy and carbon emission efficiencies of the MTA system is impressive, the economy of such an operation poses significant ongoing challenges. Fares and tolls provide 53% of the MTAs $14.6 billion dollar annual operating revenue, but the system relies on taxes and subsidies for the remaining operating funds (MTA, 2015). In addition the agency relies heavily on debt to fund capital projects, with debt payments consuming a growing share of the MTAs annual operating budget, increasing the likelihood of fare increases and, creating an estimated debt service cost of $3.5 billion a year by 2030 (Tri-State Transportation Campaign, 2017). It seems that the inspiring environmental and fuel efficiency gains attributed to a large-scale public transportation system comes with a burdensome cost. Freight accounts for about 26% of all petroleum-based fuels consumed in the U.S. transportation sector. Freight transportation demand is typically measured in tons, ton-miles, and value (dollars) of goods moved by the freight sector. The Federal Highway Administration estimates that 18.5 billion tons of goods worth $16.7 trillion were moved in the United States in 2007, for a total of 5.4 trillion ton-miles of travel (U.S. DOT). Trucks moved about 72% of all freight tonnage, accounting for 42% of all ton-miles and 70% of freight commodity value. Rail accounted for only 11% of tons moved, but 28% of ton-miles and 3.5% of total value, reflecting rails cost effectiveness in hauling heavier, but generally lower-value, commodities, such as coal and grain, over long distances. Excluding international maritime shipments, waterborne transportation accounted for a smaller percentage of tons and ton-miles. Air freight transportation constituted an even smaller share, except when measured by va lue (Grenzeback, Brown, Fischer, Hutson, Lamm, Pei, Vimmerstedt, Vyas, Winebrake, J.J., 2013). Between 1960 and 2008, the share of trucks to almost 42% of ton-miles, while rail fell from 36% of freight in 1960 to 33% in 2008. The share of waterborne freight decreased significantly while air freight grew ten-fold over the entire 48 year period, despite accounting for less than 1% of total freight travel in 2008. Disconcertingly, the modes of travel and freight that consume the most energy per unit grew faster than those that use the least energy. Freight demand is estimated to grow to 27.5 billion tons in 2040 and to nearly 30.2 billion tons in 2050, requiring ever-increasing amounts of energy. In the coming decades, all modes of domestic freight transportation are expected to increase significantly, but truckings share, when measured in both tons and ton-miles, is projected to continue to grow at the expense of rail and waterborne freight (Grenzeback, Brown, Fischer, Hutson, Lamm, Pei, Vimmerstedt, Vyas, Winebrake, J.J., 2013). The cost and volatility of fuel prices in the past decades as well as increasing interest by shippers in decreasing fuel costs and carbon emissions from goods movement have led the motor carrier industry to search for better fuel efficiency. The U.S. Environmental Protection Agencys (EPAs) SmartWay Transport Partnership program works with the shipping and trucking community to reduce fuel use and emissions by promoting cleaner and more efficient engines and transmissions, more aerodynamically clean truck shapes (including nose cones, skirts and gap fairings), idle reduction technologies, low rolling resistant and single-wide tires, lower weight components and aluminum wheels, driver training, and more efficient routing and dispatching (EPA 2011). Railroads spend relatively less than trucks on fuel, due to the economies of scale and fuel savings by hauling very large volumes of freight over long distances. In 2008, railroads consumed approximately 320 Btu per ton-mile, compared to trucking, which used approximately 1,390 Btu per ton-mile. The difference in fuel use is reflected in the generally higher price of trucking services and the generally lower price of rail services, but the services provided by truck and rail also differ substantially in load capacity, routes and destinations served, frequency of service, transit time and reliability of travel time (Grenzeback, Brown, Fischer, Hutson, Lamm, Pei, Vimmerstedt, Vyas, Winebrake, J.J., 2013). Understanding trends in fuel consumption by mode of travel merits an analysis of public investment in transportation and transportation infrastructure. In the U.S., transportation infrastructure is funded primarily by user-related taxes and fees which support construction and maintenance. Congress created the Highway Trust Fund (HTF) in 1956 to provide money for construction and maintenance of the Interstate Highway System. In 1982, the Mass Transit Account (MTA) was created to invest in public transportation systems. Taxes paid by highway users are credited to the HTF and are used solely to pay for highway and mass transit improvements. Currently, a federal excise taxes on gasoline, gasohol, diesel fuel, compressed natural gas, and taxes on heavy trucks and truck tires provide revenue for this fund. Revenue from motor fuel taxes are divided between the Highway Account (HA) and the Mass Transit Account, while all revenues from heavy truck taxes are dedicated to the Highway Account. I n recent years, revenues have totaled $38 billion to $42 billion per year, with about $5 billion for the Mass Transit Account and the rest for the Highway Account. In 2015, Congress passed the $305 billion Fixing Americas Surface Transportation (FAST) Act, a five year plan to increase highway investment from $40 billion per year to $46.4 billion per year and increased public transportation funding from $10.7 billion per year to $12.6 billion per year (The American Road Transportation Builders Association, 2016). There is also a federal Airport and Airways Trust Fund, financed by fees on air travelers and taxes on aviation fuels.which finances airport improvements and the air traffic control system. State governments finance highway construction and maintenance through a variety of primarily user-related taxes and fees including taxes on gasoline and diesel fuel, vehicle registration fees, driver license fees, sales taxes on motor vehicles and heavy trucks, and traffic violation fines (The American Road Transportation Builders Association, 2017). Given the considerable and increasing concern regarding greenhouse gas emissions and global warming, understanding and adapting energy use seems increasingly urgent. The transportation sectors share of energy usage and carbon emissions makes it ripe for such analysis. While improvements in fuel efficiencies in all modes of transport, conservation efforts, and expansion of non-carbon based fuels provide hope for long term sustainability of transportation in the U.S., fundamental underlying factors make significant and meaningful improvement difficult to achieve. A U.S. landscape and infrastructure which was initially designed with an emphasis on rail-based public transportation has shifted over the last century to an auto-based transportation system. The Northeast United States is littered with bike paths that used to carry an extensive rail network that has been largely abandoned. Remaining public transit systems such those run by the Metropolitan Transit Authority have provided exte nsive, well utilized bus and subway service, and salvaged right of way remnants to recover rail for commuter service that is also heavily utilized. Unfortunately, high operating and capital costs combined with a dependence upon public funds make them difficult to sustain, particularly during periods of economic difficulty. Whats more, the cost of maintaining the nations extensive highway, road, and bridge infrastructure is becoming increasingly burdensome, crowding out funding for public transit systems. Similarly, shifts in freight transport modes to more carbon-intensive forms such as heavy trucking, and the rapid expansion of air travel over the last 60 years have led to an increase in fuel usage and carbon emissions in trends that are difficult to reverse. And while the introduction of CAFE requirements for autos and trucks have improved efficiency, increases in vehicle and passenger miles and vehicle weights have limited these benefits. The Energy Independence and Security Act of 2007 promises a future fleet of significantly more efficient cars and trucks by 2020, but this gain could be abandoned by the current Congress and President. Despite great advances in technology and awareness, sustainable transportation in the U.S. will require greater initiative on the part of the public and government. Until that occurs, transportation sustainability will remain elusive. References American Road Transportation Builders Association Fixing Americas Surface Transportation Act A Comprehensive Analysis 2016 http://www.artba.org/wp-content/uploads/2014/03/FASTAct_Publication.pdf Ben Steiner Professor Denise L. Mauzerall. Achieving Vehicle Fuel Efficiency: The CAFE Standards and Beyond May 10, 2006 Brownstone, David, and Thomas F. Golob. The Impact of Residential Density on Vehicle Usage and Energy Consumption Journal of Urban Economics, 2008 EPA. 2011. EPA and NHTSA Adopt First-Ever Program to Reduce Greenhouse Gas Emissions and Improve Fuel Efficiency of Medium-and Heavy-Duty Vehicles. EPA-420-F-11-031. Washington, DC: Grenzeback, L.R.; Brown, A.; Fischer, M.J.; Hutson, N.; Lamm, C.R.; Pei, Y.L.; Vimmerstedt, L.; Vyas, A.D.; Winebrake, J.J. (March 2013). Freight Transportation Demand: Energy-Efficient Scenarios for a Low-Carbon Future. Transportation Energy Futures Series. Prepared by Cambridge Systematics, Inc., and the National Renewable Energy Laboratory (Golden, CO) for the U.S. Department of Energy, Washington, DC. DOE/GO-102013-3711. 82 pp. Jay Young Infrastructure: Mass Transit in 19th- and 20th-Century Urban America Subject: 20th Century: Pre-1945, 20th Century: Post-1945, Urban History, History of Science and Technology Online Publication Date: Mar 2015 DOI: 10.1093/acrefore/9780199329175.013.28 PRINTED FROM the OXFORD RESEARCH ENCYCLOPEDIA, AMERICAN HISTORY (americanhistory.oxfordre.com). Oxford University Press USA, 2016. Kahn, M. E., 2000. The Environmental Impact of Suburbanization. Journal of Policy Analysis and Management 19, 569-586. Lee Schipper, Calanit Saenger, and Anant Sudardshan. Transport and Carbon Emissions in the United States: The Long View. Energies 2011, 4, 563-581; doi:10.3390/en4040563 Marilyn A. Brown, Frank Southworth, Andrea Sarzynski Shrinking The Carbon Footprint Of Metropolitan America. Metropolitan Policy Program at Brookings, May 2008 Metropolitan Transportation Authority. Greening Mass Transit Metro Regions: The Final Report of the Blue Ribbon Commission on Sustainability and the MTA, 2008 http://web.mta.info/sustainability/pdf/SustRptFinal.pdf Metropolitan Transportation Authority Adopted Budget February Financial Plan 2015 2018, 2015 http://web.mta.info/mta/budget/pdf/ Metropolitan Transportation Authority 2017 http://web.mta.info/mta/network.htm Mikhail Chester and Arpad Horvath (2008), Environmental Life-cycle Assessment of Passenger Transportation: A Detailed Methodology for Energy, Greenhouse Gas and Criteria Pollutant Inventories of Automobiles, Buses, Light Rail, Heavy Rail and Air v.2, UC Berkeley Center for Future Urban Transport, Mikhail Chester, Stephanie Pincetl, Zoe Elizabeth, William Eisenstein and Juan Matute (2013), Infrastructure And Automobile Shifts: Positioning Transit To Reduce Life-Cycle Environmental Impacts For Urban Sustainability Goals, Environmental Research Letters, Vol. 8, pp. (2013) National Highway Traffic Safety Administration. CAFE Overview. http://www.nhtsa.dot.gov/cars/rules/cafe/overview.htm, 2006. The American Road Transportation Builders Association (ARTBA) 2017 http://www.artba.org/ Theodore Caplow, Louis Hicks and Ben J. Wattenberg, The First Measured Century: An Illustrated Guide to Trends in America, 1900-2000, American Enterprise Institute Press, 2000, 2000 Todd Litman. Evaluating Public Transit As An Energy Conservation and Emission Reduction Strategy 17 April 2015 Victoria Transport Policy Institute Tri-State Transportation Campaign, Transportation 101: Whats up with the MTA? 2017 http://www.tstc.org/101/mta.php Union of Concerned Scientists, A Brief History of U.S. Fuel Efficiency Standards, 2017 http://www.ucsusa.org/clean-vehicles/fuel-efficiency/fuel-economy U.S. Department of Energy. Transportation Energy Data Book, Table 2.5, 2014. U.S. Department of Transportation, Federal Transit Administration, National Transit Database, http://www.ntdprogram.gov/ntdprogram/data.htm Apr. 26, 2016. US Energy Information Administration. Monthly Energy Review, April 2016

Sunday, January 19, 2020

Persuasive speech outline Essay

Believe it or not, according to choices.com, about 3,000,000 teens drop out of high school each year. That’s approximately 7,000 a day. This is not only hurting their success and the amount of money they can earn, but also the economy of the entire United States. Although some people might think every teen should be able to make the decision to drop out or stay in high school themselves, but teens need to realize the consequences that come with dropping out. When you’re is a young teen you may not be thinking about how your decisions can affect your future, without a high school education you cannot attend college, this will make it harder for you to find a high paying job, let alone a job at all. II. Need Step A. When a person is a young adolescent, they’re thinking about now, not the future, and they may regret the decision to drop out later. ââ€" Most of the teenagers that end up dropping out of high school are thinking about how much they don’t want to be at school or how they cannot handle the workload. ââ€" Sometimes teens have actual trouble in school and going to regular high school isn’t the best option, but they still need to get an education somehow, even if its online classes. In other cases, teens just don’t want to go to high school, and that’s their reasoning for dropping out. They aren’t thinking about their future. ââ€" According to State Representative Martha Waltz of Boston, few, if any, 16 year olds have the wisdom and knowledge to understand the lifelong consequences of ending their high school education at 16

Friday, January 10, 2020

Careercup Top 150 Questions

Cracking the Technical Interview by Gayle Laakmann, CareerCup. com 150 Technical Interview Questions and Solutions, written by experts. PLUS:  »  »  » Behind the scenes look at Google Microsoft, Amazon and Yahoo interviews. Interview War Stories: the view from the other side. Advice on how to approach 24 types of interview questions. Copyright Information Copyright 2009 by Gayle Laakmann All rights reserved exclusively for [email  protected] google. com www. careercup. com Table of Contents Introduction Practice Interviews. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 The Microsoft Interview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 The Amazon Interview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 The Google Interview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 The Yahoo Interview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Interview War Stories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Interview Questions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Applied Mathematics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Arrays & Hash Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Bit Manipulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Brain Teasers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 C / C++ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Counting and Combinatorics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Database. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Debugging Existing Code. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Games . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Java. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Large Scale & Memory Limits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Linked Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Low Level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Matrix. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 4  © 2009 CAREERCUP exclusively for [email  protected] google. com Table of ContentsChapter 15 Chapter 16 Chapter 17 Chapter 18 Chapter 19 Chapter 20 Chapter 21 Chapter 22 Chapter 23 Chapter 24 Networking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 Object Oriented Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Probability and Randomness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Software and System Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 Sorting and Searching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 Stacks and Queues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Threads And Locks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Trees and Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69  © 20 09 CAREERCUP 5 Practice Interviews Studying helps, but nothing can prepare you like the real thing. Each CareerCup interviewer has given over a hundred interviews at Google, Microsoft, or Amazon. To nail your interview, sit down with a trained interviewer and get their experienced feedback. See www. careercup. om/interview for more details. One Hour Interview with Real Interviewers Our interviewers will give you a real interview, just like you’d get at Google, Microsoft or Amazon. We’ll test you on the same types of questions that they do. We’ll grade you the same way they do. How can we do this? We’ve done over 100 interviews each for these companies. We’ve screened resumes. We’ve been part of their hiring committees. We know what they want. We’ll Also Give You†¦  »  »  »  »  » An . mp3 recording of your interview. Feedback on where you shined and where you struggled. Specific suggestions on how to improve.Instructions on how to approach tough problems Lessons on what interviewers look for in your code. A Typical Interview A typical interview includes a brief discussion of your resume and one or more technical questions. Each interview will do coding via a shared document. When the interview is completed, we’ll give you immediate feedback on how you did while it’s still fresh in your mind. Later that day, you’ll receive an mp3 of the interview to refresh your memory. Schedule Your Interview Today! See http://www. careercup. com/interview for pricing and details! 6  © 2009 CAREERCUP xclusively for [email  protected] google. com The Microsoft Interview Microsoft wants smart people. Geeks. People who are passionate about technology. You probably won’t be tested on the ins and outs of C++ APIs, but you will be expected to write code on the board. In a typical interview, you’ll show up at Microsoft at some time in the morning and fill out initial paper work. Youà ¢â‚¬â„¢ll have a short interview with a recruiter where he or she will give you a sample question. Be nice to your recruiters; while they may not evaluate your technical skills in depth, they can fight for you to be hired – or not.Throughout the day, you’ll move around from interviewer to interviewer, visiting each one in their office. Use this time to look around and get a feel for what the team culture. Interviewers are not allowed to share their feedback on you with other interviewers, due to concerns of bias. Nonetheless, many sources indicate that some feedback is shared. When you complete your interviews with a team, you might speak with a hiring manager. If so, that’s a great sign! It likely means that you passed the interviews with a particular team. It’s now down to the hiring manDefinitely Prepare: ager’s decision.You might get a decision that day, or it might be a week. After one week of no word from HR, send them a friendly email asking for a status update. â€Å"Why do you want to work for Microsoft? † In this question, Microsoft wants to see that you’re passionate about technology. A great answer might be, â€Å"I’ve been using Microsoft software as long as I can remember, and I’m really impressed at how Microsoft creates manages to create a product that is universally excellent. For example, I’ve been using Visual Studio recently to learn game programming, and it’s APIs are excellent. † Note how this shows a passion for technology!What’s Unique: You’ll only reach the hiring manager if you’ve done well, but if you do, that’s a great sign! [email  protected] google. com  © 2009 CAREERCUP 7 The Amazon Interview Amazon’s recruiting process usually begins with one or two phone screens in which you interview with a specific team. The engineer who interviews you will usually ask you to write simple code and read it aloud on the pho ne. They will ask a broad set of questions to explore what areas of technology you’re familiar with. Next, you fly to Seattle for four or five interviews with one or two teams which have selected you based on your resume and phone interviews.You will have to code on a whiteboard, and some interviewers will stress other skills. Interviewers are each assigned a specific area to probe and may seem very different from each other. They can not see other feedback until they have submitted their own and they are discouraged from discussing it until the hiring meeting. Amazon’s â€Å"bar raiser† interviewer is charged with keeping the interview bar high. They attend special training and will interview candidates outside their group in order to balance out the group itself.If one interview seems significantly harder and different, that’s most likely the bar raiser. This person has both significant experience with interviews Definitely Prepare: and veto power in th e hiring decision. You Amazon is a web-based company, and will meet with your recruiter at the end of the day. that means that they care about scale. Once your interviewers have entered their feedback, they will meet to discuss it. They will be the people making the hiring decision. While Amazon’s recruiters are excellent at following up with candidates, occasionally there are delays.If you haven’t heard from Amazon within a week, we recommend a friendly email. Make sure you prepare questions in â€Å"Large Scale. † You don’t need a background in distributed systems to answer these questions. Just answer the question for one system and then think, how does your solution change with multiple computers? Additionally, Amazon tends to ask a lot of questions that are based in mathematics and randomness. What’s Unique: The Bar Raiser, who is brought in from a different team to keep the bar high. 8  © 2009 CAREERCUP exclusively for [email  protected] google. com The Google InterviewThere are many scary stories floating around about Google interviews, but it’s mostly just that: stories. The interview is not terribly different from Microsoft’s or Amazon’s. However, because Google HR can be a little disorganized, we recommend being proactive in communication. A Google engineer performs the first phone screen, so expect tough technical questions. On your onsite interview, you’ll interview with four to six people, one of whom will be a lunch interviewer. Interviewer feedback is kept confidential from the other interviewers, so you can be assured that you enter each interview with blank slate.Your lunch interviewer doesn’t submit feedback, so this is a great opportunity to ask honest questions. Written feedback is submitted to a hiring committee of engineers to make a hire/no-hire recommendation. Feedback is typically broken down into four categories (Analytical Ability, Coding, Experience and Commun ication) and you are given a score from 1. 0 to 4. 0 overall. The hiring committee understands that you can’t be expected to excel in every interview, but if multiple people raise the same red flag (arrogance, poor coding skills, etc), that can disqualify you.A hiring committee typically wants to see one interviewer who is an â€Å"enthusiastic endorser. † In other words, a packet with scores of 3. 6, 3. 1, 3. 1 and 2. 6 is better than all 3. 1’s. Your phone screen is usually not a factor in the final decision. The Google hiring process can be slow. If you don’t hear back within one week, politely ask your recruiter for an update. A lack of response says nothing about your performance. Definitely Prepare: As a web-based company, Google cares about how to design scalable system. So, make sure you prepare question from â€Å"Large Scale. Additionally, many Google interviewers will ask questions involving bit shifting and Bit Manipulation, so please brush u p on these questions. What’s Different: Your interviewers do not make the hiring decision. Rather, they enter feedback which is passed to a hiring committee. The hiring committee recommends a decision which can be—though rarely is—rejected by Google executives. [email  protected] google. com  © 2009 CAREERCUP 9 The Yahoo Interview Resume Selection & Screening: While Yahoo tends to only recruit at the top 10 – 20 schools, other candidates can still get interviewed throughYahoo’s job board (or – better yet – if they can get an internal referral). If you’re one of the lucky ones selected, your interview process will start off with a phone screen. Your phone screen will be with a senior employee (tech lead, manager, etc). Onsite Interview: You will typically interview with 6 – 7 people on the same team for 45 minutes each. Each interviewer will have an area of focus. For example, one interviewer might focus on databases, while another interviewer might focus on your understanding of computer architecture.Interviews will often be composed as follows: 5 minutes: General conversation. Tell me about yourself, your projects, etc. 20 minutes: Coding question. For example, implement merge sort. 20 minutes: System design. For example, design a large distributed cache. These questions will often focus on an area from your past experience or on something your interviewer is curDefinitely Prepare: rently working on. Decision: At the end of the day, you will likely meet with a Program Manager or someone else for a general conversation (product demos, concerns about the company, your competing offers, etc).Meanwhile, your interviewers will discuss your performance and attempt to come to a decision. The hiring manager has the ultimate say and will weigh the positive feedback against the negative. If you have done well, you will often get a decision that day, but this is not always the case. There can be many rea sons that you might not be told for several days – for example, the team may feel it needs to interview several other people. Yahoo, almost as a rule, asks questions about system design, so make sure you prepare that. They want to know that you can not only write code, but that you can design software.Don’t worry if you don’t have a background in this – you can still reason your way through it! What’s Unique: Your phone interview will likely be performed by someone with more influence, such as a hiring manager. Yahoo is also unusual in that it often gives a decision (if you’re hired) on the same day. Your interviewers will discuss your performance while you meet with a final interviewer. 10  © 2009 CAREERCUP exclusively for [email  protected] google. com Interview War Stories The View from the Other Side of the Front, by Peter BaileyFor the eager candidate getting ready for a big job interview, Cracking the Technical Interview is an inva luable reference, containing excellent coaching and practice material that gives you an inside edge on the interview process. However, as you go over your old data structures textbook and drill yourself with homemade discrete math flash cards, don’t make the mistake of thinking of the interview as a kind of high-pressure game show – that if you just give all the right answers to the tech questions, you too can win a shiny new career (this week, on Who Wants to be a Software Engineer? While the technical questions on computer science obviously are very important, the most important interview question is not covered in this guidebook. In fact, it’s often the single most important question in your interviewers’ minds as they grill you in that little room. Despite the questions on polymorphism and heaps and virtual machines, the question they really want an answer to is †¦ Would I have a beer with this guy? Don’t look at me like that, I’m s erious! Well, I may be embellishing a little, but hear me out.The point I’m trying to make is that interviewers, especially those that you might work with, are probably just as anxious as you are. Nonsense, you say, as a nervous young professional, checking your pants for lint while you bite your fingernails, waiting for the interview team to show up in the front lobby. After all, this is the big leagues, and these guys are just waiting for you to slip up so they can rip you apart, laugh at your shriveled corpse, and grind your career dreams to dust beneath the heels of their boots. Right? Just like pledge week, back in freshman year?Right? Hmmm? Nothing could be further from the truth. The team of developers and managers interviewing you have their own tasks and projects waiting for them, back at their own desks. Believe me, they’re hoping that every interview is going to be the last one. They’d rather be doing anything else. There might be a batch of upcoming projects looming on their calendar, and they need more manpower if they’re going to even have a prayer of making their deadline. But the last guy the agency sent over was a complete flake who railed about Microsoft’s evil for half an hour.And the one before that couldn’t code his way out of a wet paper bag without using copy-and-paste. Sheesh, they think, where is HR getting these guys? How hard can it be to hire one lousy person? While they may not literally be asking themselves â€Å"Would I have a beer with this guy (or gal)†, they are looking to see how well you would fit in with the team, and how you would affect team chemistry. If they hire you, you’re all going to be spending a lot of time together for 11  © 2009 CAREERCUP exclusively for [email  protected] google. com Interview War Stories he next few months or years, and they want to know that they can rely on you – and maybe even come to consider you a friend and colleague. The y want to know that they can depend on you. And as tempting as it might be to them to just settle and hire the next person who comes along, they know better. In many companies, particularly large U. S. companies, it’s harder to fire somebody than it is to hire somebody. (Welcome to the US: Land of Lawsuits! ) If they hire a dud, they’re stuck with them. That person might be unproductive or, even worse, a drain on the team’s productivity.So they keep interviewing, until they find the right person. They know that it’s better to reject a good candidate than hire a bad one. Some of those interviews are real doozies. Once you’ve interviewed long enough, you build up a repertoire of horror stories. War stories, of candidates who looked promising on paper until the interviews went terribly, terribly wrong. These war stories are not only humorous – they’re also instructive. Names have been changed to protect the innocent – or downright ridiculous. zyxwvutsrqponmlkjihgfedcba ZYXWVUTSRQPONMLKJIHGFEDCBA [email  protected] google. comkjlslen 0987654321+_=-)(*&^%$#@! ~[]{};’:†,. /? ABCDEZYXW abcdeyxw asdsasdFGJwRXGs75rpqR3oFWHMJHp-RQ. L–LqJ. H-rsdkktNNsasdf [email  protected] google. com [email  protected] google. com  © 2009 CAREERCUP 12 Interview War Stories Pop Divas Need Not Apply Leonard was a very promising C++ coder, three years out of college, with a solid work history and an impressive skill set. He proved on the phone screen that he was above-average technically, and so he was invited in for an interview. We needed a savvy C++ person to work on a piece of middleware that interfaced with our database, and Leonard seemed like a sure fit.However, once we started talking to him, things went south in a hurry. He spent most of the interview criticizing every tool and platform that we questioned him on. We used SQL Server as our database? Puhleease. We were planning to switch to Oracle s oon, right? What’s that? Our team used Tool A to do all our coding in? Unacceptable. He used Tool B, and only Tool B, and after he was hired, we’d all have to switch to Tool B. And we’d have to switch to Java, because he really wanted to work with Java, despite the fact that 75 percent of the codebase would have to be rewritten.We’d thank him later. And oh, by the way, he wouldn’t be making any meetings before ten o’clock. Needless to say, we encouraged Leonard to seek opportunities elsewhere. It wasn’t that his ideas were bad – in fact, he was â€Å"technically† right about many things, and his (strong) opinions were all backed with solid fact and sound reason (except for the ten o’clock thing – we think he may have just been making a â€Å"power play†. ) But it was obvious that, if hired, Leonard wasn’t going to play well with others – he would have been toxic kryptonite for team chem istry.He actually managed to offend two of the team members during the forty-five minutes of his interview. Leonard also made the mistake of assuming that Code Purity and Algorithm Beauty were always more important than a business deadline. In the real world, there are always compromises to be made, and knowing how to work with the business analysts is just as important as knowing how to refactor a blob of code. If Leonard would not have gotten along with other IT people, he definitely wouldn’t have gotten along with the business folks. Maybe you can get away ith hiring a Leonard if he’s one of the best ten coders in the world (he wasn’t). But he was the classic failure example for the â€Å"Would you have a beer with this guy? † test. 13  © 2009 CAREERCUP exclusively for [email  protected] google. com Interview War Stories What We Have Here is Failure to Communicate Trisha was a mid-level Java developer with a solid history of middleware and JSP work on her resume. Since she was local, we invited her in for an interview without a phone screen. When we started asking her questions, it quickly became obvious that Trisha was a woman of few words.Her answers were short and often composed of â€Å"yes/no† responses, even to questions that were meant to start a dialog. Once she did start opening up, I still wasn’t sure she was actually talking. I saw her lips moving, and heard mumbling sounds coming out, but it wasn’t anything that sounded like English. I’m not sure if Trisha was nervous or just shy, but either way, I had to ask her numerous times to repeat herself. Now I was the one getting nervous! I didn’t want to be the guy who â€Å"ruined† the interview, so I pulled back on my questions. The other folks in the room and I exchanged uneasy glances.We felt like we were on a Seinfeld episode. It was almost impossible to understand Trisha, and when she did speak up, her halting, uncertain, c onfused speech patterns made us feel more like code breakers than interviewers. I am not exaggerating to say that I did not understand a single answer she gave during the interview. Knowing, alone, isn’t good enough. You’re going to be talking with other technical people, and you’re going to be talking to customers, and sales reps, and Betty from Marketing. You will write something eventually, whether it’s documentation, or a project plan, or a requirements document.The word processor might correct your spelling, but it won’t correct your lousy writing. The ability to communicate thoughts and ideas, in a clear, concise manner, is an absolutely invaluable skill that employers seek. The same goes for verbal communication. I used to work with a co-worker who doubled the length of every meeting he was in, because he could not answer a question in less than ten minutes. â€Å"Hey, Dennis, what time is it? † â€Å"Well, that’s kind of inte resting, because I just happened to be reading an article on cesium clocks and leap seconds and the history of the Gregorian Calendar and †¦ I’ll spare you the rest. [email  protected] google. com  © 2009 CAREERCUP 14 Interview War Stories You Can Count on Me, Just Not Until Early Afternoon Ahhh, 1999. The crest of the dot-com bubble, and the tightest labor market in history. Our company was racing to expand its development team, and we would have hired a German Shepherd if it knew HTML. Instead, we wound up hiring Ian. We should’ve hired the dog. Ian was a cheerful, friendly guy who had a gift of natural charisma. He got along fantastically with all of the interviewers, and seemed very intelligent.Skillwise, he was adequate. He hadn’t written a single line of computer code outside of his college courses, and didn’t even have his own e-mail address. When we gave Ian the chance to ask us questions at the end of the interview, he asked about flexib le work hours, and how soon he could take vacation time. Instead of showing an interest in the career opportunities, or in company’s growth prospects, he asked whether he could take the all-you-could-drink break room soda home with him. The questions grew more bizarre from there. Ian was very interested in our Legal Assistance benefit.He wanted to know if it covered the cost of filing lawsuits, if it covered him if he got sued himself, if it applied to any lawsuits he currently was involved in, and if he could â€Å"theoretically† use it to sue the company itself. He also asked us if he could use it to help him â€Å"fix† some unpaid speeding tickets. In any other year, that should have been it for Ian right there. But, in 1999, we were hiring anybody who was even remotely competent. Ian collected paychecks from us for eighteen months, and he was about as productive as a traffic cone.He usually sauntered into the office around ten-thirty with some sort of lame e xcuse (by my count, he had to wait for the cable guy sixteen times in a six-month period). He usually killed the morning by answering e-mail and playing ping-pong, before breaking for a two-hour lunch. After lunch, it was more pingpong, and maybe an hour of writing bad code, before bolting the office sometime around three. He was the dictionary definition of unreliable. Remember, your potential future team members need to know that they can rely on you. And they need to know that you won’t need constant supervision and hand-holding.They need to know that you’re able to figure things out on your own. One of the most important messages that you, as a candidate, can convey in your interview is hiring me will make your lives easier. In fact, this is a large part of the reason for the famously difficult interview questions at places like Amazon and Google; if you can handle that kind of unpredictable pressure in an interview, then you stand a good chance of being useful to them on real projects. To cite a more subtle example, once I was on a four person team that was desperately trying to recruit new members to help work on an old pile of software.It was a real mess; we’d inherited a nasty ball of spaghetti, and we needed people who could jump in, figure things out, and be part of the solution. There was one very smart fellow, Terry, who would have been a great asset for our team – 15  © 2009 CAREERCUP exclusively for [email  protected] google. com Interview War Stories but we didn’t hire him, despite his excellent technical and personal skills. It was because he insisted on meticulous written instructions for every step of the coding process.He wasn’t going to make a suggestion or take any initiative – or blow his nose, for that matter – without a mile-long audit trail and a dozen signatures. While he insisted that he worked that way for reasons of quality (a defensible point), we got the impression that it had more to do with butt-covering, and we simply didn’t have the time for that kind of bureaucracy. Terry would have been an excellent fit in a government or aerospace IT department, something that required ISO 9000 procedures. But he would have never fit into our team; he would have been a burden, not an asset.[email  protected] google. com  © 2009 CAREERCUP 16 Interview War Stories My Spider Senses are Tingling I can think of lots of interviews that just fell into the general category of weird and uncomfortable:  »  »  »  »  »  » The Java coder who apparently considered hygiene optional, and had the interview room smelling like week-old blue cheese within ten minutes (my eyes were watering). The young fresh-out-of-college graduate with a tongue piercing that kept tick-tick-ticking against his teeth as he talked (after half an hour, it was like Chinese water torture).The girl who wore an iPod through her interview, with the volume turned loud enough that s he actually had to ask the interviewers to repeat themselves a few times. The poor, hyper-nervous fellow who was sweating like a marathon runner for half an hour. The girl who wore a T-shirt with an obscene political slogan to her interview. The guy who asked (seriously) at the end of his interview, â€Å"So, are there any hot chicks in our department? † Those are the interviews where we politely thank the people for their time, shake their hand (except for the sweaty guy), then turn to each other after the door closes and ask – did that really just happen?Nobody is saying that you have to be a bland, boring robot in a Brooks Brothers suit and tie. Remember, the interview team wants you to be â€Å"the one†, but they’re also very worried about the possibility that you’re going to be more of a distraction than an asset. Don’t talk or behave in a way that will set off their early warning radar. Whether or not somebody bothers to behave profess ionally during an interview is often a very good indicator of what kind of teammate they’re going to be. Rudimentary social skills are part of the answer to â€Å"Would I have a beer with this guy? , or at least, â€Å"Will I mind working next to this guy for six months? † From the interviewer’s point of view, they’re picking a neighbor that they’re going to live and work with 200 hours per week for foreseeable future. Would you really want a neighbor that smelled like a hog rendering plant? 17  © 2009 CAREERCUP exclusively for [email  protected] google. com Interview Questions Study hard, practice and good luck! How this Book is Organized The interview questions in this book are grouped into categories, with a page preceding each category offering advice and other information.Within each category, the questions are sorted by approximate level of difficulty. Solutions for all questions are at the back. How to Use this Book An effective intervi ew is not about memorizing interview questions, but rather, about applying an understanding of concepts and demonstrating your problem solving ability. Use these questions to find the gaps in your knowledge and to learn problem solving techniques that you can apply to new questions. Advice for Devs Your interview will be most likely not be conducted on a computer. Thus, when you practice the problems in this book, we recommend writing them down on paper first.Then, type your solution into the computer exactly as you wrote it and see how you did. Special Advice for SDETs Not only do SDETs have to be great testers, but they also have to be great coders. Thus, we recommend that you complete the coding problems in this book with an eye for testing them. Even when the question doesn’t specifically ask it, you should ask yourself, â€Å"how would I test this? † Remember: any problem can be an SDET problem. Suggestions and Corrections While we do our best to ensure that all t he solutions are correct, mistakes will be made. Moreover, sometimes there is no â€Å"right† answer.If you’d like to offer a suggestion or correction, please submit it at http:// xrl. us/ccbook [email  protected] google. com  © 2009 CAREERCUP 18 Applied Mathematics How to Approach: CHAPTER-1 Many of the so-called â€Å"Applied Mathematics† problems read as brain teasers at first, but can be worked through in a logical way. Just remember to rely on the rules of mathematics to develop an approach, and then to carefully translate that idea into code. Example: Given two numbers m and n, write a method to return the first number r that is divisible by both (e. g. , the least common multiple).The Approach: What does it mean for r to be divisible by m and n? It means that all the primes in m must go into r, and all primes in n must be in r. What if m and n have primes in common? For example, if m is divisible by 3^5 and n is divisible by 3^7, what does this mean a bout r? It means r must be divisible by 3^7. The Rule: For each prime p such that p^a m (e. g. , m is divisible by p^a) and p^b n, r must be divisible by p^max(a, b) The Algorithm: Define q to be 1. for each prime number p less than m and n: find the largest a and b such that p^a m and p^b n let q = q * p^max(a, b) return qThings to Watch Out For: 1. 2. Be careful with the difference in precision between floats vs. doubles. Don’t assume that a value (such as the slope of a line) is an int unless you’ve been told so. Prime Numbers 1. 2. Every number can be written as a product of primes. Example: 504 = 2^3 * 3^2 * 7 f x is divisible by y, then every prime factor in y must be found in x. Example: If 504 is divisible by y, then y could be 168 (2^3 * 3 * 7), or 21 (3 * 7), or 4 (2^2), or many other things. Y could not, however, be equal to 10 (5 * 2), since 5 is not found in x 19  © 2009 CAREERCUP exclusively for [email  protected] oogle. com Applied Mathematics CH APTER-1 1. 1 Write a method to generate the nth Fibonacci number _______________________________________________________________________pg 69 1. 2 Write a method to count the number of 2’s between 0 and n. EXAMPLE input: 35 output: 14 [list of 2’s: 2, 12, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 32] _______________________________________________________________________pg 70 1. 3 Given two lines on a Cartesian plane, determine whether the two lines would intersect. _______________________________________________________________________pg 74 1. Given two squares on a two dimensional plane, find a line that would cut these two squares in half. _______________________________________________________________________pg 75 1. 5 Write an algorithm which computes the number of trailing zeros in n factorial. EXAMPLE input: 11 output: 2 (11! = 39916800) _______________________________________________________________________pg 76 1. 6 Write a function that adds two numbers. You sh ould not use + or any arithmetic operators. _______________________________________________________________________pg 77 1. Write a method to implement *, – , / operations. You should use only the + operator. _______________________________________________________________________pg 79 1. 8 Design an algorithm to find the kth number such that the only prime factors are 3, 5, and 7. _______________________________________________________________________pg 81 1. 9 A circus is designing a tower routine consisting of people standing atop one another’s shoulders. For practical and aesthetic reasons, each person must be both shorter and lighter than the person below him or her.Given the heights and weights of each person in the circus, write a method to compute the largest possible number of people in such a tower. EXAMPLE: Input(ht, wt) : (65, 100) (70, 150) (56, 90) (75, 190) (60, 95) (68, 110) Output: The longest tower is length 6 and includes from top to bottom: (56,90) ( 60,95) (65,100) (68,110) (70,150) (75,190) _______________________________________________________________________pg 84 1. 10 Given a two dimensional graph with 6000 points on it, find a line which passes the most number of points. ______________________________________________________________________pg 86  © 2009 CAREERCUP 20 Arrays & Hash Tables How to Approach CHAPTER-2 While not all problem can be solved with a hash table, a shocking number of interview problems can be. Keeping track of which items you’ve already seen? Hash table. Needing a way to efficiently look up data? Hash table. The list goes on and on. You should become very extremely comfortable with hash tables: how to implement them and how to use them. Hash Tables A hash table is a data structure that associates keys with values for O(1) lookup.Hash tables are frequently, though not always, implemented with an array. A simple implementation of a hash table that hashes a string to a Person is as follows: class HashTable { Person[] data = new Person[MAX_HASH_KEY]; int getId(string s) { /* return a key for this string */ }; bool contains(string key) { int id = getId(key); if (data247) return true; return false; } void insert(string s, Person p) { data[getId(s)]; } Note: This implementation does not handle collision. Collisions can be handled by â€Å"chaining† (eg, using a linked list), or a variety of other ways. Vector (Dynamically Resizing Array):A vector, or a dynamically resizing array, is an array that resizes itself as needed while still providing O(1) access. A typical implementation is that when a vector is full, the array doubles in size. Each doubling takes a long time (O(n)), but happens so rarely that its asymptotic time is still O(1). 21  © 2009 CAREERCUP exclusively for [email  protected] google. com Arrays CHAPTER-2 2. 1 Suppose we have an array a1, a2, †¦ , an, b1, b2, †¦ , bn. Implement an algorithm to change this array to a1, b1, a2, b2, †¦ , an , bn. _______________________________________________________________________pg 87 . 2 Design an algorithm and write code to remove the duplicate characters in a string without using any additional buffer. NOTE: One or two additional variables is fine. An extra copy of the array is not. FOLLOW UP Write the test cases for this method. _______________________________________________________________________pg 88 2. 3 You are given an array of integers (both positive and negative). Find the continuous sequence with the largest sum. Return the sum. EXAMPLE input: {2, -8, 3, -2, 4, -10} output: 5 [ eg, {3, -2, 4} ] _______________________________________________________________________pg 90 2. Design an algorithm to find all pairs of integers within an array which sum to a specified value. _______________________________________________________________________pg 91 2. 5 An array A[1†¦ n] contains all the integers from 0 to n except for one number which is missing. In this problem, we cannot access an entire integer in A with a single operation. The elements of A are represented in binary, and the only operation we can use to access them is â€Å"fetch the jth bit of A[i]†, which takes constant time. Write code to find the missing integer. Can you do it in O(n) time? ______________________________________________________________________pg 93  © 2009 CAREERCUP 22 Bit Manipulation How to Approach: CHAPTER-3 Bit manipulation can be a scary thing to many candidate, but it doesn’t need to be! If you’re shaky on bit manipulation, we recommend doing a couple arithmetic-like problems to boost your skills. Compute the following by hand: 1010 – 0001 1010 > 1 1010 + 0110 1001^1001 0xFF – 1 1100^1010 1001 & 1100 0xAB + 0x11 If you’re still uncomfortable, examine very careful what happens when you do subtraction, addition, etc in base 10. Can you repeat that work in base 2? Things to Watch Out For: It’s really easy to make m istakes on these problem so, be careful! When you’re writing code, stop and thinking about what you’re writing every couple lines. When you’re done, check through your entire code. If you’re bit shifting, what happens when the digits get shifted off the end? Make sure to think about this case to ensure that you’re handling it correctly. 1 & 0 = 0 1 | 0 = 1 1 ^ 0 = 1 0 & 1 = 0 0 | 1 = 1 0 ^ 1 = 1 1 & 1 = 1 1 | 1 = 1 1 ^ 1 = 0  » And (&): 0 & 0 = 0 Or (|): 0 | 0 = 0 Xor (^): 0 ^ 0 = 0 Left Shift: x > 2 = 00000110 00011001 >> 4 = 00000001 exclusively for [email  protected] oogle. com 23  © 2009 CAREERCUP Bit Manipulation CHAPTER-3 3. 1 Write a function int BitSwapReqd(int A, int B) to determine the number of bits required to convert integer A to integer B. EXAMPLE: _______________________________________________________________________pg 94 3. 2 If you were to write a program to swap odd and even bits in integer, what is the minimum number of in structions required? (eg, bit 0 and bit 1 are swapped, bit 2 and bit 3 are swapped, etc). EXAMPLE: _______________________________________________________________________pg 95 3. 3 Write a method which finds the maximum of two numbers.You should not use if-else or any other comparison operator. EXAMPLE: _______________________________________________________________________pg 96 3. 4 Given a (decimal – e. g. 3. 72) number that is passed in as a string, print the binary representation. If the number can not be represented accurately in binary, print â€Å"ERROR† _______________________________________________________________________pg 97 3. 5 You are given two 32-bit numbers, N and M, and a two bit positions, i and j. Write a method to set all bits between i and j in N equal to M (eg, M becomes a substring of N located at i and starting j).EXAMPLE: _______________________________________________________________________pg 99 3. 6 Write a function to swap a number in plac e without temporary variables. ______________________________________________________________________pg 100 3. 7 Given an integer, print the next smallest and next largest number that have the same number of 1 bits in their binary representation. ______________________________________________________________________pg 101 input: N = 10000000000, M = 10101, i = 2, j = 6 output: N = 10001010100 Input: 5, 10 Output: 10 Input: 10001010 Output: 01000101 Input: 31, 14 Output: 2 2009 CAREERCUP 24 Brain Teasers Do companies really ask brain teasers? CHAPTER-4 While many companies, including Google and Microsoft, have policies banning brain teasers, interviews still sometimes ask these tricky questions. Advice on Approaching Brain Teasers Don’t panic when you get a brain teaser. Interviewers want to see how you tackle a problem; they don’t expect you to immediately know the answer. Start talking, and show the interviewer how you approach a problem. In many cases, you will also find that the brain teasers have some connection back to fundamental laws or theories of computer science.If you’re stuck, we recommend simplifying the problem. Solve it for a small number of items or a special case, and then see if you can generalize it. Example: You are trying to cook an egg for exactly 15 minutes, but instead of a timer, you are given two ropes which burn for exactly 1 hour each. The ropes, however, are of uneven densities – eg, half the rope length-wise might take only 2 minutes to burn. The approach: 1. 2. 3. 4. 5. 6. 7. What is important? Numbers usually have a meaning behind them. The fifteen minutes and two ropes were picked for a reason. Simplify!You can easily time one hour (burn just one rope). Now, can you time 30 minutes? That’s half the time it takes to burn one rope. Can you burn the rope twice as fast? Yes! (Light the rope at both ends. ) You’ve now learned: (1) You can time 30 minutes. (2) You can burn a rope that takes X minutes in just X/2 minutes by lighting both ends. Work backwards: if you had a rope of burn-length 30 minutes, that would let you time 15 minutes. Can you remove 30 minutes of burn-time from a rope? You can remove 30 min of burn-time from Rope #2 by lighting Rope #1 at both ends and Rope #2 at one end.Now that you have Rope #2 at burn-length 30 min, start cooking the egg and light rope #2 at the other end. When Rope #2 burns up, your egg is done! 25  © 2009 CAREERCUP exclusively for [email  protected] google. com Brain Teasers CHAPTER-4 4. 1 Add arithmetic operators (plus, minus, times, divide) to make the following expression true: 3 1 3 6 = 8. You can use any parentheses you’d like. ______________________________________________________________________pg 103 4. 2 You have a 5 quart jug and 3 quart jug, and an unlimited supply of water (but no measuring cups). How would you come up with exactly four quarts of water?NOTE: The jugs are oddly shaped, such that filling up exactly ‘half’ of the jug would be impossible. ______________________________________________________________________pg 104 4. 3 There is a building of 100 floors. If an egg drops from the Nth floor or above it will break. If it’s dropped from any floor below, it will not break. You’re given 2 eggs. Find N, while minimizing the number of drops for the worse case. ______________________________________________________________________pg 105 4. 4 A bunch of men are on an island. A genie comes down and gathers everyone together and places a magical hat on some people’s heads (e. . , at least one). The hat is magical: it can be seen by other people, but not by the wearer of the hat himself. To remove the hat, you must dunk yourself underwater at exactly midnight. If there are n people and c hats, how long does it take the men remove the crowns? The men cannot tell each other (in any way) that they have a hat. FOLLOW UP Prove that your solution is correct . ______________________________________________________________________pg 106 4. 5 There are 100 closed lockers in a hallway. A man begins by opening all the 100 lockers. Next, he closes every second locker.Then he goes to every third locker and closes it if it is open or opens it if it is closed (eg, he toggles every third locker). After his 100th pass in the hallway, in which he toggles only locker number 100, how many lockers are open? ______________________________________________________________________pg 108  © 2009 CAREERCUP 26 C / C++ How To Approach: CHAPTER-5 A good interviewer won’t demand that you code in a language you don’t profess to know. Hopefully, if you’re asked to code in C++, it’s listed on your resume. If you don’t remember all the APIs, don’t worry—your interviewer probably doesn’t either!We do recommend, however, studying up on basic C++ syntax. Pointer Syntax int p = v = Foo int *p; // Defines pointe r. &q; // Sets p to address of q. *p; // Set v to value of q. *f = new Foo(); // Initializes f. k = f->x; // Sets k equal to the value of f’s member variable. C++ Class Syntax class MyClass { private: double var; public: MyClass(double v) {var = v; } ~MyClass() {}; double Update(double v); }; double Complex::Update(double v) { var = v; return v; } C++ vs Java: A very common answer in an interview is â€Å"describe the differences between C++ and Java. If you aren’t comfortable with any of these concepts, we recommend reading up on them. 1. 2. 3. 4. 5. 6. Java runs in a virtual machine. C++ natively supports unsigned arithmetic. In Java, parameters are always passed by value (or with objects, their references are passed by value). In C++, parameters can be passed by value, pointer, or by reference. Java has built-in garbage collection. C++ allows operator overloading. C++ allows multiple inheritance of classes. Thought: Which of these might be considered strengths or w eaknesses of C++ or Java? Why? In what cases might you choose one language over the other? 7  © 2009 CAREERCUP exclusively for [email  protected] google. com C / C++ CHAPTER-5 5. 1 What is the difference between a struct and a class? Where would you use each? ______________________________________________________________________pg 109 5. 2 Write a method to print the last ten lines of an input file using C. ______________________________________________________________________pg 110 5. 3 Compare and contrast a hash table vs. an STL map. How is a hash table implemented? If the number of inputs are small, what data structure options can be used instead of a hash table? _____________________________________________________________________pg 111 5. 4 How do a virtual functions work in C++? ______________________________________________________________________pg 112 5. 5 What is the difference between deep copy and shallow copy? Explain how you would use each. _______________________ _______________________________________________pg 113 5. 6 In a class, the ‘new’ operator is used for allocating memory for new objects. Can this be done using malloc? If yes, how? If no, why not? Are there any restrictions associated with the use of malloc in place of new? _____________________________________________________________________pg 114 5. 7 What is the significance of the keyword â€Å"volatile† in C? ______________________________________________________________________pg 115 5. 8 What is name hiding in C++? ______________________________________________________________________pg 116 5. 9 Why does a destructor in base class need to be declared virtual? ______________________________________________________________________pg 117 5. 10 Write a method that takes a pointer to a Node structure as a parameter and returns a complete copy of the passed-in data structure.The Node structure contains two pointers to other Node structures. For example, the meth od signature could look like so: Node* Copy(Node* root); Note: Do not make any assumptions about the data structure – it could be a tree, linked list, graph etc. Feel free to choose the language you are most comfortable with (C# or C++ are preferred) In addition to the function code, write a complete suite of unit tests for this problem. ______________________________________________________________________pg 119 5. 11 Write a smart pointer (smart_ptr) class. _____________________________________________________________________pg 120  © 2009 CAREERCUP 28 Counting and Combinatorics How to Approach: CHAPTER-6 While some problems in this chapter are simply coding problems, understanding the mathematical solution will help you â€Å"sanity check† your solution. For example, if you know how many subsets there are of a set, you can check to make sure that your algorithm to print all subsets will give you the correct number of subsets. When computing the number of ways of d oing something, think about doing it step by step. The following two examples will illustrate this technique.How many ways can you pick k elements from n elements, if order matters and elements are not replaced? Eg – if we pick 5 different letters, â€Å"abcde† is considered to be different from â€Å"edcba†. The Approach: We have n choices for the first draw. For the second draw, we only have n-1 since one is removed. Then n-2, †¦. When we draw k times, we get down to n-k+1 choices on the last draw. So, n * (n-1) * (n-2)*†¦ * (n-k+1) The Solution: n! / (n-k)! How many ways can you pick k elements from n elements, if order does not matter and elements are not replaced? We’re now just throwing letters into a bucket. Picking â€Å"a, b† is the same thing as â€Å"b, a†.The Approach: If you compare this problem to the previous one, we’ve essentially double (or triple, quadruple, etc) counted items. That is, â€Å"abc†, à ¢â‚¬Å"acb†, â€Å"bac†, â€Å"bca†, â€Å"cab†, â€Å"cba† were all considered unique in the previous solution but now they’re considered the same. Just how many times has â€Å"abc† been included (in its other forms)? 3! times, since there are 3! ways of rearranging â€Å"abc†. In fact, every item has been included 3! times, when it should have been included just once! So, we divide our previous answer by 3! (or, more generally, k! ). We now get n! / (k! * (n-k)! ). This solution is often written as n-choose-k or nCk. 9  © 2009 CAREERCUP exclusively for [email  protected] google. com Counting and Combinatorics CHAPTER-6 6. 1 In how many different ways can a cube be painted by using three different colors of paint? ______________________________________________________________________pg 121 6. 2 Imagine a robot sitting on the upper left hand corner of an NxN grid. The robot can only move in two directions: right and down. Ho w many possible paths are there for the robot? FOLLOW-UP Imagine certain squares are â€Å"off limits†, such that the robot can not step on them. Design an algorithm to print all possible paths for the robot. _____________________________________________________________________pg 122 6. 3 Write a method to compute all permutations of a string. ______________________________________________________________________pg 123 6. 4 Implement an algorithm to print all valid (eg, properly opened and closed) combinations of n-pairs of parentheses. EXAMPLE: input: 3 (eg, 3 pairs of parentheses) output: ()()(), ()(()), (())(), ((())) ______________________________________________________________________pg 124 6. 5 Write a method that returns all subsets of a set. ______________________________________________________________________pg 125 2009 CAREERCUP 30 Database How to Approach: CHAPTER-7 You could be asked about databases in a variety of ways: write a SQL query, design a database to h old certain data, or to design a large database. We’ll go through the latter two types here. Small Database Design Imagine you are asked to design a system to represent a school’s registrar: course information, departments, course enrollment, teachers, etc. What are the key objects? Student. Professor. Course. Department. How do they relate to each other? *NOTE: I’m going to make some assumptions here for the purposes of writing up this explanation.In your interview, don’t make assumptions! Ask your interviewer instead. Many-to-Many:  » A course can belong to multiple departments, and each department can have multiple courses. So, create a separate table DepartmentCourse that acts as a â€Å"pairing† of the two. DepartmentCourse has just a department_id field and a course_id field. A student can be in multiple courses, a course can have multiple students. So, do the same as above and create a StudentCourse table. A course only has one professor. A professor can teach multiple courses. So, add a field professor_id to the Courses table.  » One-to-Many:  »Large Database Design When designing a large, scalable database, joins (which are required in the above examples), are generally very slow. Thus, you must denormalize your data. Think carefully about what when data will be used—you’ll probably need to duplicate it in multiple tables. 31  © 2009 CAREERCUP exclusively for [email  protected] google. com Database CHAPTER-7 7. 1 Write a method to find the number of employees in each department when we have the following tables: ______________________________________________________________________pg 126 7. 2 What are the different types of joins?Please explain how they differ and why certain types are better in certain situations. ______________________________________________________________________pg 127 7. 3 What is normalization? Explain the pros and cons. _________________________________________________ _____________________pg 128 7. 4 Draw a entity-relationship diagram for a database with companies, people, and professionals (people who work for companies). ______________________________________________________________________pg 129 7. 5 You have to design a database that can store terabytes of data. It should support efficient range queries. How would you do it? _____________________________________________________________________pg 130 Employees containing: Emp_ID, Emp_Name and Dept_ID (Primary key) Departments containing: Dept_Name and Dept_ID (foreign key)  © 2009 CAREERCUP 32 Debugging Existing Code How to Approach CHAPTER-8 Sometimes, in an interview, an interviewer asks you to look at a piece of code and identify the mistakes. We recommend the following approach: 1. 2. 3. Examine the code and understand what it’s expected to do. Ask your interviewer what types of data it’s expected to handle, where it’ll be used, etc. Look for syntax errors: does ever ything type check? s the class declaration correct? Look for â€Å"hot spots†:  »  »  »  »  » 4.  »  » 5. If you see float and doubles, check for precision errors If you see division, check for rounding errors If you see memory allocation, check for memory leaks If you see unsigned ints, check to see if the int might ever be negative If you see bit manipulation, check for correctness The â€Å"normal† case The boundary cases (null, 0, 1, MAX, etc) Run through the code with a few examples: Does it do everything it’s expect to? For example, if the code is supposed to return everyone in a database under 21, does it only look for students?Maybe it should be looking for teach-ers as well? Does it handle unexpected cases? What if it takes in a list and it has a loop? 6. Further Advice 1. 2. Look at the space and time complexity—can you improve it? Correct the mistakes in the code. But do so carefully! Don’t simply make changes until it work s. Deeply understand the issues and then correct them. 33  © 2009 CAREERCUP exclusively for [email  protected] google. com Debugging Existing Code 8. 1 Explain what the following code does: ((n & (n-1)) == 0) CHAPTER-8 ______________________________________________________________________pg 131 8. Find the mistake(s) in the following code: unsigned int i; for (i = 100; i ::Other { int foo() { printf(â€Å"here we are †); }; }; main() { typedef Foo typedef Derived Derived_inst; Derived_inst ii; ii. foo(); } ______________________________________________________________________pg 133  © 2009 CAREERCUP 34 Games How To Approach: CHAPTER-9 Sometimes interviewers ask these problems simply because they’re â€Å"fun,† but often, it’s also because â€Å"game† problems are heavy on object oriented design. Gaming problems tend to be more â€Å"free form† and thus they give you the chance to demonstrate how you really code.Define Data Structures W hen implementing something so free form, ask yourself, â€Å"Where can I define a class or a struct? † When in doubt, define a new class or struct. It tells the interviewer that you care about the maintainability of your code. Validate Your Assumptions Be careful about making assumptions. Suppose you’re asked to implement the word game Scrabble. Don’t assume that the dictionary will be in English—or even in that character set. It could be in any language! Ask your interviewer lots and lots of questions so that you know what to implement. Are you solving this problem once, or many times?Sometimes the solution will change depending on whether or not your code will be called multiple times. For example, suppose you’re asked to find all anagrams of a word. If you’re calling this code just once, it may be fastest just to rearrange the letters and check if they’re in the dictionary. But, if you’re going to call the code multiple time s, it’s now fastest to precompute data by iterating through all the words in the dictionary. Can you generalize your code, or part of it? If you really want to go above and beyond, try writing your code as though it were a more generalized case.For example, if you’re trying to figure out if a tic-tac-toe board has a winner, you might suggest to your interviewer solving it for the more general NxN case. If you go down this path though, be warned—sometimes problems are trickier than they appear. Also, make sure you discuss this with your interviewer so he/she knows what you’re doing. 35  © 2009 CAREERCUP exclusively for [email  protected] google. com Games CHAPTER-9 9. 1 Design an algorithm to figure out if someone has won in a game of tic-tac-toe. ______________________________________________________________________pg 135 9. The Game of Master Mind is played as follows: – The computer has four slots containing balls that are red (R), yellow (Y) , green (G) or blue (B). For example, the computer might have RGGB (eg, Slot #1 is red, Slots #2 and #3 are green, #4 is blue). – You, the user, are trying to guess the solution. You might, for example, guess YRGB. – When you guess right color for the right slot, you get a â€Å"hit†. If you guess a color that exists but is in the wrong slot, you get a â€Å"psuedo-hit†. For example, the guess YRGB has 2 hits and one pseudo-hit. For each guess, you are told the number of hits and pseudo hits.Write a method that, given a guess and a solution, returns the number of hits and pseudo hits. ______________________________________________________________________pg 137 9. 3 There is an 8Ãâ€"8 chess board in which two diagonally opposite corners have been cut off. You are given 31 dominos in which a single domino can cover exactly two squares. Can you use the 31 dominos to cover the entire board? Prove your answer (by providing an example, or showing why itâ€℠¢s impossible). ______________________________________________________________________pg 138 9. Find a way to arrange 8 queens on a chess board so that none of them share the same row, column or diagonal. ______________________________________________________________________pg 139 9. 5 Othello is played as follows: Each Othello piece is white on one side and black on the other. On your turn, you place a piece on the board so that your color is facing up. You must pick a spot such that your opponent’s pieces are either on the left and the right, or on the top and the bottom. All of your opponent’s pieces on the line between two of yours are then turned over, to become yours. Your goal is to own the most pieces.Design the game Othello. Write a method to check whether someone has won the game. ______________________________________________________________________pg 141  © 2009 CAREERCUP 36 Java How to Approach: CHAPTER-10 While Java related questions are found throughou t this book, this chapter deals with questions about the language and syntax. You generally will not find many questions like this at the larger software companies (Microsoft, Google, Amazon, etc), which tend to avoid ‘trivia’ based questions, but these questions are very common at many smaller companies. What do you do when you don’t know the answer?If you don’t know the answer to a question about the Java language, try to figure it out by doing the following: (1) Think about what other languages do. (2) Create an example of the scenario. (3) Ask yourself how you would handle the scenario if you were designing the language. Your interviewer will likely be equally—or more—impressed if you