A company interviewed 700 people and ranked them based on their qualifications. The highest score given is 3000 and lowest score is 500. The company is planning to hire 200 of these people with the highest scores. Write a pseudo code/ algorithm that is the most efficient in terms of complexity.
We sort the scores in the descending order and choose the first 200 people. This is a greedy approach. The pseudocode is:
START
INPUT scores[], names[]
SORT scores[], names[] in descending order of scores[]
FOR i=1 to 200
OUTPUT names[i]," is hired"
END FOR
END
(scores is an array used to store the scores of the people and name is an array used to store the names of the people.)
A company interviewed 700 people and ranked them based on their qualifications. The highest score given...
The XYZ Company needs you to write a program that will allow them to enter the weekly sales for a salesperson and then the program will calculate things such as most sales (and what day on which they happened), least sales (and day on which they happened), total sales, and daily average. The program will need to do the following: • Validate the user input to ensure that it is not less than 0.0 (0.0 will be acceptable if there...
please HELP
Your internship term paper assignment is to do an interview-based term paper dealing with career information on your field of career interest. Specifically, you will be interviewing three persons who currently work in the field you hope to enter. It is up to you to decide who to interview and how to define your field of interest. Your interest may be a broad category or you may have a very focused or specific interest. By attempting to define...
1. find an article about a product or service that impacts your daily life and write 1 to 2 paragraphs describing the item, how it impacts your life, and what factors you think are impacting the supply and demand of this item. Be sure to include the URL of the article you accessed for this question. 2.What are the ethics of outsourcing? Is a corporation’s primary responsibility to its stockholders, by reducing labor costs? Or is its primary responsibility to...
Employees Love SAS SAS, a software company established in 1976, has consistently been praised as one of the best places to work. Year after year, the company receives high rankings and awards from magazines such as Fortune and Working Mother. Review the three segments of the case and write your responses as instructed. Because employees do the actual work of the business and influence whether the firm achieves its objectives, most top managers agree that employees are an organization's most...
Starbucks Becomes a Public Company Starbucks' initial public offering (IPO) of common stock in June 1992 turned into one of the most successful IPOs of the year. With the capital afforded it by being a public company, Starbucks accelerated the expansion of its store network. Starbucks' success helped specialty coffee products begin to catch on across the United States. Competitors, some imitating the Starbucks model, began to spring up in many locations. The Specialty Coffee Association of America predicted that...
Company Case In-N-Out Burger: Customer Value the Old-Fashioned Way In 1948, Harry and Esther Snyder opened the first In-N-Out Burger in Baldwin Park, California. It was a simple double drive-thru setup with the kitchen between two service lanes, a walk-up window, and outdoor seating. The menu consisted of burgers, shakes, soft drinks, and fries. This format was common for the time period. In fact, another burger joint that fit this same description opened up the very same year just 45...
SESSION 12 Workers for Ivanka's clothing company The reality of working in a factory making clothes for Ivanka Trump’s label has been laid bare, with employees speaking of being paid so little they cannot live with their children, anti-union intimidation and women being offered a bonus if they don’t take time off while menstruating. The Guardian has spoken to more than a dozen workers at the fashion label’s factory in Subang, Indonesia, where employees describe being paid one of the...
Summary should briefly analyze the central problems and issues of the case and provide some analysis and suggestions. Thank you. Lean Initiatives and Growth at Orlando Metering Company It was late August 2002 and Ed Cucinelli, vice president of Orlando Metering Company (OMC), sat in his office on a late Saturday morning. He had come in to prepare for some strategic planning meetings that were scheduled for the upcoming week. As he noticed the uncommon silence in the building, Ed...
Assess whether from a utilitarian, rights, justice and caring
perspective, Unocal did the right thing in deciding to invest in
the pipeline and then in conducting the project as it did. In your
view, and using your utilitarian, rights, justice and caring
assessments, did Unocal do the right thing?
CASE:
Unocal in Burma Union Oil Company of California, or Unocal, was founded in 1890 to develop oil fields around Los Angeles and other parts of California. By 1990, Unocal had...
Please read the case provided below and answer the following question: In 2007, JetBlue was a booming young airline with a strong reputation for outstanding service. In fact, the low-fare airline referred to itself as a customer service company that just happened to fly planes. But on Valentine's Day 2007, JetBlue was hit by the perfect storm-literally-of events that led to an operational meltdown. One of the most severe storms of the decade covered JetBlue's main hub at New York's...