Tuesday, January 28, 2020

Search and sort Essay Example for Free

Search and sort Essay Direction: Provide the appropriate output for the following machine problems. Note: To authenticate the output, please insert the printscreen and the source code in a zip file. Deadline of submission: September 18, 2013 (no extension). 1. Write a program to test the method binarySearch. Use either the method insertionSort or selectionSort to sort the list before the search. 2. Suppose that the elements of a list are in descending order and they need to be put in ascending order. Write a Java method that takes as input an array of items in descending order and the number of elements in the array. The method rearranges the element of the array in ascending order. Your method must not incorporate any sorting algorithms, that is, no item comparisons should occur. 3. Write a method, remove that takes three parameters: an array of integers, the length of the array, and an integer, say, removeItem. The method should find and delete the first occurrence of removeItem in the array. If the value does not exist or the array is empty, output an appropriate message. (Note that after deleting the element, the array size is reduced by 1.) You may assume that the array is unsorted. 4. Write a method, removeAt, that takes three parameters: an array of integers, the length of the array, and an integer, say, index. The method deletes the array element indicated by index. If index is out of range or the array is empty, output an appropriate message. (Note that after deleting the element, the array size is reduced by 1.) You may assume that the array is unsorted. 5. Write a program to keep track of a hardware store’s inventory. The store sells various items. For each item in the store, the following information is kept: item ID, item name, number of pieces ordered, number of pieces currently in the store, number of pieces sold, manufacturer’s price of the item, and the store’s selling price. At the end of each week, the store manager would like to see a report in the following form: Friendly Hardware Store itemID itemName pOrdered pInStore pSold manufPrice sellingPrice 4444 Circular Saw 150 150 40 45.00 125.00 3333 Cooking Range 50 50 20 450.00 850.00 . . . Total Inventory: PHP #########.## Total number of items in the store: _______ The total inventory is the total selling value of all the items currently in the store. The total number of items is the sum of the number of pieces of all the items in the store. Your program must be menu driven, giving the user various choices, such as: check whether an item is in the store, sell an item, and print the report. After inputting the data, sort it according to the items’ names. Also, after an item is sold, update the appropriate counts. Initially, the number of pieces (of an item) in the store is the same as the number of pieces ordered, and the number of pieces of an item sold is zero. Input to the program is a file consisting of data in the following form: itemID itemName pOrdered manufPrice sellingPrice Use seven parallel vectors to store the information. The program must contain at least the following methods—a method to input the data into the vectors, a method to display the menu, a method to sell an item, and a method to print the report for the manager. After inputting the data, sort it according to the items’ names.

Monday, January 20, 2020

The Film Amadeus Essay -- History Compare Movie Essays Papers

The Film Amadeus This paper will take a look into the movie Amadeus, to see if the film accurately depicts the history of Amadeus and the enlightenment of the characters. The time period that the film takes place in is the 18th century. There is a mixture of social class in this film. There are rulers and commoners shown in this film. The main characters in the film which are Mozart, Salieri, and Emperor Joseph represent actual historical figures. The film was made in 1984.   Ã‚  Ã‚  Ã‚  Ã‚  The film was somewhat accurate with the characters and the time, but for the most part the film never stated what year everything was happening in. Someone could tell that the time frame of the film was the 18th century, but you really couldn’t tell the exact year it was happening. For example in one scene where Mozart’s father comes to see him and his wife, we find out that she is pregnant. Later on in the movie she has a child. There was no reference of time in the film. You can tell that months passed through simple action like that one in the film. Another example would be in the time Amadeus took to make his works. It’s hard to tell how long he took to make his operas, the way the filmed showed. As for the characters the film depicted them well. There were some things that did seem right. For the way they showed Salieri to kill Mozart. Looking at information on this, I couldn’t find a fact to state that Salieri killed Mozart. As stated in Funk and Wagnalls New Encyclopedia â€Å"he died of typhoid fever in Venna on Dec. 5 1791; his burial was attended by few friends and the place of his grave is unmarked.† This states nothing that Salieri was the reason for Amadeus’ death. The film is trying to market the film as a tale of murder. But there really wasn’t any murder in this film. More like a man willing to die to finish something he believed as a work of art. The film depicts Mozart more to killing him self then Salieri murdering him. Someone could argue that Salieri did kill Mozart by dressing like his father to make the final opera. But this was Mozart own doing, as his obsession with having perfect music took him over. Not to get me wrong the film did a good job in showing Mozart. It had historical value and entertainment. This film can be viewed as a quick historical vie... ...nship to God differs from Mozart because Salieri didn’t envy God he hated God for giving Mozart this gift. He did envy Mozart because he was everything he wanted to be.   Ã‚  Ã‚  Ã‚  Ã‚  In conclusion this film gave a good depiction of Mozart. Some of the points in the film weren’t that accurate. Many little feature could of helped the film in be more of a accurate historical film. This wasn’t a historical film, it was more for entertainment value. If this film was not an entertaining film like it was then it would have never have been should an award winning movie. This was a great film. I enjoyed it, found it funny, and moving at times. I know little about Mozart before. After seeing the film I did learn more about Mozart. This was not a boring film as I wanted to see what is going to happen. I would recommend this film to be seen. If someone wants to be entertained they should see it. If someone wants to learn a little about Mozart they should see the film, but if you want to learn Amadeus’s whole life this film will not do this. So basically watch this film for enjoyment and to learn the general information about Mozart.   Ã‚  Ã‚  Ã‚  Ã‚     Ã‚  Ã‚  Ã‚  Ã‚  

Sunday, January 12, 2020

Product Life Cycle Essay

Life Cycle Hats are a product that have become deeply incorporated in the American culture and lifestyle. In the United States, hats are nearly always present in everyday life, from sports events (i. e. baseball games) to the streets of New York where one might see people wearing hats as a fashion accessory in their everyday life. Today, there are a plethora of different styles and varieties of hats. For example, one can buy university hats, sports teams hats and even superhero hats, thus causing the hat industry grow everyday. In this paper, I will analyze the hat industry life cycle, specifically focusing on the â€Å"New Era† company, one of the most popular hat companies in the United States and worldwide. The New Era Cap Co. Inc. was founded in 1920 and was first known as E. Koch Cap Co. Their headquarters is located in Buffalo, New York, and the CEO of the company is a member of the Koch family – Mr. Cristopher H. Koch. The New Era Cap Co. has expanded globally into Canada in North America, Brazil in South America, Korea and Japan in Asia, and more than 40 countries in Europe. Even though hats are New Era’s biggest product, they also sell other products such as jackets, tees, hoodies and many cleaning kits and accessories for hats. New Era provides products for men, women and kids of all ages, and among their most famous hat lines are the MLB, NHL, NBA, NFL and College lines. New Era offers different styles of hats such as the â€Å"fitteds,† which have different sizes to fit varying head sizes, and also the â€Å"snapbacks,† which you can adjust to the size of your head. Target Markets New Era targets its products towards a younger crowd, usually sports fans, ranging from kids as young as 15 years old to people around 35 years of age. The reason New Era targets a younger market is because the hats are accessories generally used by younger people, and it is hard to find peoNple older than 35 years of age wearing hats on a daily basis. In addition, there are many rappers today that wear New Era hats in their music videos and at concerts. Furthermore, various athletes can be seen representing their sports teams via New Era hats. As a result, this causes younger people who look up to these musicians and athletes to want to wear New Era hats. Overall, New Era does a great job at targeting their marketing towards younger people. Today, the United States is the country with the biggest market which New Era sells its product to. Followed by the U. S. market is the European market, which is so large that it consists of more than 40 countries. However, both locally and globally, New Era always try to target the same type of crowd. An example that supports this statement comes from Brazil. In Brazil, New Era is already beginning to produce hats representing popular Brazilian soccer teams, which is exactly what the Brazilian sports fans want. The 4 Ps While New Era’s main product is undoubtedly their headwear products, the company also manufactures apparel products such as tees, jackets, hoodies, belts and also cleaning kits for hats, which only adds value to their products. While most of their headwear products are made with sports teams logos on the front, their apparel products focuses more on the New Era Brand rather than sports teams. Many of their t-shirts present the New Era logo on the front instead of teams logos, which is similar with their hoodies and belts. The cleaning kits for hats is a superb deal for New Era because it causes customers to buy accessories that compliment their other products. The kit also keeps the customers happy because when hats get dirty, they definitely do not look nearly as attractive, so having a cleaning product at hand is very convenient. New Era’s prices range depends greatly on the hat style, as well as whether the product is a new arrival or whether it is a sales item. For new arrivals, the price generally ranges from U$25. 00 to U$50. 00. For the â€Å"snapback† styles (adjustable hats), the price can range from roughly U$20. 00 to U$40. 00. However, the fitted styles (ones that are made in different sizes) can range from U$10. 00 to U$50. 00. There is also a section of superhero hats that range from approximately U$20. 00 to U$50. 00. The hats labeled as â€Å"sales items† range from U$10. 00 to U$35. 00. In the United States, a great percentage of the New Era products are sold online on New Era’s website. The website is very easy and friendly to use, providing pictures of every single product available, making it extremely easy and convenient to purchase New Era products online. In the US, there are also specialized retail stores such as â€Å"LIDS† that strictly sell hats, with New Era being their most predominant brand. In countries like Brazil and countries in Europe, there is no specialized store like â€Å"LIDS,† but there are New Era hats being sold at stores specialized in sports. In these countries, New Era also runs their own retail stores where they have all of the same styles of hats than the ones available on the website, making them dream stores for hat lovers. Much of New Era’s promotion is done through sports events to target their main public. An example of that is the fact that New Era makes the hats of all Major League Baseball teams, while also holding over 200 licenses to make hats for other various sports teams. New Era also sponsors major events in the sports world, such as the 13th Annual Transworld Skateboarding Awards. Furthermore, in April of 2012, New Era became the official on-field hat provider for the National Football League (NFL). Ultimately, New Era focuses most of its marketing and promotion efforts towards sports events where they are most likely to reach all of their customers, as well as potential customers, at once. Product Life Cycle New Era Cap Co. Inc. has been around since the 1920s, and their product is in the maturity stage at the PLC. New Era already has an established brand worldwide and its sales and profits have reached a peak. Obviously, if New Era decides to open more global operations in South America or maybe Australia, they could make much more profits, but at the stage they are at right now, they reached maturity. The customers that purchase New Era hats today are the late majority, and even though New Era is always trying to come up with new designs and styles, the essence of the product remains the same. As it is normal in this stage, New Era spends a lot of its money and efforts towards marketing to try keeping the name of the brand growing and to attract more customers as well. As for competition, for a product that has reached its maturity as New Era hats have, there should be more competition than what they have today. New Era only faces serious competition from two companies today, as we are going to find out in the next section. Competition Although New Era is the leading hat company in the United States, there are other hat companies that compete against New Era for a bigger share in the market. The biggest competition New Era faces comes from the company Mitchell ; Ness Nostalgia Co. (known simply as Mitchell ; Ness) which is based in Philadelphia – PA. Mitchell ; Ness is actually older than New Era Cap Co. Inc. , as it was founded in 1904. However, differently than New Era, Mitchell ; Ness does not only focus its sales on hats, but also throwback jerseys, hats, tees, fleeces, and jackets. Mitchell ; Ness, however, competes head-to-head against New Era because it produces hats for NBA, NHL, NFL, and NCAA, essentially the same styles as New Era. The difference between the two is that New Era is more known for its fitted hats, while Mitchell ; Ness is more known for its snapback hats. New Era is also a much bigger company than Mitchell and Ness, with 1700 employees worldwide as compared to Mitchell ; Ness’ 200 employees in the US only. In terms of money, New Era’s revenue in 2007 was U$343. 7 million, while in 2012 Mitchell & Ness’s revenue was 30 million. The other strong competition New Era faces comes from a younger company called Zephyr Hats. Zephyr Hats was founded in 1993 and similarly to New Era, Zephyr hats only focuses on producing hats – nothing else. Zephyr, however is a much smaller company than both New Era or Mitchell ; Ness, and as of now they only produce hats for the NHL and NCAA schools. Also, Zephyr has a very strong commitment to its customers to deliver the best quality product they possibly can, and to serve the customers the best they can before anything else. It will still take a while for Zephyr Hats to expand as large as New Era or Mitchell ; Ness, but they are definitely on the right path towards achieving such a goal. New Era Cap Co. Inc. also faces competition against the black market. There are many fake New Era products being produced and sold around the world, proving to be a major challenge that the company has to face. With the ncreasing popularity of the brand, people try to take advantage of it by producing hats that bring the New Era logo, but that are not made by the real New Era Cap Co. Inc. Whereas some of these ‘fake’ hats may look very similar to the real ones, there are a couple of small defects on them that help to distinguish the fake hats from the real ones. Outside of the US, especially in developing countries like Brazil, th e black market problem is huge because people can buy â€Å"fake† hats for a lot cheaper than what they cost in the retail stores. Recommendations It is true that New Era Cap has made its name globally and seems to only be growing, despite its competition and other problems, such fake production of New Era Hats. However, there are many ways in which they can improve their brand name and keep the brand growing. New Era is very active in the sports scene (NBA, NFL, NHL, NCAA, Skateboarding, etc), and one way in which they could improve themselves as a brand would be to promote tournaments and competition that bring the New Era name. These events can include skateboarding competitions, street basketball tournaments, high school football tournaments, etc. This would help the name of the brand through supporting these sports and expanding their name to different groups of fans. New Era should also think about a solution to decrease the amount of fake New Era hats in the black market. One solution could be a promotion where every time someone purchases an authentic New Era Hat, they get a coupon with a number which they can enter on New Era’s website for the chance to win a prize (ex: 5 free New Era hats). Another promotion could be – â€Å"every 3 New Era Cap purchases, get 30% off the next purchase. This would give incentive to people to buy legitimate New Era Cap products, thus increasing their revenue, improving their name brand, and stopping the circulation of fake New Era in the black market. One other recommendation for New Era would be to pursue licences and contracts to start making hats for soccer clubs worldwide. Just like the hats they make for MLB and NFL, New Era could and should open their brand to the Premier League (England) and other European soccer leagues. Soccer leagues are known to have very devoted fans that would be more than willing to purchase merchandise, such as hats, if they were available in the market.

Saturday, January 4, 2020

Dr. Alex Shigo Biography - Arboriculture

Dr. Alex Shigo (May 8, 1930-October 6, 2006) was a university-trained tree pathologist who was widely considered the father of modern arboriculture. Dr. Shigos study of tree biology led to a broadened understanding of the compartmentalization of decay in trees. His ideas eventually led to many changes and additions to commercial tree care practices, such as the currently accepted tree pruning method. Fast Facts: Alex Shigo Known For: Pioneering tree-friendly pruningBorn: May 8, 1930 in  Duquesne, PennsylvaniaDied: October 6, 2006 in Barrington, New HampshireEducation: Waynesburg University, West Virginia UniversityPublished Works:  Tree Pithy Points, Compartmentalization of Decay in Trees, A Tree Hurts, Too, A New Tree Biology and Dictionary, Tree Anatomy, Tree Pruning Basics, Modern Arboriculture: A Systems Approach to the Care of Trees and Their Associates, and moreAwards and Honors:  Chief Scientist for the U.S. Forest ServiceSpouse: Marilyn ShigoChildren: Judy  Shigo  SmithNotable Quote: Many people spend time on what goes wrong with a tree; I wanted to study what goes right. Education Shigo received a bachelors of science degree from Waynesburg College near Duquesne, Pennsylvania. After serving in the Air Force, He continued to study botany, biology, and genetics under his former biology professor, Dr. Charles Bryner. Shigo moved from Duquesne and continued his education at the University of West Virginia, where he received a combination Masters and Ph.D. in pathology in 1959. Forest Service Career Dr. Shigo started a career with the U.S. Forest Service in 1958. In time, he became Chief Scientist for the Forest Service and retired in 1985. His earliest assignment, however, was to learn more about tree decay. Shigo used a newly invented one-man chainsaw to open trees in a way no one else had, by making longitudinal cuts along the stem rather than transverse cuts across the stem. His tree autopsy technique led to many important discoveries, some of which were and are controversial. Shigo believed that trees are not made up of mostly dead wood but rather can contain disease by creating compartments. CODIT Shigo found that trees respond to injuries by sealing the wounded area through the process of compartmentalization. This theory of compartmentalization of decay in trees, or CODIT, was Shigos biological brainstorm, leading to many changes and adaptations in the tree care industry. Instead of healing like our skin, an injury to a tree trunk results in surrounding cells changing themselves chemically and physically to prevent the spread of decay. New cells are produced by cells lining the cut area to cover and seal the injured area. Instead of trees healing, trees actually seal. The Controversy Dr. Shigos biological findings are not always popular with arborists. His findings disputed the validity of many old techniques that the arboricultural industry has used for over a century and taken for granted as undeniably true. His work showed that the traditional methods were unnecessary or, even worse, harmful. In Shigos defense, his conclusions have been confirmed by other researchers and are now a part of current ANSI standards for tree pruning. The bad news is that many commercial arborists continue to perform flush cuts, toppings, and other practices that Dr. Shigos research showed to be harmful. In many cases, arborists perform these practices knowing they are harmful, but believing their business cannot survive by practicing their craft under Shigo guidelines. Circumstance Surrounding Death According to the Shigo and Trees, Associates website, Alex Shigo died on Friday, October 6. He was at his summer cottage at the lake, going to his office after dinner when he fell going down the steps, landing on the patio, and died from a broken neck.