Tuesday, May 12, 2020
West Side Story and Romeo and Juliet - Free Essay Example
Sample details Pages: 4 Words: 1184 Downloads: 3 Date added: 2019/03/13 Category Literature Essay Level High school Topics: Romeo and Juliet Essay William Shakespeare Essay Did you like this example? West Side Story and Romeo and Juliet both revolve around two rival groups and/or gangs. The film Romeo and Juliet (1968) is about two rival families, the Montagues and the Capulets, whose family feuds have gone so far back in their history that they forget the fuel behind their disputes. In West Side Story, the film involves two rival gangs: The Jets, a gang of Caucasian teenagers, and the Sharks, a gang of Puerto Rican immigrants. Donââ¬â¢t waste time! Our writers will create an original "West Side Story and Romeo and Juliet" essay for you Create order Their feud begins when the Sharks try to invade the Jetsââ¬â¢ territory in Manhattan, New York. In both storylines, a boy and a girl of opposing groups fall in love with each other despite the groups differences; But in return, their love results in their death. Between the two films, a direct comparison between the characters can be clearly observed. Tony, from West Side Story, matches Romeoââ¬â¢s character, while Maria matches the character of Juliet. Bernardo can be portrayed as Tybalt with his temper and need to fight, while Riff is compared to Mercutioââ¬â¢s personality similar to that of a jester. From West Side Story, Anita can be seen as the nurse, watching over Maria/Juliet, and Chino is in direct comparison of Paris; They are supposed to marry the key girl. Maria is set up to marry Chino, exactly like Juliet is supposed to marry Paris. In the films, the meeting of the lovers ultimately starts with a dance in which both Romeo/Tony are convinced by Mercutio/Riff to come, but for different reasons. Mercutio wants Romeo to go and forget about Rosaline by seeing the other women, while Riff needs Tony to go to help with the rivalry of the Sharks. Tony and Maria meet and experience ââ¬Å"love at first sightâ⬠just like Romeo and Juliet at the dance. They dance together and share a kiss before they are separated and realize that they are from rival families. In both cases, a balcony scene is present. In West Side Story, T ony actually climbs the balcony and makes physical contact with Maria. Those are the major similarities between West Side Story and Romeo and Juliet. In addition to the plot structures, similar themes are present in West Side Story and Romeo and Juliet. The idea that blinded love can lead to rash decisions is highly present in both storylines. It is present in Romeo and Juliet in a sense that within simply meeting each other, Romeo and Juliet believe they fell in love with one another. Romeo proclaims, ââ¬Å"Did my heart love till now? Forswear it, sight! For I neer saw true beauty till this night,â⬠forgetting all about Rosaline: the very woman he claims to have loved no less than five minutes prior. Juliet tells the nurse, ââ¬Å"Go ask his name. If he be married, my grave is like to be my wedding bed,â⬠showing that she already wants to be married. Because of their love for each other, Romeo and Juliet think they cannot live without one another. Romeo and Juliet both end up killing themselves because they believe that they, themselves, cannot live without each other. Parallelism within the theme of Romeo and Juliet i s present in West Side Story. Tony and Maria kiss each and cannot bear to be without the other immediately preceding having just met. Tony, needing to see her again, goes to her balcony and they end up confessing their love for one another. Maria tells Tony to meet her at the bridal shop where she works the next day. During this time, they practically have their unofficial wedding in that very shop. Tony then goes to find Chino after believing Maria is dead but at the last second, he and Maria find each other and go in for a loving embrace; However, Chino shoots Tony in that very moment. Maria does not end up killing herself but does grieve over Tonyââ¬â¢s death and eventually moves on. The demonstration of the thought that blind love can lead to rash decisions is present in both Romeo and Juliet and West Side Story. On the contrary, West Side Story and Romeo and Juliet have several differences between the two. For example, the actual rivalry is between opposing gangs in West Side Story, not families. The Montagues and Capulets of Romeo and Juliet have been fighting for so many generations that it becomes natural for them to want to fight each other. They have no purpose behind their feud besides family hate. In West Side Story, the feud begins when the Sharks begin to intrude in the Jetsââ¬â¢ turf. Another big difference between the two films is the fight scenes. In Romeo and Juliet, Romeo acts impulsive when Tybalt kills Mercutio and proceeds to kill Tybalt right after. In West Side Story, Tony doesnââ¬â¢t kill Bernardo after Bernardo stabs Riff with his knife. Tony simply impales Bernardo with the knife and runs off. One of the most critical pieces to the storyline between the two films is that Romeo gets banished, whereas in West Side Story, Tony gets no immediate repercussions for his actions. He is not banished and does not go to jail, ultimately nothing happened to Tony. Without any harsh punishment, Maria does not become quite as depressed and expresses a will to live. Another significant difference is in the death scenes in each film. In Romeo and Juliet, Romeo kills himself because he believes Juliet is dead, and Juliet also commits suicide with Romeoââ¬â¢s dagger because she sees that Romeo is dead. In West Side Story, Tony does not commit suicide because, instead, he is shot by Chino right before embracing Maria. Since he is shot he does end up dying, yet this does not lead Maria to take her own life. Maria ends up forgiving the two gangs and moving on with her life. That is ultimately the biggest difference between the two films. In addition, Paris also dies along with Romeo and Juliet. In West Side Story, Chino is the one who kills Tony, yet he himself does not die. As a result, the moviesââ¬â¢ twists result in a more interested audience for West Side Story due to the contemporary setting as oppose to Romeo and Juliet. It uses an abundance of modern day words and phrases that people can understand better and faster than Shakespeareââ¬â¢s English. Also, modern-choreographed dances shown in West Side Story are more common than big formal balls as shown in Romeo and Juliet. The dancing and singing is very entertaining to watch, and it is a good tactic for keeping the audienceââ¬â¢s attention throughout the film. The fights throughout the dances are humorous and keep the audienceââ¬â¢s attention rather well. West Side Story is meant to grasp the attention of young adults the most. All the characters are teenagers in the musical. Being a teenager is a big part of oneââ¬â¢s life; One can experience love, danger, and have many opportunities to make huge choices. The characters of West Side Story encounter all those experiences, which hel ps in relating to teenagers the most.
Wednesday, May 6, 2020
Essay on Ethnography on Cambodian Americans - 903 Words
I chose Cambodian Americans for my target culture because it was a place I knew very little about. My ignorance of that side of the world is laughable to say the least. Cambodian American was a great choice because both the people and the culture are very captivating to me. While some Cambodian Americans become very westernized, accepting most of Americaââ¬â¢s cultural norms, some hold strong to their Cambodian traditions and way of life. Through Geert Hofstedeââ¬â¢s Taxonomy, I will explore the dynamics of the Cambodian American culture. Through Identity, Hierarchy, Gender, Truth and Virtue I will attempt to describe a culture previously virtually unknown to me. I chose Hofstedeââ¬â¢s Taxonomy over Bondââ¬â¢s because Michael Bond himself told me to.â⬠¦show more contentâ⬠¦While most Cambodian Americans are loyal to their own family units it is not uncommon for them to be hesitant about close interaction with strangers even other Cambodians. The hesitation that so me Cambodian Americans face when meeting with strangers is due to the fact that the Cambodian culture is one of high power distance. Hierarchy is determined usually by age or economic status. Social hierarchy of age is evident in the greetings. Depending on who you are greeting determines the type of greeting. If one were to greet someone who is Cambodian, they should do the formal put hands together and bow. At chest level to someone who is of the same age or status, at mouth level to a superior such as a boss and at nose level to someone who is an elder, such as a grandparent. (Vorani) If greeting someone who isnââ¬â¢t Cambodian, we just normally do the American ââ¬Å"hiâ⬠while waving. It just really depends. For the Cambodian culture, we have to make sure we greet using again the hands together while bowing especially to those who are older than your parents. You also have to say a formal saying in Khmer but I forgot the translation for it in one must to refer them as ââ¬Å"mingâ⬠, ââ¬Å"bouâ⬠, or ââ¬Å"ormâ⬠. This is based on both age and gender. (Eam) There is a clear delineation between superiors and subordinates and between the young and the old. (Serpa) While the Cambodian culture itself is more feminine there is a high level of respect paid to the men of the household. The
Nonsmokers A Prospective Study Free Essays
In 2006, Rudolf bertagnoli and his team published a study investigating the effects of smoking on patients who have undergone Lumbar total disc arthroplasty. ââ¬Å"Smoking has always been considered to a negative predictor for fusion surgery.â⬠(Bertagnoli. We will write a custom essay sample on Nonsmokers: A Prospective Study or any similar topic only for you Order Now R, 2006) Not many studies have been undertaken to observe effects of smoking on the procedure of Total arthroplasty and the recovery afterwards in smoking and non smoking patients. Some research suggests that smoking prevents or reduces the bones ability to grow into the prosthesis. Delay in recovery and decrease in over all success of the implantation procedure have also been blamed on smoking. (ProDisc Total Disc Replacement, 2008) ââ¬Å"The aim of the study was to evaluate the changes in functional and disability outcomes within a period of two years minimum in smoking and nonsmoking patients who have undergone the artificial disc replacement therapy.â⬠(Bertagnoli. R, 2006) The Null hypothesis and the Alternate hypothesis proposed were as follows. Null Hypothesis: Smoking has no detrimental effect on success of artificial disc replacement (ADR). Alternate Hypothesis: ââ¬Å"Smoking has a detrimental effect on the success of artificial disc replacement (ADR).â⬠(Bertagnoli. R, 2006) A cohort study was conducted with an initial sample of 110 patients between March 2000 and April 2002. The inclusion criteria for the sampling included, smokers and non smokers, age between 18-65 years, ââ¬Å"disabling low back pain and some radicular pain secondary to single-level lumbar spondylosisâ⬠(Bertagnoli. R, 2006) , patients undergoing minimum of 2 year follow up and assessment, and lastly failure of medical treatment. They excluded ââ¬Å"patients with spinal stenosis, osteoporosis, prior fusion surgery, chronic infections, metal allergies, facet arthrosis, inadequate vertebral endplate size, more than one level of spondylosis, neuromuscular disease, pregnancy, Workersââ¬â¢ Compensation, spinal litigation, body mass index greater than 35, and/or any isthmic.â⬠(Bertagnoli. R, 2006) Patientââ¬â¢s smoking status was recorded through questionnaires. Preoperative aspects of the lumbar anomaly were recorded radiographically. Outcome measurements were recorded at 3rd, 6th, 12th and the 24th month after undergoing the procedure. The procedure success and recovery progression was noted using the Visual Analog Score (VAS) and the Oswestry Disability Index (ODI). Questionnaires recording the back pain, pain drugs usage and patient satisfaction were also used. Preoperative and postoperative radiographical assessment of the back was also used to observe the recovery progression in both, the smoking and non smoking group of patients. Dependent variables included Smoking and Non smoking group. Whereas the independent variables included VAS, ODI, patient satisfaction, leg pain, work rates (postoperative), and drugs used postoperatively. Statistical analysis was done as it was found that even though there was significant changes between preoperative and postoperative variable like VAS, ODI, patient satisfaction, relief of leg pain work rate etc but no statistically significant differences were found between these outcomes of smoking patients when compared with nonsmokers. Therefore, the study fails to reject the null hypothesis, which still stands, i.e. ââ¬Å"Smoking has no detrimental effect on success of artificial disc replacement (ADR).â⬠(Bertagnoli. R, 2006) The research was conducted in a controlled manner excluded many bias.à But further studies need to be conducted with larger sample sizes to further explore the role of smoking if any, in the success of disc replacement. Also there is need for exploring the link between blood levels of nicotine and success of procedure as well as the effects of smoking and indicators of bone adherence to the prosthesis needs to be further conducted. Couple of questions that come to mind, if nicotine plays such great inhibiting effect on the bone and collagen growth as the study claims, then why wasnââ¬â¢t the effect of smokingà on growth factors and their monitoring not included in the study. Also, if as the researchers claim, that nicotine has an analgesic effect on patient, was it not included as a component in the study? REFERENCES Bertagnoli. R., Yue. J.J., Kershaw.T, Shah.R, V., Pfeiffer. F, Fenk-Mayer, A, et al. (2006). Lumbar Total Disc Arthroplasty Utilizing the ProDisc Prosthesis in Smokers versus Nonsmokers: A Prospective Study with 2-Year Minimum Follow-up. Spine, 3, 992-997. ProDisc Total Disc Replacement (2008).à Spine Service- Sydney, Australia, retrieved on February 29th, 2008, from http://www.spine-service.org/dr.html ; ; ; ; ; How to cite Nonsmokers: A Prospective Study, Essay examples
Financial Performance of Watley Company â⬠MyAssignmenthelp.com
Question: Discuss about the Financial Performance of Watley Company. Answer: Introduction In every business, there is always a concern for the financial performance and what measures are needed to improve the financial performance of the organization. There are many ways to analyse the business performance and among them ratio analysis is very useful as it helps to evaluate the performance of the current year as well it helps to compare it with the financial performance of previous years. In this report financial performance of the Watley Company has evaluated using the ratio analysis in part A and comments are made on the financial performance of the company in part B with some recommendation. Ratio Analysis of the Watley Company: Liquidity Analysis Liquidity analysis helps in ascertaining the short term financial health of the company and provides the information on how the company manages the payments in respect to the current liabilities. Some of the important ratios of the liquidity analysis are current ratio, quick ratio, and working capital ratio. In this report there is need to calculate the ratio for each category so current ratio has been selected (Bender, 2013). Current Ratio: It is very important liquidity ratio as it provides availability of the current assets over the current liabilities. Current ratio measures the liquidity performance of the company provides the information about the short term performance in respect to payment required to make to suppliers and other short term liabilities. Formula: Current Assets/Current Liabilities Watley Company Financial Data Years Financial Items 2014 2015 Current Assets 300,000.00 480,000.00 Current Liabilities 270,000.00 210,000.00 Current Ratio 1.11 2.29 Activity Analysis In order to carry out the business there is need to carry out various activities in order to have sufficient flow of cash and other resources in the business process. Some of the important activities that business performed to maintain proper flow of cash in the business are inventory management, debtors management and creditors management. In this respect some of important activity ratios are inventory turnover ratio, debtors turnover ratio etc. In this analysis debtors turnover ratio will be calculated to notice the performance of the company in respect to collection of outstanding amount form the debtors (Besley and Brigham, 2014). Debtors turnover ratio or accounts receivable turnover ratio: This ratio is very important from financial performance point of view as it provides information on frequently company collects their outstanding debt amount from their customers in order to have proper flow of cash in the business. Formula: Average Credit sales or Sales /Account Receivable or Debtors Watley Company Financial Data Years Financial Items 2014 2015 Account Receivable 160,000.00 260,000.00 Sales 3,290,000.00 3,520,000.00 Debtors turnover ratio 20.56 13.54 Profitability Analysis Profitability analysis aims to examine the earning capacity of the company through effective use of the resources of the company. Company procures various inventory and fixed assets to manufacture the desired product and services in order to supply them to the customers. Proper management of assets will help the company to earn the maximum sales revenue and provide increase in the profit for the shareholders. In order provide the profitability analysis, the return on asset ratio has been calculated as it is very important ratio in this segment (Brigham and Ehrhardt, 2007). Return on Assets: In this ratio return means the percentage of profit earned using the resources of the business. As the ratio is in relation of the assets, this ratio will provide information regarding the percentage of the profit earned on the assets of the company. Here profit means the net profit of the company and asset means total assets i.e. both fixed assets and current assets. Formula: Net Profit/Total Assets Watley Company Financial Data Years Financial Items 2014 2015 Net Profit 400,000.00 300,000.00 Total Assets 1,550,000.00 1,630,000.00 Return on Assets 25.81% 18.40% Solvency / Gearing Analysis Capital structure in the any business organization plays very important role in the profitability of the company. There are mainly two types of capital, debt capital and equity capital. Equity capital refers to the owner capitals and there is no fixed charge on this capital. On the other hand debt capital is the borrowed capital and company has charge on the profit in form of the interest. Debt equity ratio will be calculated in this analysis to check the percentage of debt as compare to equity capital (Henderson, 2015). Debt Equity Ratio: This ratio tells the percentage of debt capital as against the equity capital. Lower debt capital in comparison to the equity capital shows that company depends on the equity capital mainly and more profit available for distribution to the shareholders of the company. Formula: Debt /Equity Watley Company Financial Data Years Financial Items 2014 2015 Debt 200,000.00 200,000.00 Equity 1,080,000.00 1,220,000.00 Debt Equity Ratio 18.52% 16.39% Financial Analysis In this part, critical analysis of the above calculated ratios will be done: Current Ratio: Current ratio of the company was 1.11 times in year 2014 and it was increased to 2.29 times in year 2015 that indicates that there is significant increase in the current assets of the company as against current liabilities. So it can be said that liquidity performance of the company is very strong in year 2015 as compared to year 2016. Although, it can be said that in both years company has been successfully able to meet the current liabilities expenses. Debtors turnover ratio: The debtors turnover ratio is 20.56 times in year 2014 and it was further reduced to 13.54 times in year 2015 that indicates that company activity efficiency is reduced in year 2015 as compared to year 2014. Return on Assets: Company has earned the profit of 25.81 % in year 2014 and it was reduced to 18.40 % in year 2015. It can be said that profitability of the company in respect to return on assets was good but there has been too much decline in profitability percentage in year 2015 as compared to year 2014. Debt Equity Ratio: Debt equity ratio is 18.52 % in year 2014 and got reduced to 16.39 % in year 2015. It can be said that capital formation of the company was excellent in both the years and there is positive decline in year 2015 that shows positive change in the capital formation of the company. Recommendation and conclusion On the basis of the overall analysis it is advised to the company to make proper strategies to collect the accounts receivable in shorter period of time in order to improve the debtors turnover ratio. There seem that company profit has declined in year 2015, so it is advised to have proper control on the expenses of the company like cost of sales and salaries wages has increased a lot in year 2015 as compared to year 2014, that can be easily controlled if proper measures taken. References Bender, R. (2013). Corporate Financial Strategy. Routledge. Besley, S. and Brigham, E. (2014). Principles of Finance. Cengage Learning. Brigham, E. and Ehrhardt, M. (2007). Financial Management: Theory Practice. Cengage Learning. Henderson, S., Peirson, G., Herbohn, K. and Howieson, B. (2015). Issues in Financia Accounting. Pearson Higher Education AU.
Friday, May 1, 2020
Java Programming Principles
Questions: Task 11.1 Discuss the principles, characteristics and features of programming in Java.1.2 Critically evaluate the environmental flexibility of programming in Java.Task 22.1 Design a Java programming solution based on the above scenario.2.2 Explain the components, data and file structures required to implement a given design.Task 33.1 Implement a Java programming solution based on a prepared design.3.2 Define relationships between objects to implement design requirements3.3 Implement object behaviours using control structures to meet the design algorithms.3.4 Identify and implement opportunities for error handling and reporting.3.5 Make effective use of an integrated development environment including code and screen templatesTask 44.1 Critically review and test a Java programming solution.4.2 Analyse test results against expected results to identify discrepancies.4.3 Evaluate independent feedback on a developed Java program solution and make recommendations for improvements.4.4 Create user documentation for the development of Java programming solution.4.5 Create technical documentation for the support and maintenance of a Java programming solution Answers: Introduction Java is an example of an OOP (Object Oriented Program) (Klein, 2005). So it must support all the basic principles of an OOP language (Okal, 2012). Thus the principles of java and hence of an OOP language is- Encapsulation: This means binding together of date and then putting them under a single block. In a car, there are a large number of systems that co-exist together(Mittal, 2013). Changing the gears does not turn on the headlights and bulling brakes does not accelerate the car. Hence all these systems are at the same place and are controlled by a single person (driver) but none is interfering with each other with their functioning. The basic example of encapsulation can be obtained from the classes that are used in java. These classes contain the entire block of code within them and no other program can access them unless specific rules are followed. If the methods of a class are declared private, them they cannot be overwritten(Lakkis, 2007). Also if a class is declared private, then the class can only be inherited and no object creation can be allowed for that class anywhere within the program. Hence that class and its methods are protected by encapsulation (Rebek, 2005). Inheritance: This is another OOP principle which enables the program to inherit the properties from another class (Flanagan, 2005). The inherited class is called the parent class while the classes that inherit the parent class are termed as child class. Now for inheritance the child class gets all the methods and variables of the parent class. Also the Object of the parent class can be created with the reference of the child (Raposa, 2003). There are two forms of inheritance-multiple, multi-level. In multiple inheritances, more than one class can be inherited at the same time. Consider an example in case of an airport an aircraft uses its landing gear to make turns, take-off, and land on the landing strip. Also it is primarily used for flying. In that respect the aircraft is a flying vehicle and it is also a ground-vehicle (since it can move on the landing strips) (Link and Frlich, 2003). Hence the aircraft inherits the properties of both these classes at the same time. This is multiple inheritan ces. In multi-level inheritances, only one class can be inherited a t a time. But there is a type of hierarchy.This means that if A class inherits B, then C inherits A, C gets the methods of A by default. Example golden retriever is a dog, which in turn is a mammal which in turn is an animal. So this makes Golden terrier a mammal, an animal, and also a dog (Cadenhead, 2012). This is termed as multi-level inheritance. Polymorphism: This word comes from the Greek words poly meaning means many, morph means form. Hence polymorphism means many forms (Eckel, 2000). This means that a single problem in java can be approached from three different ends. In a normal programming language, that does not implement any OOP principles (Link and Frlich, 2003), if we were to implement a stack for different data types, then we would have needed 3 or four different structures with different names. In each case the same algorithm is being used only the data types used are different. But in JAVA we can name all these under the same implementation of stack (Sierra and Bates, 2005). Hence our work is greatly reduced and we are also able to use the same name for different implementations of the same program. In JAVA polymorphism is simply implanted by the use of interfaces (Byrne and Cross, 2009). If a class implements an interface then it must implement the methods that are written in the interface. Characteristics of java: It is simple to code and decode. It is an object oriented programming language (Hubbard, 2001). It is highly secure. It can be implemented on any form of machine. The main reason for this is java compiles the program into byte code (Riccardi, 2001). Now this byte code file is not compiler dependent, hence the file can run on Windows, Linux, and Mac etc. It has in-built support for multithreading. The most important part of java program comes from its usage to code applets and hence is used extensively for coding websites. It can be used to code and run graphical applications. It is robust as it is error-free and has severe typing restrictions and also various run-time checking methods are used (Wampler, 2002). It supports the use of interfaces. It can be easily linked to any other program. There is inbuilt support for garbage collection and it has a very simplified exception handling capabilities. Task 1.2 JAVA provides a great flexibility to the programmers. Often when we create program, other people may change the basic functions created, or overwrite them. This may lead to crashing of the program (Horstmann, 2008). In JAVA, this problem is completely avoided by adding the prefix final; as a result this class or method to which the prefix is added cannot be altered in any way. Also the use of interfaces makes programming easier (Horstmann, 2005). Any class in java that implements the interface must overwrite the methods that are mentioned within the interface. Also the use of keyword abstract, allows the user to use declared methods without any sort of body. Also any class that inherits this abstract class must override this method within it. The garbage correction algorithm of java is also very unique and advanced. There is no need for releasing the allocated memories (as in case of C++), because in java, when the compiler cannot find the reference of any object it deletes the objec t any kind of variables that it was holding (Morelli, 2000). Also the exception handling capabilities of java is extremely helpful. In C, when there was an arithmetic exception like division by 0, the program used to hang and had to be stopped manually, but in JAVA, the program gives the location of the place and also the cause of the problem and exits the program. This is extremely helpful for debugging large programs. Task 2.1 The above task has told us to design a java program that can act as a student database manager. It must be able to take in the students first name, last name, their date of birth, their ID number, course enrolled by them, mobile number, their address etc (Lewis and Chase, 2005). Now the administrator must be able to view the details of any student he wishes. He must also be able to delete the entire database, or a single student, update and also enter the details of any student. In order to do all this with a JAVA program, we must first build a class named student that can contain these variables with data within it. This class can then be manipulated from the main class by creating an object for each student. Then all these objects must be linked somehow to form an entire list of students which are really classes with each one holding their own respective data. Also care must be taken to note that the entire system can only handle a maximum number of students. Task 2.2 In the given problem, we are describing a class named Student that has the variables for holding data like last name, first name, DOB, Address, mobile number, etc. All these variables have their respective data types like address is stored in a string, DOB in float, etc. Now, in the main program named, StudentDatabaseManagement an array of Student objects are created of size 200. This means that the database is capable of holding 200 students. This number can be increased or decreased by editing the array size of the object array in the main program. Now, we use a switch case algorithm which allows us to have many options like entering details of a student, clearing the database, deleting a student, viewing the students etc. In the main program, we have a special variable that is used to track the number the number of students. This number is incremented when a new student is admitted to the database. Now also in each student object there is a variable to track the number at which he / she has been admitted into the database. This is important because in case of deletion, a space in the middle of the array is empty (Deitel and Deitel, 2012). Hence, in such a case we must shift the students below that space to make the array a continuous one with no empty spaces in between. As a result the array can only be empty from the end. There should not be any gap in between the array to conserve the space. The algorithm required to shift the students one space above is located under the case that is responsible for deleting the students and it also decrements the variable that is used to track the total number of students in the array. Also, proper control checks are provided at each level so that the age limit for entry into the institution can be set. This is done by using a variable that holds the year after which the candidate must be born in order to take admission. If the year is before that specified a error message is displayed. Various exception checks are also p rovided so that proper data is entered into the proper cases. When the entire database is empty, then a proper error message is displayed and similar thing when the database is empty. Task 3.1 The code of the main program is given below. It consists of two classes namely Student, StudenyDatabaseManagement (main class). StudenyDatabaseManagement packagestudentdatabasemanagement; importjava.util.Scanner; public class StudentDatabaseManagement extends Exception{ public static void main(String[] args) { int index=0; int cases; boolean switching=true; intallowed_date=1988;//sets age limit for entry Student[] studentdatabase=new Student[200]; Student[] studentdatabasecopy=new Student[200]; for(int i=0;i10;i++) { studentdatabase[i]=new Student(); studentdatabasecopy[i]=new Student(); } Scanner s=new Scanner(System.in); while(switching){ System.out.println("Enter your choice:n1)Enter Studentn2)See all Studentsn3)see single Student detail"); System.out.println("4)Delete all studentsn5)Updaten6)Delete single studentn7)Exit"); System.out.println("Enter your choice"); cases=s.nextInt(); switch(cases){ case 1: { try { if(index==10){ throw new Exception(); } } catch(Exception a){ System.out.println("Database full"); } index++; studentdatabase[index]=new Student(); System.out.println("Enter the roll number of the student(max 10 digits):"); studentdatabase[index].stud_roll=s.nextInt(); s.nextLine(); System.out.print("Enter the last name of the student:"); studentdatabase[index].stud_lastname=s.nextLine(); System.out.print("nEnter the course under which student is enrolled:"); studentdatabase[index].stud_course=s.nextLine(); System.out.println("Enter the month when student was born in digits:"); studentdatabase[index].stud_mon=s.nextInt(); while(studentdatabase[index].stud_mon12) { System.out.println("Wrong Data, Re-Enter:"); studentdatabase[index].stud_mon=s.nextInt(); } System.out.println("Enter the date when student was born in digits:"); studentdatabase[index].stud_date=s.nextInt(); while(studentdatabase[index].stud_date31||(studentdatabase[index].stud_date28studentdatabase[index].stud_mon==2)) { System.out.println("Wrong Data, Re-Enter:"); studentdatabase[index].stud_date=s.nextInt(); } System.out.println("Enter the year when student was born in digits:"); studentdatabase[index].stud_year=s.nextInt(); if(studentdatabase[index].stud_yearallowed_date) { System.out.println("Your ward is not admissable"); switching=false; break; } s.nextLine(); System.out.print("Enter the first name of the student:"); studentdatabase[index].stud_firstname=s.nextLine(); System.out.println("nEnter the mobile number of the student:"); studentdatabase[index].stud_mob_no=s.nextLong(); s.nextLine(); System.out.print("Enter the address of the student:"); studentdatabase[index].stud_add=s.nextLine(); studentdatabase[index].stud_no=index; break; } case 2: { if(index==0){ System.out.println("Database Empty"); } else { for(int count=1;count=index;count++){ System.out.println("Name of student: "+studentdatabase[count].stud_firstname+" "+studentdatabase[index].stud_lastname); System.out.println("Roll no: "+studentdatabase[count].stud_roll); System.out.println("Course enrolled: "+studentdatabase[count].stud_course); System.out.println("DOB: "+studentdatabase[count].stud_date+"/"+studentdatabase[count].stud_mon+"/"+studentdatabase[count].stud_mon); System.out.println("Address: "+studentdatabase[count].stud_add); System.out.println("Mob no: "+studentdatabase[count].stud_mob_no); } } break; } case 3: { try{ if(index==0){ throw new Exception(); } } catch(Exception a){ System.out.println("Database is empty."); break; } int roll2; System.out.println("Enter student roll no:"); roll2=s.nextInt(); for(int count=1;count=index;count++){ if(studentdatabase[count].stud_roll==roll2){ System.out.println("Name of student:"+studentdatabase[count].stud_firstname+" "+studentdatabase[index].stud_lastname); System.out.println("Roll no:"+studentdatabase[count].stud_roll); System.out.println("Course enrolled:"+studentdatabase[count].stud_course); System.out.println("DOB: "+studentdatabase[count].stud_date+"/"+studentdatabase[count].stud_mon+"/"+studentdatabase[count].stud_mon); System.out.println("Address"+studentdatabase[count].stud_add); System.out.println("Mob no:"+studentdatabase[count].stud_mob_no); break; } } break; } case 4: index=0; break; case 5: { System.out.println("Enter the roll number to update the records"); int roll=s.nextInt(); for(int i=1;i=index;i++) { if(roll==studentdatabase[i].stud_roll) { System.out.println("Enter the roll number of the student(max 10 digits):"); studentdatabase[index].stud_roll=s.nextInt(); s.nextLine(); System.out.print("Enter the last name of the student:"); studentdatabase[index].stud_lastname=s.nextLine(); System.out.print("nEnter the course under which student is enrolled:"); studentdatabase[index].stud_course=s.nextLine(); System.out.println("Enter the month when student was born in digits:"); studentdatabase[index].stud_mon=s.nextInt(); while(studentdatabase[index].stud_mon12) { System.out.println("Wrong Data, Re-Enter:"); studentdatabase[index].stud_mon=s.nextInt(); } System.out.println("Enter the date when student was born in digits:"); studentdatabase[index].stud_date=s.nextInt(); while(studentdatabase[index].stud_date31||(studentdatabase[index].stud_date28studentdatabase[index].stud_mon==2)) { System.out.println("Wrong Data, Re-Enter:"); studentdatabase[index].stud_date=s.nextInt(); } System.out.println("Enter the year when student was born in digits:"); studentdatabase[index].stud_year=s.nextInt(); if(studentdatabase[index].stud_yearallowed_date) { System.out.println("Your ward is not admissable"); switching=false; break; } s.nextLine(); System.out.print("Enter the first name of the student:"); studentdatabase[index].stud_firstname=s.nextLine(); System.out.println("nEnter the mobile number of the student:"); studentdatabase[index].stud_mob_no=s.nextLong(); s.nextLine(); System.out.print("Enter the address of the student:"); studentdatabase[index].stud_add=s.nextLine(); } } break; } case 6: { System.out.println(" Enter the roll of the student to be deleted:"); introlldel=s.nextInt(); for(int i=0;iindex;i++) { if(studentdatabase[i].stud_roll!=rolldel) { studentdatabasecopy[i]=studentdatabase[i]; } else { for(int j=i;j(index-1);j++) { studentdatabasecopy[j]=studentdatabase[j+1]; } for(int k=0;kindex;k++) { studentdatabase[i]=studentdatabasecopy[i]; }index--; break; } } break; } case 7: switching=false; break; } } } } Student package studentdatabasemanagement; public class Student { String stud_firstname; String stud_lastname; longstud_mob_no; int stud_roll; intstud_no; String stud_add; String stud_course; intstud_mon; intstud_date; intstud_year; } Task 3.2 In this program we are defining a special class that can hold the different data like DOB, first name, last name, address, etc. Now all these have different variables with respective data types. In the main program we are creating an array of 200 students (Shankar, 2013). Hence the net size of the database created is 200. But defining an array is not enough, in the switch case menu the case that is responsible for the entry of new students, for each student a new "student" class object is defined using the "new" keyword. All the objects created have a reference under the array of "student" classes. Hence each time we want to view a student, we are actually calling to see the data held by each of these objects. The students are tracked by a special variable called index. The value of this index variable gives us the number of objects in the database (Horstmann, 2012). Now this index is each time edited when we enter a new students details. At this point we increment index (Horstmann, 2013). Also each of the students has a number allotted to it called student_no. This is kind of a serial number that gets replaced during deletion. Task 3.3 Various control structures were used in the above program. These included looping systems like while, for loops and also other control statements like if, switch etc. The switch case, which was enclosed in an infinite while loop, was used to switch between the various tasks that were to be performed by the program. The infinite while loop ensured that the switch case statements were shown continuously. Also if the infinite while was not used then to view, enter or update the details of a student each time the program had to be restarted. This can be quite tedious, to say the least (Barnes, 2000). This infinite while loop was maintained by enclosing a Boolean variable (whose value was set to be true) within the condition of the loop. There was an exit condition among the cases that turned this Boolean value to false, hence when the loop tried to run the next time, it exited because while (false) is not allowed. In various cases, the if control statement was used, for checking various values, like if the date of birth was entered 31(by mistake), or the month was entered12 (by mistake). If they were not then (that means correct date and month were applied) then the control statement was avoided. Else the control was transferred to the statements written within the control loop (Keith and Schincariol, 2006). Task 3.4 Exception handling mechanisms are quite useful in java programs. There are many kinds of exceptions in java namely Arithmetic Exception, Array out of bounds exception, etc. They are used to detect the unwanted cases that may cause an error in the program, which in turn may result in crashing of the program. The exception handling capabilities of java are very unique. In case of other programming languages (like c), the program would have crashed if a fatal error like divide by 0 would have occurred. But in Java this does not occur. When java finds an exception in a program, then it stops the execution at that point and throws the exception to the exception handling mechanism. The exception handling mechanism copies the line number where it finds an exception and sends it to the user on the screen along with the cause of the error. Also in case of java we can define our own exceptions and hence not depend on the program to give its own values. Example the age of a man cannot be negati ve, hence in a program if someone entered a negative age then by setting up a proper exception, we can define a proper exception and hence the user gets an error when he/she is trying to enter the incorrect age.In this program, we have used exception handling capabilities of java to make our own exceptions. Here we have used the concept of exception handling at two places. These are checking if the array is full or if it is empty (Reiersl, Baker and Shiflett, 2007). This is quite important as we must make sure that the array is not full each time we try to enter a new student. This is important as if it was not checked, and then the compiler would throw us an exception for overstepping the array bounds. Task 3.5 In this programming an IDE was used. An IDE or Integrated Development Environment is a platform that is used extensively by programmers and software developers alike for development of particular software or even a program.Netbeans was the IDE that was used in the development of this project. The use of IDE has made programming very easy and comfortable. In normal case we could have coded the program in a notepad and then run the program on command prompt to see if there were any errors. But this can be difficult as the command prompt does not give us specific results to what the problem is. It merely gives us the error that was given by the exception handling part of Java runtime. Now for a beginner this can be quite difficult as he is not fully acquainted with all the programming terms. Also the command prompt window does not give any hint to what might have caused the error. But his use of an IDE eliminated all these difficulties. In an IDE, the lines that could an error are detec ted straightaway when they are written by the programmer. In case of using a command prompt, the programmer would have to wait until running the program to get the errors. Also the IDE reduce coding efforts by providing various suggestions according to which a thing can be coded. For example in Netbeans, if we write so and then press Ctrl+Spacebar on the keyboard. Then the written word transforms into System.out.println(). Also during writing variables for loops the available and valid ones were shown on pressing the hint button. Below a few screenshots of the program on Netbeans is shown.
Monday, April 13, 2020
Analytical Response Essay Sample
Analytical Response Essay SampleAn analytical response essay sample should be short and sweet, making the grade and highlighting the individual's strengths. It is not merely an expression of the author's personal views; rather, it is the writer's opinion on a given issue. An essay of this nature should be lively and original, capable of generating lively discussion. In fact, it should be able to capture and hold the attention of both student and professor.An analytical response essay sample should show a reader that the writer is eager to engage in discussion with them. The essay must clearly point out your point of view on the topic, while not being too overbearing in its coverage. Moreover, it should be logical and concise.There are essays out there that are too lengthy and are difficult to understand. You must avoid writing long essays. Instead, cut out portions that you think are superfluous and elaborate on those parts that you deem as crucial. This will prevent your essay from feeling like a muddle and will make it easier for you to write in the first place.Although essay samples are meant to be the same for everyone, there are some attributes that make an average reader really appreciate an excellent work of work. The first thing you should do is find a trustworthy copycat. The most commonly used plagiarism detection software should have enough features to catch plagiarism.While doing this, you should also research if your essay is unique in any way. You may want to see how similar it is to any other essay out there. Do not base your essay's topic or content around the same kind of topic that is being researched.There are lots of essay samples online for free. The best resource for you is a study guide with the answer to the essay questions. These help you organize your thoughts and make it more lucid.Your essay can be the best for you if you are able to make changes to it. It is possible to write more than one essay for different situations. You can mak e minor adjustments to each essay based on what changes would suit your needs.
Sunday, March 22, 2020
Grendel A Philisophical Point Of View Essays - Beowulf, Geats
Grendel A Philisophical Point Of View Grendel follows the philosophical evolution, from solipsism to nihilism, of a socially isolated creature, a monster. It is an examination of human supernatural curiosity and its many dangers, specifically the tendency toward blind cynicism. Grendel is a censure of the rapid growth of this cynicism in twentieth century society and the consequent widespread distrust of abstract ideals. In investigating his own nature, the monster in the story destroys himself. He realizes that the universe is determined, accidental, and so he loses faith in his own importance. With time, he becomes a beast, until eventually his soul has wholly left him. He does not die for love, or for passion, or for freedom. His spirit dies instead simply, hopelessly, mired in boredom and anger, without courage or sadness. Grendel is dead long before his body fails him. He fades away, and the most important theme in this novel is that such self-destruction, though tempting, is not the only answer. Grendel's first defense against a brute universe is solipsism: the belief that the self can know only itself and that it is the only existent thing. As the novel clearly demonstrates, solipsism is a weak defense. However loudly a creature may declare its godhood, the universe continues to function independently. However a creature may deny the reality of outside factors, outside factors will continue to impose themselves upon his everyday existence. The main flaw in solipsism is that it contradicts every aspect of human experience. Grendel is justifiably unsatisfied and nervous under its tenuous cover. After his visit to the dragon, Grendel finds a more solid shield, nihilism: the belief that nothing has meaning; that life is a long series of accidents and is in itself an accident. As a philosophy, nihilism is complete. It provides an answer to every metaphysical why?. Whatever the concern, a nihilist can conclusively state, There is no way to truly know, but it does not matter anyway. As a system of values for a living being, however, nihilism leaves much to be desired. It destroys the self, quickly and totally, with a single fall of a cynical whip. Grendel is utterly unhappy, because his life is empty and devoid of meaning. Notice that he projects this meaningless onto the thanes. He ridicules their actions and their passions, rendering them absurd in the reader's eyes. In truth, Grendel has a certain respect for human beings. He envies their capacity to dissolve into pure belief, and most of the hostility he exhibits toward them is actually derived from hostility toward himself. The human hero Beowulf represents an alternative to hopeless nihilism and cynicism, an alternative that Grendel never finds. Beowulf is the embodiment of regeneration and purity. Though Grendel thinks he is insane, Beowulf is the only level mind in the entire novel. Beowulf completes the philosophical journey that shapes this novel by providing a perfect answer to Grendel's puzzle. The meaning of life is in its living. The justification of truth is in truth. The reason for beauty is beauty. It is too late for Grendel, however, as he has lost too much of himself. In the final battle he rejects Beowulf and all that the hero represents, and so Grendel's death, like his life, is merely an accident. Book Reports
Subscribe to:
Posts (Atom)