Create the addItem() function, which adds items to the shoping cart on the page. Add the following commands to the function:

I have to create a javascript file for a homework assignment (what I came up with is under the question) and I am totally stumped. This is case problem 2 from Tutorial 12 in New Perspectives HTML5, CSS3, and Javascript Sixth Edition by Carey.

3. Add an event listener that runs the setupCart() function when the page is loaded.

4. Create the setupCart() function. The purpose of this function is is to define the event handlers for the Add to order Buttons on the page. Add the following commands to the function:

a. Create a variable named addButtons, which contains the collection of elements belonging to the addButton class.

b. Loop through the addButton collection and for each button, add an event handler that runs the addItem() function when the button is clicked.

5. Create the addItem() function, which adds items to the shoping cart on the page. Add the following commands to the function:

a. description of the food item is the next sibling element to the button that was clicked by the customer. use the nextElementSibling property to reference the next sibling

element to the target of the event object. Store the sibling element in the variable foodItem.

b. Create the foodID variable – contains the value of the id attribute for foodItem

c. Use the cloneNode() method to create a copy of the foodItem element and all of its descendants – store in foodDescription variable

d. shopping cart is stored in an aside element with the ID “cart” – store reference to this in variable named cartBox

The shopping cart needs to determine whether product ordered by customer has already been ordered = to do this, add span element to the top of each item in the cart containing

the # of items of each product ordered and update value when product order repeated. do following to create order counter for each product.

e. create variable duplicateOrder – set initial value to false

f. loop thru element child nodes of cartBox – for each node determine whether ID of element node equals foodID. If it does, previously placed that menu item in cart. Increase

value of the first element child of node by 1 to indicate an additional order and then break out of the for loop.

g. After the for loop has complete – test duplicateOrder is still false. if it is, declare a variable orderCount – storing span element node. set text content of the orderCount element

to 1. Insert orderCount as first child of foodDescription node structure and append foodDescription to cartBox as a new product order.

This is my code – if you could tell me what I’ve done wrong that would be hugely appreciated! (Sorry doesn’t copy and paste with all the proper indentations and such :S

window.addEventListener(“load”, setupCart);

function setupCart() {

var addButtons = document.querySelectorAll(“addButton”);

for (var i = 0; i < addButtons.length; i++) {

addButtons[i].onclick = addItem();

}

}

function addItem(e) {

var foodItem = e.target.nextElementSibling;

var foodID = foodItem.getAttribute(“id”).value;

var foodDescription = foodItem.cloneNode(true);

var cartBox = document.getElementById(“cart”);

var duplicateOrder = false;

// Add duplicate items to cartBox

for (var i = 0; i < cartBox.childNodes.length; i++) {

if (cartBox.childNodes[i].id === foodID.id) {

cartBox.firstElementChild.value + 1;

break; //stop processing the for loop

}

}

// Add new items to cartBox

if (duplicateOrder === false) {

var orderCount = document.createElement(“span”);

orderCount.textContent = 1;

foodDescription.appendChild(orderCount);

cartBox.appendChild(foodDescription);

Provide an executive summary of the main points of the case. Identify and describe the various cultures and differences in those cultures within SAP’s changing environment and employee workforce.

Writing Assignment  and Presentation

Case Study—Culture Clashes at SAP

Read the Case: Culture Clashes Make Change Difficult at SAP. Use the Argosy University online library and the internet for additional research. Imagine you are an HR consultant called in to advise the leadership at SAP. Prepare a 10-15 slide PowerPoint presentation to present your responses to the information below. Use the notes section in PowerPoint to clarify your points. Include a title slide and a reference slide in addition to the main slides. Use at least one chart or graph and at least one other visual aid within your presentation. Utilize at least three outside resources to compose your response. Your presentation should be professional and correctly address your target audience.

  • Provide an executive summary of the main points of the case. Identify and describe the various cultures and differences in those cultures within SAP’s changing environment and employee workforce.
  • In your opinion, what aspects of the changes at SAP would be most difficult for the German employees? Why? Which would be most difficult for the SAP employees in other countries? Why?
  • What HRM activities or functions were affected by the changes described in this case?
  • Recommend at least 3 ideas or concepts the company can implement to help them overcome cultural barriers that are affecting its efforts to become more creative and agile.
  • Propose at least three concrete HR solutions that would improve relations at SAP, resulting in less conflict. Support your proposal with outside research.

Use at least three resources in addition to your textbook to justify your responses. Apply current APA standards for writing style to your work.

Use the following file naming convention: LastnameFirstInitial_M5_A1.ppt. For example, if your name is John Smith, your presentation will be named SmithJ_M5_A1. ppt.

1.Under the Stars is a retail store that sells equipment for activities such as camping, hiking, and stargazing. You are developing a presentation for Under the Stars customers who want to learn to stargaze. To coordinate the colors in the presentation with the photos, change the theme colors to Violet. 2.On Slide 1 (âVIEWING THE NIGHT SKYâ), use Smart Guides to position the subtitle placeholder above the title placeholder as shown in Figure 1 on the next page. Figure 1: Position for Placeholders 3.On Slide 2 (âSecond star to the right, and straight on âtil morning.â), left-align the title text paragraph. 4.With Slide 2 still displaying, insert and modify an audio file as follows: 5.With Slide 2 still displaying, arrange the text box and the picture as follows: Figure 2: Position for the Text Box on Slide 2 6.On Slide 3 (âGETTING STARTEDâ), make the following changes to the content placeholders to draw attention to the bulleted list: 7.On Slide 4 (âCONSTELLATIONS: NORTHERN HEMISPHEREâ), insert a text box to identify the constellation as follows: Figure 3: Position for the Text Box on Slide 4 8.With Slide 4 still displaying, apply the Fly In Entrance animation to the picture. 9.On Slide 5 (âPOPULAR CONSTELLATIONS: GEMINIâ), modify the animation on the picture on the left as follows: 10.With Slide 5 still displaying, apply the Disappear Exit animation to the group containing the picture and the arrow on the right. 11.On Slide 6 (âPOPULAR CONSTELLATIONS: LEOâ), add the Pulse Emphasis animation to the existing animation on the arrow. 12.With Slide 6 still displaying, for the picture on the left, change the duration of the animation to 1.00. 13.On Slide 7 (âSTARGAZING WITH A TELESCOPEâ), insert a video as follows: 14.Check the Spelling in the presentation to identify and correct any spelling errors. (Hint: You should find and correct at least one spelling error. Ignore proper nouns such as the names of constellations.) In Slide Sorter view, your presentation should look like the Final Figure below. Save your changes, close the presentation, and then exit PowerPoint. Follow the directions on the SAM website to submit your completed project.

1.Under the Stars is a retail store that sells equipment for activities such as camping, hiking, and stargazing. You are developing a presentation for Under the Stars customers who want to learn to stargaze. To coordinate the colors in the presentation with the photos, change the theme colors to Violet.

2.On Slide 1 (âVIEWING THE NIGHT SKYâ), use Smart Guides to position the subtitle placeholder above the title placeholder as shown in Figure 1 on the next page.

Figure 1: Position for Placeholders

3.On Slide 2 (âSecond star to the right, and straight on âtil morning.â), left-align the title text paragraph.

4.With Slide 2 still displaying, insert and modify an audio file as follows:

5.With Slide 2 still displaying, arrange the text box and the picture as follows:

Figure 2: Position for the Text Box on Slide 2

6.On Slide 3 (âGETTING STARTEDâ), make the following changes to the content placeholders to draw attention to the bulleted list:

7.On Slide 4 (âCONSTELLATIONS: NORTHERN HEMISPHEREâ), insert a text box to identify the constellation as follows:

Figure 3: Position for the Text Box on Slide 4

8.With Slide 4 still displaying, apply the Fly In Entrance animation to the picture.

9.On Slide 5 (âPOPULAR CONSTELLATIONS: GEMINIâ), modify the animation on the picture on the left as follows:

10.With Slide 5 still displaying, apply the Disappear Exit animation to the group containing the picture and the arrow on the right.

11.On Slide 6 (âPOPULAR CONSTELLATIONS: LEOâ), add the Pulse Emphasis animation to the existing animation on the arrow.

12.With Slide 6 still displaying, for the picture on the left, change the duration of the animation to 1.00.

13.On Slide 7 (âSTARGAZING WITH A TELESCOPEâ), insert a video as follows:

14.Check the Spelling in the presentation to identify and correct any spelling errors. (Hint: You should find and correct at least one spelling error. Ignore proper nouns such as the names of constellations.)

In Slide Sorter view, your presentation should look like the Final Figure below. Save your changes, close the presentation, and then exit PowerPoint. Follow the directions on the SAM website to submit your completed project.

Write a Professional Email Message (in the form of Figure 5.1 on page 84 of BCOM9) from the perspective of a character in the scenario.

Choose one of the professional scenarios provided in Blackboard under the Student Center tab, or click here to view them in a new window.

Write a Professional Email Message (in the form of Figure 5.1 on page 84 of BCOM9) from the perspective of a character in the scenario.  The email should discuss the communication issue provided in the scenario and should be addressed to another character from the scenario.

The message should take the form of an email; however, you will submit your assignment to the online course shell.

The professional email message must adhere to the following requirements:

1. Content:

  1. Address the communication issue from the scenario.
  2. Request a face-to-face meeting to discuss the issue (at a specific time).
  3. Concentrate on the facts of the situation and avoid using overly emotional language.
  4. Assume your recipient is learning about the situation for the first time through your communication.

2. Format:

  1. Use a descriptive subject line or heading.
  2. Include an appropriate and professional greeting / salutation.
  3. Use email form including: To:, From:, Subject:, and Signature.

3. Clarity / Mechanics:

  1. Focus on clarity, writing mechanics, and professional language/style requirements.
  2. Run spell/grammar check before submitting.

CHOOSE FROM ONE OF THE APPROVED TOPICS BELOW::::

1. Saban is a top performing industrial equipment salesperson for D2D. After three years of working with his best client, he receives a text message from Pat (his direct manager) assigning him to a completely different account.

Pat has received complaints that Saban gets all of the good clients and is not a “team player.”

Saban responds to the message and asks for a meeting with Pat to discuss this change. Pat responds with another text message that reads: “Decision final. Everyone needs to get a chance to work with the best accounts so it is fair. Come by the office and pick up your new files.”

Moments later, Saban sends a text message to Karen, his regional manager and Pat’s boss. It simply reads, “We need to talk.”

2. Amber, Savannah, and Stephen work for Knowledge, Inc. (a consulting company). While on a conference call with Tim Rice Photography (an established client), the group discusses potential problems with a marketing campaign. Tim Rice, lead photographer and owner of Tim Rice Photography, is insistent the marketing is working and changes are not needed.

Amber reaches over to put Tim on “Mute” but accidently pushes a different button. She immediately says to Savannah and Stephen that the marketing campaign is not working and that “…Tim should stick to taking pretty pictures.”

Tim responds, “You know I can hear you, right?”

3. James shows up to work approximately five minutes late this morning, walks silently (but quickly) down the hallway and begins to punch in at the time clock located by the front desk.

Sarah, the front desk manager, says, “Good morning, James,” but James ignores her, punches in, and heads into the shop to his workplace.  Sarah rolls her eyes, picks up the phone, and dials the on-duty manager to alert her that James just arrived and should be reaching his desk any moment.

4. Paul works for the website division of SuperMega retail company. He receives an email late Friday afternoon that explains a new computer will launch at the end of next June and it will be in high demand with limited stock. Also contained in the three-page-message is that customers will be able to preorder the item 30 days before launch according to the production company. Paul is asked to create a landing page for consumers who are interested in learning more about the product.

By mistake, Paul sets up a preorder page for the product that afternoon (well in advance of the company authorized period) and late Friday evening consumers begin to preorder the product. Sharon, Vice President of Product Sales at SuperMega, learns of the error Saturday morning and calls Paul to arrange a meeting first thing Monday morning. Sharon explains to Paul on the phone that the company intends on canceling all of the preorders and Paul responds that the company should honor the preorders because it was not a consumer error. After a heated exchange, Paul hangs up on Sharon when she insists that the preorders will be canceled because of Paul’s error.