Questions
Create a strongly typed enumerator for the days of the week, and put it in a...

  1. Create a strongly typed enumerator for the days of the week, and put it in a header file enum.h

  2. Create a test program with a switch statement that has a function that prints the day word based on numeric input from the user.  

  3. Utilize the local predefined variable __func__ to display the name of the current function.

Student Learning Outcomes:

  • Create and utilize strongly typed enumerators

  • Correctly implement scope resolution for strongly typed enumerators

  • Cast variable types for proper comparisons

  • Display the current function’s name

STYLE NOTE: enumerators are constant, so many people think that the entire enumerator value (e.g. sunday) should be in all caps. Others follow the rule that since the variable type is created by the programmer, it should start with an uppercase letter. You may choose either one, but be consistent. I happen to use the first as it gives a clear visual indicator that it is a special variable.

In: Computer Science

A brief explanation is needed for these true/false questions. a) A method that contains a try-catch-finally...

A brief explanation is needed for these true/false questions.

a) A method that contains a try-catch-finally structure may also have a “throws” declaration.

b) An arithmetic exception such as division by zero can be avoided by careful programming while an I/O exception such as file not found may occur regardless of the precautions taken by the programmer.

c) Lets assume that you create an object x of the Object class. You can assign any object (objects of other classes) to the object x directly (without explicit type casting).

d) If bounded parameters are employed, this means of restricting the types that can be used as generic type arguments.

e) We can create an object of a class which is extended from an abstract class without implementing its abstract methods, if we are not going to use these abstract methods.

f) Generic type information is available to the JVM at runtime.

In: Computer Science

GOOGLE Started in the late 1990s, Google grew rapidly to become one of the leading companies...

GOOGLE Started in the late 1990s, Google grew rapidly to become one of the leading companies in the world. Google’s mission is “to organize the world’s information and make it universally accessible and useful.” It is operating on a simple but innovative business model of attracting Internet users to its free search services and earning revenue from targeted advertising. In the winner-takes-all business of Internet search, Google has captured considerably more market share than its next highest rival, Yahoo!. This has turned Google’s Web pages into the Web’s most valuable real (virtual) estate. Through its two flagship programs, AdWords and AdSense, Google has capitalized on this leadership position to capture the lion’s share in advertisement spending. AdWords enables businesses to place ads on Google and its network of publishing partners for as low as 25 cents per thousand impressions. On the other hand, it uses AdSense to push advertisements on publishing partners’ Web sites targeting specific audience and share ad revenue with the publishing partner. This creates a win–win situation for both advertisers and publishers and developed Google into one giant sucking machine for ad revenue. However the European Union recently fined Google $2.7 billion for using its dominant position to favor its own price comparison service, Google shopping. This is illegal under EU law as it is unfair to rivals and denied consumers a real choice among competitor services in thirteen European countries. Even as a large company, Google continues to take risks and expand into new markets. It currently offers over 120 products or services, including google translate, google maps, google+ social network and Android, the worlds most used operating system. Sergey Brin and Larry Page, the founders, declared in Google’s IPO prospectus, “We would fund projects that have a 10% chance of earning a billion dollars over the long term. . . We place smaller bets in areas that seem very speculative or even strange. As the ratio of reward to risk increases, we will accept projects further outside our normal areas.” They further add that they are especially likely to fund new types of projects when the initial investment is small. Google promotes a culture of creativity and innovation in a number of ways. IT encourages innovation in all employees by allowing them to spend 20% of their time on a project of their own choosing, and to switch between project teams. In addition, it offers benefits such as free meals, on-site gym, on-site dentist, and even washing machines at the company for busy employees. Managers have both a portfolio of projects and a portfolio of people to manage: Google has a cross-functional (matrix) organizational structure but with as few middle managers as possible.. Despite open and free work culture, a rigid and procedure-filled structure is imposed for making timely decisions and executing plans. For example, when designing new features, the team and senior managers meet in a large conference room. They use the right side of the conference room walls to digitally project new features and the left side to project any transcribed critique with a timer clock giving everyone 10 minutes to lay out ideas and finalize features. Thus, Google utilizes rigorous, data-driven procedures for evaluating new ideas in the midst of a chaotic innovation process. Google’s vice president for search products and user experience, Marissa Mayer, outlines nine notions of innovations embedded in the organizational culture, processes, and structure of Google. 1. Ideas come from everywhere: Google expects everyone to innovate, even the finance team. 2. “Innovation; not instant perfection”: Google employees can take a good idea and experiment to improve upon it. 
 Google launches early and often in small beta tests, before releasing new features widely. 3. “A license to pursue dreams”: To help promote innovation, Google employees get one “free” 
day each week to work on their pet ideas. Half of new launches come from this ‘‘20% time.’ 4. “Morph projects, don’t kill them”: Google employees should always to find something
salvageable in projects that aren’t pursued 
 5. “Share everything you can”: Google employees have a lot of collective knowledge. To encourage sharing, each employee writes an e-mail on Monday with five to seven bullet points of what they learned earlier and Google then consolidates this information and makes it available to the employees. 
 Every idea, every project, every deadline—it’s all accessible to everyone on the intranet. 6. “Worry about usage and users, not money: Google will be successful if we can please the users; advertisers (and their money) will follow. 
 7. Don’t politic, use data “Data is apolitical”: Mayer discourages the use of ‘‘I like’’ in meetings, pushing staffers to use metrics”: Design is a science at Google. Good ideas must be supported with evidence. 
 8. “Creativity loves constraints”: Google employees work best when they are challenged and have to think outside the box. Give people a vision, rules about how to get there, and deadlines. 
 9. “You’re brilliant? We’re hiring”: Google likes to hire really smart people—even if they may not have a lot of experience.
 Founders Larry Page and Sergey Brin approve hires. They favor intelligence over experience. Keeping up with the organizational strategy of Google, its IT department provides free and open access to IT for all employees. Rather than keeping tight control, Google allows employees to choose from several options for computer and operating systems, download software themselves, and maintain official and unofficial blog sites. Google’s intranet provides employees information about every piece of work at any part of Google. In this way employees can find and join hands with others working on similar technologies or features. In building the necessary IT infrastructure, Google’s IT department balances buying and making its own software depending on its needs and off-the-shelf availability. For example, it uses Oracle’s accounting software, whereas it built its own customer relationship management (CRM) software, which it then integrated with its ad systems. It also supports open source projects both by extensively using open source software within the organization and by paying college students to contribute to them through programs like Summer of Code. Google’s Ads Data Infrastructure systems run the multibillion dollar ads business at Google. High availability and strong consistency are critical for these systems. Google builds systems that run in multiple datacenters all the time, and adaptively move load between datacenters, with the ability to handle outages of any scale completely transparently, causing minimal disruption to the operational system. Their F1 system is a distributed relational database system that combines high availability and the scalability of NoSQL systems, and the consistency and usability of traditional SQL databases. Mesa is a petabyte-scale data warehousing system with high availability, reliability, fault tolerance, and scalability for large data and query volumes. In addition, Google also develops generic applications such as GoogleApps for both internal and external use. Given the nature of business, security of information resources is critical for Google. For instance, its master search algorithm is considered a more valuable secret formula than Coca- Cola’s. However, rather than improving IT security by stifling freedom through preventive policy controls, Google puts security in the infrastructure and focuses more on detective and corrective controls. Its network management software tools combined with 150 security engineers constantly look for viruses and spyware, as well as strange network traffic patterns associated with intrusion.

1. Which underlying principles and factors affect Google’s organizational functions and systems in a global environment? 
2

6. What does Google use as information sourcing options, explain your answers

In: Operations Management

Consider the titration of 20.00 ml of 0.0200 M sodium benzoate, C6H5COO-Na+, with 0.0125 M HCl....

Consider the titration of 20.00 ml of 0.0200 M sodium benzoate, C6H5COO-Na+, with 0.0125 M HCl.

Write the chemical reaction occurring in this titration as a net ionic equation.

Does the reaction go to completion? Show the relevant calculation.

What is the equivalence point of this titration?

Calculate the pH of the initial point, before addition of HCl (VHCl = 0.00 mL).

Calculate the pH after the addition of 10.00 mL of HCl (VHCl = 10.00 mL).

Calculate the pH after the addition of 16.00 mL of HCl (VHCl = 16.00 mL).

Calculate the pH after the addition of 20.00 mL of HCl (VHCl = 20.00 mL).

Calculate the pH after the addition of 32.00 mL of HCl (VHCl = 32.00 mL).

Calculate the pH after the addition of 40.00 mL of HCl (VHCl = 40.00 mL).

In: Chemistry

​Toni's Typesetters is analyzing a possible merger with​ Pete's Print Shop. ​Toni's has a tax loss...

​Toni's Typesetters is analyzing a possible merger with​ Pete's Print Shop. ​Toni's has a tax loss carryforward of $ 450,000​, which it could apply to​ Pete's expected earnings before taxes of ​$225,000 per year for the next 5 years. Using a 29​% tax​ rate, compare the earnings after taxes for​ Pete's over the next 5 years both without and with the merger.

Without the​ merger, Pete's Print​ Shop's earnings after taxes in years 1 through 5 is $_____. (Round to the nearest​ dollar.)

With the​ merger, the​ firm's earnings after taxes in year 1 is ​$____. (Round to the nearest​ dollar.)

With the​ merger, the earnings after taxes in year 2 is ​$______. (Round to the nearest​ dollar.)

With the​ merger, the earnings after taxes in years 3 through 5 is ​$____. Round to the nearest​ dollar.)

In: Finance

One of the most controversial issues in the field of Marketing is the long-run impact that...

One of the most controversial issues in the field of Marketing is the long-run impact that advertising has on brand awareness. That is, while a short-term impact is commonly observed (i.e. increased awareness of the advertised brand within a one-two week time frame of the ad appearing), the longer-term impact is less well understood. To this end, the Marketing Research Firm (MRF) conducted a study to assess the longer-term impact of advertising on his newly launched brand of detergent, clean-so-good (CSG).

The way MRF conducted the study for CSG was as follows:

  1. MRF split the population into families without children (FWTC) and families with children (FWC).
  2. From each of these two populations MRF selected a random sample of 50 households without replacement from phone company records.
  3. Before any advertising occurred, MRM asked each of the households to check off from a provided list of all major brands of detergents (of which CSG is one of them) which brands they were aware of. (The BEFORE data)
  4. The results of the BEFORE study indicated that 12 out of 50 FWTC were aware of CSG while 18 out of 50 FWC were aware.
  5. For a one-week period CSG ran a set of national advertisements in all major markets.
  6. Six months later MRF collected data in an identical fashion to step (iii), but now AFTER the advertising campaign.
  7. The results of the AFTER study, obtained from a new random sample (without replacement) from the FWTC and FWC populations indicated that 14 out of 50 FWTC and 28 out of 50 FWC were aware of CSG.

Based on the information, answer the following:

  1. State an appropriate null and alternative hypothesis to test that the awareness BEFORE the advertising was the same in the FWTC and FWC groups versus the alternative that it was not the same in the FWTC and FWC group.
  2. Test the null versus alternative hypothesis from previous part at the a=0.05 significance level. Be sure to support your conclusion with the appropriate test statistic and p-value.
  3. Suppose that you wanted to test the null versus alternative hypothesis that the overall fraction of people before the advertising that were aware of CSG was the same as that after the advertising. What additional information would you need to make this assessment? (Hint: the people before the advertising includes both FWTC and FWC groups. How should we combine the two groups in our test so it would be representative of population?)
  4. Test separately at the a=0.05 significance level, for both the FWTC and FWC groups, that the fraction of people who were aware of CSG BEFORE the advertising is the same as the fraction of people AFTER the advertising, versus the alternative that advertising changed the awareness.
  5. What can you conclude about the long-run effectiveness of advertising?
  6. Do you think that the impact of advertising, as measured here, may be different if an established product (as compared to a new one) was studied? If yes, how? If no, why not?

In: Statistics and Probability

BACKGROUND Laura Moore has recently left her job as a Graphic Designer to open her own...

BACKGROUND

Laura Moore has recently left her job as a Graphic Designer to open her own Company; a Graphic Design Agency dedicated to the creation and design of apps for mobile devices. Laura has decided to be self-employed.

To do so, she will have her business premises, which belongs to her father, in Barcelona downtown and she will have to hire:

  • A visual designer
  • A developer
  • An administrative assistant

1. To hire the administrative assistant, Laura has decided to offer an indefinite contract. It is her first employee that she will hire and this has a recognised degree of disability of 37%. Explain to Laura what bonuses and reductions could be applied in the hiring of the administrative and what type of contract should do exposing its main characteristics. You must prepare the work contract of the Administrative Assistant in the corresponding oficial model.

Once the contract has been drafted and completed according to Spanish regulations, you must specify in detail the differences of this if it had been made in the United Kingdom.

2. We know the salaries agreed with two of the workers.

It develops the different steps to follow to prepare the payroll of each of them and the financial nature of each of the ítems involved:

a. Administrative Assistant. Three-month seniority. He has an indefinite work contract, base salary: € 1,500. Collective bargaining: € 50.

He has two extraordinary six-month accrual pays and receives the mon 06/30 and 12/31 of each year for an amount equal to the base salary. He has a disability of 37% and is single without children. He has made two overtime hours that month at a rate of € 15/h.

b. Visual designer. 2-month seniority. He has a temporary contract.

Base salary: € 1,950. Collective bargaining: € 100. Productivity: € 6 / day. It has two extraordinary six-month accrual payments and receives them apportioned each month. He is married and has a 9-year-old son (his spouse receives income of over € 1,500/year).

Once you have developed all the steps to follow in each case and the amount of the items, make the offcial payroll of the administrative assistant.

3. A year and a half after being hired, the administrative officer requests a period of leave of six months due to personal reasons.

Make the severance taking into account that:

-    The leave is granted from July 25th.

  • The worker has 10 days of vacations pending.
  • During the month of July he made a total of 6 overtime hours

You must specify the conditions of the periods of leave in Spain and compare them with the terms of one of the countries studied; UK, United States or Canada (you can choose the country you want).

In: Accounting

Explain what would happen to per-capita income in an Open-Economy Solow model as a previously closed...

Explain what would happen to per-capita income in an Open-Economy Solow model as a previously closed country with relatively high savings rates becomes an Open Economy.

In: Economics

Provide a specific example that explains why you believe more states should use a top two...

Provide a specific example that explains why you believe more states should use a top two primary or maintain a closed primary for their state's direct primary elections.

In: Economics

Do fish have an open or closed circulatory system? How many chambers does a fish heart...

Do fish have an open or closed circulatory system? How many chambers does a fish heart have? How does blood flow throughout the body of a fish?

In: Biology