Thursday, August 15, 2019

Stylistic Analysis of the Text “The Last Leaf

/* * */ package javafxgrouping; /** * * @author 094632220 */ public class StudentEntity { // private String id; private String name; private String className; public StudentEntity(){ } public StudentEntity(String aID, String aName, String className) { this. id = aID; this. name = aName; this. className = className; } public String getId() { return id; } public void setId(String id) { this. id = id; } public String getName() { return name; } public void setName(String name) { this. name = name; } public String getClassName() { return className; } public void setClassName(String className) { his. className = className; } @Override public String toString() { String str = id + â€Å",† + name + â€Å",† + className ; return str; } } /* * : TaDB. java * —————————– * HashMap HashMap id( )? * , taMap? HashMap * , (public ): * TaEntity findEntry(String id): * String findName(String id): * int rows(): * Iterator getIterator(): ( ) */ package javafxgrouping; import java. io. BufferedReader; import java. io. FileNotFoundException; import java. io. FileReader; mport java. io. IOException; import java. util. ArrayList; import java. util. HashMap; import java. util. Iterator; import java. util. Map; import java. util. StringTokenizer; /** * * @author */ public class TaDB { /* */ private Map taMap; // (HashMap) /* * TaDB, (TA. txt) * , */ public TaDB(String filename) { taMap = new HashMap(); // /* */ FileReader fr = null; try { fr = new FileReader(filename); } catch (FileNotFoundException e) { System. out. print(â€Å" † + filename + â€Å"! ); } /* */ BufferedReader bf = new BufferedReader(fr); String line; try { // while ((line = bf. readLine()) ! = null) { // , ta ArrayList ta = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer(line, â€Å",†); ta. add(tokenizer. nextToken()); while (tokenizer. hasMoreTokens()) { String token = tokenizer. nextToken(); ta. add(token); } // TaEntity entry = new TaEntity(ta. get(0), ta. get(1), ta. get(2), ta. get(3), ta. get(4), ta. get(5)); // (HashMap) taMap. put(entry. getId(), entry); } } catch (IOException e) { System. ut. print(â€Å" † + filename + â€Å"! â€Å"); } } /* * id( ) , null? */ public TaEntity findEntry(String id) { return taMap. get(id); } /* * id( ) , null? */ public String findName(String id) { return taMap. get(id). getName(); } /* * */ public int rows() { return taMap. size(); } /* * (id) */ public Iterator getIterator() { return taMap. keySet(). iterator(); } } /* * */ package javafxgrouping; /** * * @author */ public class TaEntity { private String id; // private String name; // rivate String iid; // private String email; // private String phone; // private String tutor; // /* */ public TaEntity() { } /* */ public TaEntity(String aID, String aName, String aIID, String aEmail, String aPhone, String aTutor) { this. id = aID; this. name = aName; this. iid = aIID; this. email = aEmail; this. phone = aPhone; this. tutor = aTutor; } /*getter ? setter*/ public String getId() { return id; } public void setId(String ID) { this. id = ID; } public String getName() { return name; } public void setName(String name) { this. name = name; } public String getIid() { eturn iid; } public void setIid(String IID) { this. iid = IID; } public String getEmail() { return email; } public void setEmail(String email) { this. email = email; } public String getPhone() { return phone; } public void setPhone(String phone) { this. phone = phone; } public String getTutor() { return tutor; } public void setTutor(String tutor) { this. tutor = tutor; } * */ @Override public String toString() { String str = id + â€Å",† + name + â€Å",† + iid + â€Å",† + email + â€Å",† + phone + â€Å",† + tutor; return str; } } /* * */ package javafxgrouping; import java. io. FileWriter; import java. io.IOException; import java. io. PrintWriter ; import java. util. ArrayList; import java. util. Iterator; import java. util. Random; import java. util. logging. Level; import java. util. logging. Logger; import javafx. application. Application; import javafx. collections. FXCollections; import javafx. collections. ObservableList; import javafx. event. ActionEvent; import javafx. event. EventHandler; import javafx. scene. Group; import javafx. scene. Scene; import javafx. scene. control. Button; import javafx. scene. control. ListView; import javafx. scene. input. MouseEvent; import javafx. scene. text. Font; import javafx. stage.Stage; /** * * @author */ public class JavaFXGrouping extends Application { // HTML private static String htmlFileName = â€Å"group. xhtml†; // CSS private static String cssFileName = â€Å"style. css†; private final int sceneWidth = 900; // private final int sceneHeight = 660; //// private TaDB taDb = new TaDB(â€Å"src/javafxgrouping/TA. txt†); // // , private StudentsDB studen tsDb = new StudentsDB(â€Å"src/javafxgrouping/Students. txt†); private ArrayList taIdArray = new ArrayList(); // d private ArrayList studentIdArray = new ArrayList(); // id private ArrayList studentAdd = new ArrayList(); private int studentsNo = studentsDb. rows(); private int groupNo = taDb. rows(); // , private Button btn = new Button(â€Å" â€Å"); // â€Å" â€Å" private Button btn1 = new Button(â€Å" HTML â€Å"); // â€Å" HTML â€Å" private ListView[] group = new ListView[groupNo]; // , 1? rivate ObservableList[] myObservableList = new ObservableList[groupNo]; // private Group root = new Group(); // @Override public void start(final Stage primaryStage) { // â€Å" â€Å" btn. setFont(Font. font(null, 24)); btn. setLayoutX(sceneWidth – 240); btn. setLayoutY(20); btn. setPrefSize(220, 50); // â€Å" HTML â€Å" btn1. setFont(Font. font(null, 24)); btn1. setLayoutX(sceneWidth – 240); btn1. setLayoutY(20); btn1. setPrefSize(220, 50); btn1. se tVisible(false); initArray(); // taIdArray? studentIdArray drawGroupList(); // , root. getChildren(). ddAll(btn, btn1); // Scene scene = new Scene(root, sceneWidth, sceneHeight); // primaryStage. setTitle(â€Å" â€Å"); // primaryStage. setScene(scene); // primaryStage. show(); // //† â€Å" ( ) btn. setOnAction(new EventHandler() { @Override public void handle(ActionEvent event) { btn. setVisible(false); randomGrouping(); btn1. setVisible(true); } }); //† HTML â€Å" ( ) btn1. setOnAction(new EventHandler() { @Override public void handle(ActionEvent event) { writeToFile(); btn1. setVisible(false); } }); } ** * JavaFX main() IDE FX * NetBeans main() * * @ args */ public static void main(String[] args) { launch(args); } private void drawGroupList() { int k; for (int j = 0; j < groupNo; j++) { myObservableList[j] = FXCollections. observableArrayList(); group[j] = new ListView(); group[j]. setStyle(â€Å"-fx-font-size:18;†); group[j]. setItems(myObservableList [j]); group[j]. setLayoutX(20 + j * 60); group[j]. setLayoutY(20 + j * 34); group[j]. setPrefSize(360, 320); k = j + 1; myObservableList[j]. add(â€Å"? † + k + â€Å"? [ :† + taIdArray. et(j) + â€Å",† + taDb. findName(taIdArray. get(j)) + â€Å"]†); final int i = j; group[j]. setOnMouseClicked(new EventHandler() { @Override public void handle(MouseEvent event) { group[i]. toFront(); } }); root. getChildren(). add(group[j]); } } private void initArray() { // id Iterator taIterator = taDb. getIterator(); while (taIterator. hasNext()) { taIdArray. add(taIterator. next()); } // id , Iterator studentsIterator = studentsDb. getIterator(); while (studentsIterator. hasNext()) { studentIdArray. add(studentsIterator. ext()); } } private void randomGrouping() { // , int i, j, num = 0; Random studentsRandom = new Random(); for (i = 0; i < groupNo; i++) { j = 0; if (i < studentsNo % groupNo) { while (((studentsNo – num) ! = 0) && (j < studentsNo / groupNo + 1)) { j++; int studentNo = studentsRandom. nextInt(studentsNo – num); myObservableList[i]. add(studentsDb. findclassName(studentIdArray. get(studentNo)) + â€Å",† + studentIdArray. get(studentNo) + â€Å",† + studentsDb. findName(studentIdArray. get(studentNo))); studentAdd. add(studentIdArray. et(studentNo)); studentIdArray. remove(studentNo); num++; if (num == studentsNo) { break; } } } else { while (((studentsNo – num) ! = 0) && (j < studentsNo / groupNo)) { j++; int studentNo = studentsRandom. nextInt(studentsNo – num); myObservableList[i]. add(studentsDb. findclassName(studentIdArray. get(studentNo)) + â€Å",† + studentIdArray. get(studentNo) + â€Å",† + studentsDb. findName(studentIdArray. get(studentNo))); studentAdd. add(studentIdArray. get(studentNo)); studentIdArray. remove(studentNo); num++; f (num == studentsNo) { break; } } } } } private void writeToFile() { writeToHtml(htmlFileName); createCss(cssFileName); } private void writeToHtml(String fileName) { // HTML , PrintWriter wr = null; try { wr = new PrintWriter(new FileWriter(htmlFileName)); } catch (IOException ex) { Logger. getLogger(JavaFXGrouping. class. getName()). log(Level. SEVERE, null, ex); } wr. println(â€Å"

Wednesday, August 14, 2019

Advantage and Disadvantage of Living Abroad

The first advantage is easy to learn another language. This means if you are living abroad, you can learn another language. For example, your original language is Chinese, but now you living in America, you can learn English and speak it well. In addition, the second advantage is can know different culture. This means you can learn lots of knowledge and custom in that country. The final advantage is can make friend with people from different country. This means you can be happy with new friends. For instance, I study in Malaysia; I have friends from Japan, Korea, and Malaysia. Aside for the advantage, there are some disadvantages of living abroad. Firstly, you may not easily find a helper to help you if you are having a problem. Moreover, you will waste a lot of money on transportation. For example, take cab can cost you more than driving your own car. You need adapt to your new environment is also a disadvantage at living abroad. For example, you need to try to eat those indigenous foods though you don’t like it. At the end, living abroad also has many disadvantages. To sum up living abroad can be easy to learn another language, know different culture and make friends with people from different country. But also need to conquer those issue such as different environment, transportation and become more independent. So living abroad have many advantages and disadvantages. Advantage and Disadvantage of Living Abroad The first advantage is easy to learn another language. This means if you are living abroad, you can learn another language. For example, your original language is Chinese, but now you living in America, you can learn English and speak it well. In addition, the second advantage is can know different culture. This means you can learn lots of knowledge and custom in that country. The final advantage is can make friend with people from different country. This means you can be happy with new friends. For instance, I study in Malaysia; I have friends from Japan, Korea, and Malaysia. Aside for the advantage, there are some disadvantages of living abroad. Firstly, you may not easily find a helper to help you if you are having a problem. Moreover, you will waste a lot of money on transportation. For example, take cab can cost you more than driving your own car. You need adapt to your new environment is also a disadvantage at living abroad. For example, you need to try to eat those indigenous foods though you don’t like it. At the end, living abroad also has many disadvantages. To sum up living abroad can be easy to learn another language, know different culture and make friends with people from different country. But also need to conquer those issue such as different environment, transportation and become more independent. So living abroad have many advantages and disadvantages.

Tuesday, August 13, 2019

Cause and Effect Essay Example | Topics and Well Written Essays - 250 words - 2

Cause and Effect - Essay Example Moreover, they are affected by new experiences such as conflicts with roommates due to difference in personality, new social life changes and values exploration, which consequently may lead to development of stress. Likewise, the new students face steep competition from their peers, and similarly, most find themselves under peer pressure to try out new habits such as sex, drugs along with drinking. As a result, the freshmen face a number of consequences. Landow purports that stress in first year college students is highly associated to generalized anxiety (231). More importantly, it causes depression, and irritability, together with insomnia and nightmares. Besides this, some college freshmen complain of frequent fatigue that is accompanied by loss of appetite which is believed to originate from stress. More importantly, stress often leads to a decrease in productivity of the students, subsequently aggravating the stress and therefore influencing a downward spiral. It is therefore important for the college first-year students to maintain a balanced lifestyle ensuring that they receive enough sleep, exercise, food and

Monday, August 12, 2019

Classicism in The Titanic Movie Review Example | Topics and Well Written Essays - 1000 words

Classicism in The Titanic - Movie Review Example On its first voyage however, it crushed into the ice of the Atlantic Ocean, causing it to sink. The film however evolved around the story of Jack (DiCaprio), a commoner and Rose (Winslet) a woman engaged to be married to a wealthy and powerful Duke. The film was heavy on the meeting and the love story that transpired between Jack and Rose but it also showed the class struggle between the rich and the poor and how power can be one-sided. The film ended with only one of the two surviving, thus ending a beautiful love story. The Titanic however, will forever be remembered. Classicism is an "aesthetic attitudes and principles based on culture, art and literature of ancient Greece and Rome, and characterized by emphasis on form, simplicity, proportion, and restrained emotion" (Baigent, 2003). Classicism can be seen as specific philosophical genre expressed in literature, architecture, art and music which has ancient Greek and Roman sources (Wikimedia Foundations, Inc, 2009). "Classical art encompasses antiquity and later works inspired by it, the latter normally referred to as Neoclassical. Adherence to traditional aesthetic formalities was favored over expressionism and individuality. Classic art is distinguished by clarity, order, balance, unity, symmetry and dignity" (World Wide Arts Resources, 2009). Classicism is made up of many concepts: proportion, symmetry, humanism, realism, idealism and Aristotle's theory of the "unities," among others. In this paper, we take a particular look at the concepts of symmetry, humanism and realism in our analysis of the movie Titanic. A Proportion in the Depiction of Characters "Proportion is the relationship of one part of a whole to other parts. In art it has usually meant a preoccupation of artists with finding a mathematical formula for the perfect human body" (Mimi.hu). My own understanding of proportion is the attempt to create a balance in an art so that it is necessary that the correct weight of each part is employed. In the whole of the film, The Titanic, proportion was observed when two classes were featured- the elite and the poor. There was a considerable portion allotted to describe these two classes where the leading characters came from. There was a description of the life of the commoner Jack as he was featured gambling just before the ship left so as to have something for fare. On the other hand, the elite were given especial seats in the ship plus especial treatment during the rescue. There was a proper proportion between the two male characters. Most of Jack was shown un the movie as he was the leading man, but the character of the Duke was also revealed such as heartless, dangerous but seemingly refined. The latter is in contrast with Jack's carelessness and roughness. The Reality of Class Struggle and sinfulness Realism as expressed in visual arts and literature is a depiction of subjects as they live and appear in their ordinary lives, "without embellishment or interpretation", thus in revealing the reality, may actually be ugly or sordid (Wikimedia Foundations, Inc, 2009). "The achievement of realism in theatre was to direct attention to the physical and philosophic problems of ordinary existence, both socially and psychologically. In plays of this mode people emerge as victims of forces larger than themselves, as individuals

Sunday, August 11, 2019

Survey Research and Sampling Assignment Example | Topics and Well Written Essays - 1000 words

Survey Research and Sampling - Assignment Example This method of research is an important measurement area applied in social research within fields such as psychology, sociology, politics and market research (Creswell 2002, p.57). The approach often adopts interviews or questionnaire administration as the data collection modes. The survey method was introduced in the 1930s by a popular sociologist known as Paul Lazarsfeld (Sarah 2012b). Surveys are commonly classified according to instrumentation (questionnaires or interviews) and according to the time-frame of the study (longitudinal or cross-sectional) (Marczyk, DeMatteo&Festinger, 2010, p. 27). Surveys find wide application, but they are best suited for gathering information currently not available from other sources (Sarah 2012c). They therefore, could act as precursors to further and specific research in a quantitative, experimental approach. Surveys conducted in qualitative perspective can lay ground for the development of clearly defined and deeper studies in a quantitative a pproach (Sarah 2012c). This happens after research questions and variables get clearly defined in the preliminary qualitative surveys. Surveys are also important research instruments whose application is favored by various advantages that are inherent to the approach. For example, surveys offer a low cost approach to conducting efficient studies, especially when questionnaires are used. Unlike other approaches to research, surveys could also be tailored to take less time, and therefore, enhancing time efficiency and cost effectiveness (Sarah 2012a). Apart from cost and time effectiveness, surveys also provide high levels of representativeness (Sarah 2012a). This is important in enhancing validity of inferences made and generalization of findings to wider populations. Surveys are also important because they offer convenience in data collection, which could adopt various models such as interviews (face-to-face or telephone) and questionnaires (via mail, e-mail or hand delivery) (Sarah 2012a). This convenience could even allow globalized scale of data collection. Survey approaches are also important and appropriate when numerous variables are involved (Fink 2002, p. 71). Precision and standardization of surveys is also an important element that results from the clear definition and standardization of questions that equally assess participants. Criteria of a good sample in surveys Survey sampling entails the careful selection of survey participants by defining the inclusion and exclusion criteria as well as sample size (Sarah 2012c). Sampling is a critical phase in surveys because it determines the validity and reliability of the overall study. In order to be confident that the survey findings are truly representative of the target population, it is critical to ensure that the sample size is large enough and its components undergo random selection. In order to obtain a good sample a clearly defined criterion for the participants should be set so as to acquire a sa mple from which participants can offer reliable information for the assessment of the phenomenon of interest (Sarah 2012a). For example, in order to assess satisfaction in healthcare delivery, it would be appropriate to sample from the patient population rather than the medical practitioners’ population. Sampling the appropriate target population ensures the sample obtained is good for research. Randomness should also be enhanced so as to improve representativeness, which ensures the sample

Saturday, August 10, 2019

Ethics of the Sale of Body Parts Essay Example | Topics and Well Written Essays - 1250 words - 2

Ethics of the Sale of Body Parts - Essay Example These laws prohibit the sale of body organs but allow individuals to voluntarily donate their body organs (parts). The Uniform and anatomical Act is the most ancient law having been formulated in 1968, to regulate the national distribution and donation of body parts. This act offers individuals an opportunity to voluntarily donate their whole body or part of it, and hospitals and medical institutions have an opportunity to accept such donations (Organ Donation Law, 2012). This law allows citizens of sound mind and who are of legal age to engage in voluntary organ and tissue donation (Organ Donation Law, 2012). According to the law, individual who expect to donate their body parts, must record their intensions most probably in a will (Organ Donation Law, 2012). The donation form should be signed by the potential donor in the presence of two other people. In case the dying patient is unable to write, he or she can indicate his or her intensions orally but in the presence of at least tw o people or; he or she can inform the attending doctor. However, the attending doctor cannot perform the actual organ removal or transplantation of the donated organ. In addition, close family members or guardians have a limited legal mandate to allow their dying patient’s body parts to be donated. ... , research and educational institutions; or individuals who meet all the requirements for receiving the organ or body part(s), the permission to accept donated organs. Ethical issues associated with legalization of the sale of body parts (Phadke & Anadh, 2002). Exploits the poor The legalization of the sale of body parts will lead to situations that exploit the poor. Middlemen involved in the sale of body parts will end up obtaining body parts for sale from unsuspecting poor individuals at a cheaper price. With an increase in the demand for body parts, such middle men may end up selling the body parts at a much higher price. Jeopardizes human dignity The sale of body parts is an act that reduces human dignity. It equates the human body to money. It is morally wrong to exchange human body parts for money. Commercializes the human body Commercialization of the human body is an immoral act. The human life and body are God given and cannot be commercialized. Deters altruism retarding the living-related and cadaver transplant programs The legalization of the sale of body parts will discourage individuals with intentions of donating their body parts to other persons in need. Such individuals may feel discouraged in case they realize that their voluntarily donated body part was commercialized. This will profoundly affect current cadaver transplant programs. Goes against medical professional ethics Medical professional are charged with the responsibility of safeguarding human life. Medical ethics does not allow for the commercialization of the human body. Since the legalization of the sale of body parts will allow its commercialization, it will have gone against the medical code of conduct. Ethical Theories: legalization of the sale of body parts Ethical code of conduct lies

Health Care Demand Scenario Essay Example | Topics and Well Written Essays - 1000 words

Health Care Demand Scenario - Essay Example It will specifically cater for the people who have attained that age and have bodily disabilities that are permanent. Their offering of these facilities will help them in improving the health standards even for the people who live below the poverty line. Medi-Insurance will cover for almost 80% of the total costs incurred in getting medical attention. The adjunct plan will be established by a private indemnity health company. This health scheme is designed to be used by only people who are over sixty five years and have been citizens of the nation for a period of more than ten years. The beneficiaries of this scheme must have been paying taxes for a period of not less than ten years. They must also be recipients of disability gains from the boards dealing with retirement or the community security boards. These benefits are delivered to patients experiencing terminal diseases that affect the kidney and other vital body organs (Colamery, 2003). The people suffering from physical disabi lities will continue receiving the benefits of Medi-Insurance even when they stop receiving benefits from their community boards. The customers of this service will find quality when they are provided with indemnity covers for their stay in hospitals. They will encounter quality medical cover for the medication they receive from these institutions (Matthews and Berman, 2011). The customers will receive services that are worth more than the total amount they have paid the authorities in taxes. The receivers of the service will also find quality in the clearance of their medical bills and their reception of expert medical attention. 2. Define the Demand The customers of this service will be the people who are aged sixty five years and above. They should be citizens of the nation for a period of at least ten years and must have been paying their dues to the relevant authorities. The beneficiaries of this program might also be old people who have disabilities in their physical condition s (Matthews and Berman, 2011). The beneficiaries must also be able to pay the minimum monthly premiums for the services they receive in future. The people who benefit from the scheme will be found in hospitals and the homes for the aged. This is because the scheme has a limitation on the minimum age of their beneficiaries. The plan will differ in terms of the medications they offer and the costs they charge. The plan will cover for the homeless people living on the streets even if they do not pay the premiums (Colamery, 2003). These costs will be catered for by well wishers and other sponsors. There are several consumer traits that will influence the demand for the service. The service will only be dispensed to people who have attained the minimum required age of sixty five years. It will only cover the citizens who have been paying their taxes for the last ten years they have been in the country (Moon, 2006). Citizens who are below this age will not be legible for enrolment in the program and will not receive its benefits. The people who cannot afford to pay the required monthly premiums will also enjoy the benefits of the scheme. Their consumers will not be highly sensitive to the prices they are charged for the services. This is because the scheme will be offering diverse benefits to different groups of people. The benefit’s one receives will correspond to the amount of his contributions towards the