Saturday, January 25, 2020

The Rime of the Ancient Mariner :: essays research papers

The Rime of the Ancient Mariner Coleridge's poem â€Å"The Rime of the Ancient Mariner† is written about a Mariner telling his tale of sin and forgiveness to a small group of young men on their way to attend a wedding. The Mariner claims to be responsible for the deaths of everyone on board of a ship he once sailed because he killed a creature that was supposed to bring them the wind they needed to resume sailing after hitting a plateau in the ship’s movement. Through the writing style in â€Å"The Rime of the Ancient Mariner,† Coleridge tries to convince the reader that the events told in the poem could possibly have been real, thus leaving the reader to partially believe the strange story and Coleridge is right to do so. The theme of â€Å"The Rime of the Ancient Mariner† is God’s forgiveness. The Mariner believes that God has forgiven him for his sins and is telling his tale to the young men on their way to a wedding. The Mariner explains that he killed an albatross, and the entire crew dies because of it. The Mariner, however, survives and asks God’s to forgive him for his sins. When the Mariner prays for forgiveness, the curse preventing the souls of the crew from entering Heaven is broken, the Mariner’s life is spared and Angels from Heaven escort the souls of the dead crewman to the afterlife. In closing, the whole point of the story becomes clear in the following lines. "Farewell, farewell! but this I tell To thee, thou Wedding Guest! He prayeth well, who loveth well Both man and bird and beast. "He prayeth best, who loveth best All things both great and small; For the dear God who loveth us, 03 He made and loveth all." The Mariner, whose eye is bright,

Thursday, January 16, 2020

Algorithm: Flowchart and Trailer Record

Student Name Syed Haseeb Hashmi Registration # FA11-BCS-075 Course Title Design and Analysis of Algorithm Assignment # 1 Submitted To Sir Tanveer Ahmed Siddiqui Due Date 19-03-2013 For Odd Role Number Group Q1. How does a flowchart help a programmer in a program development? Ans. Flowcharts provide the visual representation of a concept and make it clear. A flow chart serves as a blueprint of the program. Flowcharts helps a programmer organize his/her thoughts in a logical order and their presentation.Program development without graphics may be less effective. In big projects it gets difficult to keep things together. Flowcharts provide flexibility, so that you can make changes and restructure the project as you move further and, according to requirement. Flowcharts act as a guide during the analysis and program development phase. Moreover they are also helpful in debugging process. Q2. Draw a flowchart of the logical steps needed to produce a printed listing of all students over the age of 20 in a class. The input records contain the name and age of the students.Assume a sentinel value of 99 for the age field of the trailer record. Sol. Q3. The first 20 records in a data set are to be read and printed. Draw a flowchart for the algorithm to do this job. Make sure that the processing stops after the twentieth record. Sol. Q4. For the employees problem of Question 40 ( even group Q3), we want to count and print the number of only male employees in the age group of 25 to 30. Assume that the input records contain SexCode and Age fields to provide this information. Draw a flowchart for the algorithm to perform this job. Sol. Q5.A set of examination papers, which have been graded with scores form 0 to 100 is to be searched to find how many of them are above 90. The total has to be printed. Prepare a flowchart to do this job. Assume a suitable sentinel value for the trailer record. Sol. Q6. A shopkeeper wants to have a general program for his personal computer, which will prepare bills for each customer as and when he sells goods to them. His idea is that as soon as the customer purchases some goods from his shop, he will supply the description, unit price, and the quantity purchased for each item. s input to the computer. He wants that with this information, the computer should print each item along with its unit price, quantity purchased and the total price. Finally the computer should also print the total cost of all the items purchased by the customer. Assuming a sentinel value of zero for the quantity purchased field in the trailer record, draw a flowchart for the logic to do this job. Q7. Each employee pay record includes the hours worked and the pay rate. The gross pay is to be determined as hours worked times pay rate, and is to be printed for each employee.For all hours worked in excess of 40, the overtime rate, which is 1. 5 times the regular rate, is to be paid. Draw a flowchart for the problem logic to do this. Assume a suitable sent inel value for any of the input fields of the trailer record. Q8. The data file of Question 48 (even group Q7) is expanded to include several sets of data, each requiring calculation of its average. Each data set is followed by a trailer record with a value of -1; however the last data is followed by a trailer record with a value of -2.Draw a flowchart for the logic to perform this task. Solution. Q9. Draw a flow chart to add up all the even numbers between 0 and 100. Before ending, print the result of calculation. Solution. Q10. Draw a flowchart for the logic to find out whether a given triangle ABC is a right angled triangle. Assume that the sides are supplied as input and data. Print the answer as yes or no. Solution. Q11. Draw a flowchart for the logic to convert a number from base 10 to new base using division remainder technique. Solution. Question #2 ) Determine which characteristics of an algorithm the following procedures have and which they lack. Procedure 1 double(n:posit ive integer)// The purpose of this procedure is to double a positive integer while n > =0 do n 2n| Procedure 2 choose(a, b: integers)// The purpose of this procedure is to choose a number from two positive numbers x either a or b| Procedure 3 sum(n:positive integer)// The purpose of this procedure is to find the sum of first 9 digits. sum = 0while i < 10 do sum sum + i| 1.Procedure 4 divide(n:positive integer) // The purpose of this procedure is to find the reciprocal of a positive integer n till 1. while n>= 0 do m 1/n n n-1| Solution Procedure| Input| Output| Precision| Finiteness| Definiteness| Correctness| Generality| 1| NO| NO| YES| YES| NO| YES| YES| 2| NO | YES| NO| NO| YES| YES| NO| 3| YES| YES| YES| YES| YES| NO| YES| 4| NO| YES| NO| NO| YES| YES| NO| b) Modify above procedure so that they satisfies all the properties Procedure 1: if n >= 0 n 2n Procedure 2: if a>0 && b>0 either a or b Procedure 3: i 0 sum 0 while i < 10 do sum sum + i i++ Procedure 4: While n > 0 do m 1/n n n – 1 Question # 3 a) Find gcd(31415, 14142) by applying Euclid’s algorithm. Sol. gcd(31415%14142) gcd(14142%3131) gcd(3131%1618) gcd(1618%1513) gcd(1513%105) gcd(105%43) gcd(43%19) gcd(19%5) gcd(5%4) gcd(4%1) gcd(1%0) = 1 Answer. b) Estimate how many times faster it will be to find gcd(31415, 14142) by Euclid’s algorithm compared with the algorithm based on checking consecutive integers from min{m, n} down to gcd(m, n). Ans.The algorithm for finding gcd based on checking consecutive integers will take 14142 steps, whereas the Euclid’s algorithm took just 11 steps. So, 14142/11 we get 1285. We can say that Euclid’s algorithm is 1285 time faster. Question #4 What does Euclid’s algorithm do for a pair of numbers in which the first number is smaller than the second one? What is the largest number of times this can happen during the algorithm’s execution on such an input? Ans. According to Euclid’s algorithm if the first number i s smaller the second one then we have to swap the both values.We will have to swap only once. Question # 5 a) What is the smallest number of divisions made by Euclid’s algorithm among all inputs 1 ? m, n ? 10? b) Ans. For any possible combination of inputs among 1 ? m, n ? 10, the smallest number of division made by Euclid’s algorithm is 1. c) What is the largest number of divisions made by Euclid’s algorithm among all inputs 1 ? m, n ? 10? d) Ans. For any possible combination of inputs among 1 ? m, n ? 10, the largest number of divisions made by Euclid’s algorithm is 5 for (5,8). Question # 6Euclid’s algorithm, as presented in Euclid’s treatise, uses subtractions rather than integer divisions. Write a pseudo code for this version of Euclid’s algorithm. Ans. If a0 X b2-4ac If X < 0 print ‘no real roots exits’ else X1 -b+sqrt(X)/2a X2 -b-sqrt(X)/2a Return X1 and X2.

Wednesday, January 8, 2020

Parts emporium case study, solutions and answers - Free Essay Example

Sample details Pages: 4 Words: 1316 Downloads: 2 Date added: 2017/06/26 Category Marketing Essay Type Analytical essay Did you like this example? Case Parts Emporium Methodology Briefing 3 Inventory Analysis 5 This Report has been prepared in response to the warehouse inventory situation as appraised to me by Joe Donnell. In assessing the situation, I have found that the installation of a computer model for ordering projection will alleviate out of stock as well as overstock situations. Additionally, the preceding will need to be augmented by physical hand counts on a periodic basis to ensure that the physical inventory matches the computer ordering system counts. Don’t waste time! Our writers will create an original "Parts emporium case study, solutions and answers" essay for you Create order In addressing the present situation, I took a count of parts EG151 and DB032 as a sample in order to assess an actual inventory. That analysis as well as the subsequent recommendations are based upon the preceding, which will also work for the remaining warehoused parts after a physical count is established to enable me to pattern a computer modeling system for each item. The foregoing physical count, and periodic count follow up is a necessary part of the system in order to ensure that the numbers match, and to address count differences to keep the inventories in line with ordering procedures. In conducting my analysis, it was determined that the depletion rates for the two parts followed a consistent pattern, thus far. That analysis was based upon the sales rate; therefore, in order to maintain an accurate ordering program, daily sales information on all parts will need to be forwarded to me for monitoring so that if depletion rates change, I can adjust the ordering program vari ables. The following represents the results of the inventory analysis, and subsequent recommendations. Methodology Briefing In analyzing the problem, I referred to methodologies and techniques from the following sources Dalleck and Fetter (1961) à ¢Ã¢â€š ¬Ã…“Decision Models for Inventory Managementà ¢Ã¢â€š ¬Ã‚ , Brauner et al (2001) à ¢Ã¢â€š ¬Ã…“Velocity Management: The Business Paradigm That Has Transformed U.S. Army Logisticsà ¢Ã¢â€š ¬Ã‚ , Epps (1995) à ¢Ã¢â€š ¬Ã…“Just-in-Tine Inventory Management: Implementation of a Successful Programà ¢Ã¢â€š ¬Ã‚ , and Debnam et al (1992) à ¢Ã¢â€š ¬Ã…“Inventory Analysis for Generation, Transmission and Distribution Cooperatives of the Rural Electric Systemà ¢Ã¢â€š ¬Ã‚ . The preceding has been included here to aid you in your analysis of the findings, and recommendations made herein. The situation here at Case Part Emporium entails a mixture of solutions, thus my referral to the preceding material. Dallack and Fett er (1961, p. 8) provided the basis for à ¢Ã¢â€š ¬Ã…“à ¢Ã¢â€š ¬Ã‚ ¦ inventory planning and control when stockkeeping involves: (1) planning and control on an item-by-item basis, (2) variable demand and/ or variable lead time, (3) either continuous review or review at fixed intervals and (4) unfulfilled demand either back ordered or lost. The decision variables of interest are the reorder point and the order quantity for each item in the set of stockkeeping unitsà ¢Ã¢â€š ¬Ã‚ . Please note, since I have not equated all of the parts, there might be some subject to variable demand, and lead times, thus my inclusion of this methodology. Brauner et al (2001. p. 17) was utilized as supply entails à ¢Ã¢â€š ¬Ã…“ getting the right thing to the right place at the right time à ¢Ã¢â€š ¬Ã‚ ¦Ãƒ ¢Ã¢â€š ¬Ã‚  and the applicability of U.S. Army delivery systems is predicated upon ensuring delivery in unpredictable situations. This reference source aided in defining the process for the par ts utilised in this analysis as well as having a flexible program parameter to handle the potentially differing variables that most surely will crop up in other situations. Brauner et al (2001, p. 18) refer to the Velocity Management process as à ¢Ã¢â€š ¬Ã…“à ¢Ã¢â€š ¬Ã‚ ¦improvement methodology, aims at producing a clear picture of the order fulfilment process that is common to all participants and stakeholdersà ¢Ã¢â€š ¬Ã‚ . The foregoing will be illustrated through the Excel Spreadsheet attachment that shows the methodology utilized. Epps (1995) provided the foundation for minimized inventory under the concept of à ¢Ã¢â€š ¬Ã…“Just-in-Time Inventory Managementà ¢Ã¢â€š ¬Ã‚  which was pioneered by the Toyota Motors Company. The process is based upon a à ¢Ã¢â€š ¬Ã…“à ¢Ã¢â€š ¬Ã‚ ¦philosophy that seeks to do the process right the first time and to eliminate any non-value added activitiesà ¢Ã¢â€š ¬Ã‚ . And finally, Debnam et alà ¢Ã¢â€š ¬Ã¢â€ž ¢s article (1992) was sel ected, even though the field of application, electricity, does not seemingly have applicability here, but it referred to à ¢Ã¢â€š ¬Ã…“Each cooperative participant may be subject to unique conditions, yet is faced with the same fundamental problemthe means by which to evaluate inventory decisions and the cost-effectiveness of decisions made in regard to acquisition and retention of suppliesà ¢Ã¢â€š ¬Ã‚ . In the instance of our company, the word à ¢Ã¢â€š ¬Ã…“cooperativeà ¢Ã¢â€š ¬Ã‚  was replaced with unit parts, thus the applicability to our situation. Inventory Analysis In analyzing the inventory for items EG151 and DB032, I broke down the process into a synthesis chart that enabled me to construct the computer Excel model that is attached. Said chart represented the following key variables: Chart 1 à ¢Ã¢â€š ¬Ã¢â‚¬Å" Case Parts Emporium Inventory Synthesis Variable EG151 DB032 Customer Price $12.99 $8.89 Gross Margin 32% 48% Order Price $4.13 $4.27 Order Charge $20 $10 Flat Fee Delivery $21.40 $21.40 Delivery Time Frame 2 weeks 3 weeks Lot Size 150 1,000 Estimated Depletion Rate 17 per day 54 per week The preceding were broken down into an Excel Model that utilized à ¢Ã¢â€š ¬Ã‹Å"Hypotheticalà ¢Ã¢â€š ¬Ã¢â€ž ¢ as well as à ¢Ã¢â€š ¬Ã‹Å"Actualà ¢Ã¢â€š ¬Ã¢â€ž ¢ inventory situations to provide a picture of the methodology, and to construct the Ordering point scenarios. As shown on the attached Excel Spreadsheets the ordering time frame delay for the EG151 was calculated as six days, with the depletion rate of ordered lots of 150 units taking 9 days. This meant that under the present rate of depletion, orders for replenishment had to be placed far enough in advance to ensure new parts delivery before an out of stock situation. In running the model, I utilized the depletion rate to calculate the order points, which are indicated by à ¢Ã¢â€š ¬Ã‹Å"Filledà ¢Ã¢â€š ¬Ã¢â€ž ¢ followed by a number that signifies the day (in the case of part DB032 a weekly time frame was utilized as a result of the larger lot size). As shown on the Excel model, the in stock depletion runs down to an estima ted 32 units on hand before the new inventory arrives, thus maintaining sufficient supplies. Chart 2- Excel Model Examples In the instance of part DB032, the larger lot size necessitated utilizing a weekly format. In the instance of inventory depletion, the on hand count dropped to an average of 80 units before the replenishment supply arrives. The other program parameters are thus the same and can be utilised in your review. Conclusion and Recommendations In analyzing the parts utilized in this examination I took into account the variable concerning the flat fee delivery charge of $21.40, and suggest that we should not include this in a new pricing scheme as such penalizes those customers who pick up their orders and will thus notice the price increase. Adding in the flat fee delivery charges across the board thus was not computed in any of the variables for that reason. I did not utilize the in-house ordering administrative charges in the models, as that is an accounting function that has already been included in the pricing. In addition, I examined the lot sizes and would al so like to suggest if we might convince the Bendox Corporation to provide us with a lot size of 500 units, as this reduced ordering unit would be more consistent with our utilisation rate. In any event, I prepared Excel Spreadsheet models for both variables in a à ¢Ã¢â€š ¬Ã‹Å"Hypotheticalà ¢Ã¢â€š ¬Ã¢â€ž ¢ as well as à ¢Ã¢â€š ¬Ã‹Å"Actualà ¢Ã¢â€š ¬Ã¢â€ž ¢ usage mode. As out of stock does not represent a desirable business situation for us, I would appreciate your comments on the prepared material. If positive, I will immediately proceed to conduct an analysis of all parts, and the variables associated with them in order to construct similar computer models for analysis, and recommendation. Brauner, M., Dumond, J., Eden, R., Folkson, J., Girardini, K., Keyser, D., Peltz, E., Pint, E., Wang, M. (2001) Velocity Management: The Business Paradigm That Has Transformed U.S. Army Logistics. Rand, Santa Monica, CA, United States Dalleck, W., Fetter, R. (1961) Decision Models for I nventory Management. Richard D. Irwin, Inc., Homewood, IL, United States Debnam, D., Hall, B., Lovas, T., Miller, T. (1992) Inventory Analysis for Generation, Transmission and Distribution Cooperatives of the Rural Electric System. Vol. 33. Management Quarterly Epps, R. (1995) Just-in-Tine Inventory Management: Implementation of a Successful Program. Vol. 17. Review of Business