Exchange rates are 0.98 U.S. dollars per Canadian dollar, 150 yen per Canadian dollar, 0.8 euro per Canadian dollar, and 20 pesos per Canadian dollar. A bottle of juice in New York costs 6 U.S. dollars, 1200 yen in Tokyo, 7 euros in Munich, and 100 pesos in Cancun. Which of the following indicates the most expensive juice?

Select one:

Tokyo

Munich

New York

Cancun

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Exchange and ingratiation are:

Select one:

a. two sources of power.

b. indicators that a person lacks power due to low centrality.

c. the only two political tactics that are equally common among men and women in organizational settings.

d. relatively uncommon practices in Western countries.

e. two forms of influence.

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Excercise

Create an Invoice class with 4 attributes: PartNumber (type int), PartDescription (type String), Quantity (type int), and Price (type double). Create a constructor that allows you to initialize all 4 attributes from values passed in as parameters. Override the toString() method to display all 4 attributes in a format of your choosing. Create a List of 10 Invoices containing data of your choosing. Use lambdas and streams to perform the following queries on the list of Invoice objects and display the results: Sort the Invoice objects by PartDescription, then display the results. Sort the Invoice objects by Price, then display the results. Map each Invoice to its PartDescription and Quantity, sort the results by Quantity, then display the results. Map each Invoice to its PartDescription and the value of the Invoice (i.e., Quantity * Price). Order the results by Invoice value. Modify Part (d) above to select the Invoice values in the range of $200 to $500 (inclusive) and display the results separately.

The code I have. Need help on this code to demonstrate the use of lambdas and streams.

code

public class Invoice {private int partNumber ;private String partDescription;private int quantity;private double price;public Invoice(int partNumber, String partDescription, int quantity, double price) {this.partNumber = partNumber;this.partDescription = partDescription;this.quantity = quantity;this.price = price;}@Overridepublic String toString() {return “Invoice{” +“partNumber=” + partNumber +“, partDescription=” + partDescription +” “+“, quantity=” + quantity +“, price=” + price +‘}’;}public int getPartNumber() {return partNumber;}public void setPartNumber(int partNumber) {this.partNumber = partNumber;}public String getPartDescription() {return partDescription;}public void setPartDescription(String partDescription) {this.partDescription = partDescription;}public int getQuantity() {return quantity;}public void setQuantity(int quantity) {this.quantity = quantity;}public double getPrice() {return price;}public void setPrice(double price) {this.price = price;}public String getDescriptionQuantity() {return String.format(“%s %s”, partDescription, quantity);}public String getDescriptionTotalPrice() {return String.format(“%s %s”, partDescription, quantity * price);}public double getValue() {// getting the invoice total value}public boolean isWithinRange(double min, double max) {return getValue() >= min && getValue() <=max;}}

// Invoice Generator

import java.util.ArrayList;public class InvoiceGenerator {private ArrayList<Invoice> invoiceList = new ArrayList<Invoice>();public InvoiceGenerator() {invoiceList.add(new Invoice(101,“some desc”,1,100));invoiceList.add(new Invoice(102,“some descA”,2,101));invoiceList.add(new Invoice(103,“some descB”,3,102));invoiceList.add(new Invoice(104,“some descC”,4,103));invoiceList.add(new Invoice(105,“some descD”,5,104));invoiceList.add(new Invoice(106,“some descH”,6,105));invoiceList.add(new Invoice(107,“some descE”,7,106));invoiceList.add(new Invoice(108,“some descF”,8,107));invoiceList.add(new Invoice(109,“some descG”,9,108));invoiceList.add(new Invoice(110,“some descI”,10,109));}public ArrayList<Invoice> getInvoiceList(){return invoiceList;}}

// Invoice Handler

import java.util.ArrayList;import static java.util.Comparator.comparing;public class InvoiceHandler {private final ArrayList<Invoice> invoices;private InvoiceHandler(){this.invoices = new InvoiceGenerator().getInvoiceList();}private void sortByPrice(){invoices.stream().sorted(comparing(Invoice::getPrice)).forEach(System.out::println);}private void sortByDescription(){invoices.stream().sorted(comparing(Invoice::getPartDescription)).forEach(System.out::println);}private void mappingDescriptionAndPrice(){invoices.stream().sorted(comparing(Invoice::getQuantity)).map(Invoice::getDescriptionQuantity).forEach(System.out::println);// sorted method requires a value, so we have sorted on the basis of quantity.// we can also call it as sorted(invoice -> invoice.getQuantity())// sorted, map, filter function take in lambda functions which are of the form functionName(input -> {return expression})}private void mappingDescriptionAndValue() {invoices.stream().sorted(comparing(Invoice::getValue)).map(Invoice::getDescriptionTotalPrice).forEach(System.out::println);}private void filterByRange(double min, double max) {invoices.stream().sorted(comparing(Invoice::getValue)).filter(invoice -> invoice.isWithinRange(min, max)).map(Invoice::getDescriptionTotalPrice).forEach(System.out::println);}public static void main(String[] args) {InvoiceHandler invoiceHandler = new InvoiceHandler();System.out.println(nSorted by description:n);invoiceHandler.sortByDescription();System.out.println(nSorted by price:n);invoiceHandler.sortByPrice();System.out.println(nMapping each invoice to its description and quantity:n);invoiceHandler.mappingDescriptionAndPrice();System.out.println(nMapping each invoice to its description and value:n);invoiceHandler.mappingDescriptionAndValue();System.out.println(nFilter value between range and map each Invoice to its description and value:n);invoiceHandler.filterByRange(200,500);}}

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Exception Handling

You decide to upload your recent project to a programming community website for feedback, and one thing that community users keep pointing to is the lack of exception handling. Realizing that they are correct, you decide to rectify the situation and improve your programs… or at least one of them. Take one of the programs you designed over the past couple of weeks and enhance the program with exception handling code. Your program should incorporate the TRY and EXCEPT blocks and handle any errors and exceptions that you can find.

For this project:

  • You will submit your python code in either the original .py file, or copied into a .txt file.
  • A screenshot of your code having been executed and demonstrating your exception handling. How to Take a Screenshot.

Tips: Exception handling programming takes a bit of forethought. Think about ways that you can make your program malfunction while using it (not by changing the code).

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Except in cases that involve fraud, control deficiencies should generally be reported to:

Question 4 options:

the external auditors

law enforcement

the board of directors

the person directly responsible for the controls operation

senior management at all levels of the organization

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Excel

You are a consultant for the Diligent Consulting Group (DCG). You have completed the first assignment, developing and testing a forecasting method that uses Linear Regression (LR) techniques (Module 2 Case). However, the consulting manager at DCG wants to try a different forecasting method as well. 

Now you decide to try Single Exponential Smoothing (SES) to forecast sales.

Using this Excel template below. then do the following:

Calculate the MAPE for Year 2 Linear Regression forecast (use the first spreadsheet tab labeled “Year 2 Forecast – MAPE”).

Calculate forecasted sales for Year 2 using SES (use the second spreadsheet tab labeled “SES – MAPE”). Use 0.15 and 0.90 alphas.

Compare the MAPE calculated for the LR forecast (#1 above) with the MAPEs calculated using SES.

(2 pages)

 write a report to your boss in which you discuss the results obtained above. Using calculated MAPE values,make a recommendation concerning which method appears to be more accurate for the Year 2 data: SES or Linear Regression.

  • Provide a brief introduction to/background of the problem.
  • Complete a written analysis that supports your Excel analysis, discussing the assumptions, rationale, and logic used to complete your SES forecast.
  • Give complete, meaningful, and accurate recommendation(s) relating to whether LR or SES is more accurate in predicting sales.
 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

EXCEL

Using the customer traffic data and matching sales for each month of Year 1, create a Linear Regression (LR) equation in Excel, assuming all assumptions for linear regression have been met. Use the Excel template provided (see “Module 2 Case – LR –Year 1” spreadsheet tab), and be sure to include your LR chart (with a trend line) where noted. Also, be sure that you include the LR formula within your chart.

After you have developed the LR equation above, you will use the LR equation to forecast sales for Year 2 (see the second Excel spreadsheet tab labeled “Year 2 Forecast”). You will note that the customer has collected customer traffic data for Year 2. Your role is to complete the sales forecast using the LR equation from Step 1 above.

After you have forecast Year 2 sales, your Professor will provide you with 12 months of actual sales data for Year 2. You will compare the sales forecast with the actual sales for Year 2, noting the monthly and average (total) variances from forecast to actual sales.

(4 pages)Written Report

write a report for the client that describes the process you used above, and that analyzes the results for Year 2. 

(What is the difference between forecast vs. actual sales for Year 2—by month and for the year as a whole?)

 Make a recommendation concerning how the LR equation might be used by New Star Grocery Company to forecast future sales.

  • Provide a brief introduction to/background of the problem.
  • Your written (in Word) analysis should discuss the logic and rationale used to develop the LR equation and chart.
  • Provide complete, meaningful, and accurate recommendation(s) concerning how the New Star Grocery Company might use the LR equation to forecast future sales. (For example, how reliable is the LR equation in predicting future sales?) What other recommendations do you have for the client?

reference

Chase, C. W., (2013). Demand-driven forecasting: A structured approach to forecasting. John Wiley & Sons. Somerset, NJ. Retrieved from Ebrary in the Trident Online Library.

Regression Line Example: http://www.khanacademy.org/video/regression-line-example?topic=statistics

Second Regression Example: http://www.khanacademy.org/video/second-regression-example?topic=statistics

Emerald Group Publishing. (n.d.). Developing Critical Thinking. Retrieved from http://www.emeraldinsight.com/learning/study_skills/skills/critical_thinking.htm  

excel analysis https://support.office.com/en-us/Search/results?query=linear+regression

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Excelsior College:BNS301: National Security Ethics and Divesity

 M4D1: Ethical Breaches

In this module, we will explore the concepts presented in the readings and look for examples in our own lives (personal and professional) to illustrate (or disprove) them.  It seems as if ethical breeches are all around us. The media is replete with stories of how senior leaders in the military, government, business, and industry are exercising bad judgment.  These are people who seemingly have it all and should be beyond reproach. We will examine why some individuals exercise good judgement while others turn to corruption. It is important to take things apart, look at them and become aware of what they mean for us as human beings, leaders, and members of organizations and communities.

Let’s turn our attention to a discussion about the ethical concepts presented in this module and share some examples within our own organizations.

This activity addresses module outcomes 1-3. Upon completion of this activity, you will be able to:

  • Describe the concepts of cognitive dissonance, wrongful obedience, corrupt judgment, and warranted excuses;
  • Analyze individual and organizational responses to wrongful obedience, bad judgment, and warranted excuses;
  • Analyze the pitfalls of the slippery slope syndrome at the strategic level and how strategic leaders can avoid them.

Please contribute at least one original post at least 300 words, due on Wednesday at 11:59 p.m. Eastern time.

Questions:

After completing the assigned readings for the module, please respond to the following questions in your initial post:

  1. In your analysis, provide examples from your organization where wrongful obedience, corrupt judgment, or warranted excuses may have come into play.  Describe what happened and what the response within the organization was.
  2. Describe an example of the “slippery slope syndrome” and analyze the situation and what might have been done to mitigate it.
 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

EXCELSIOR COLLEGE:BNS301: National Security Ethics and Diversity

Module 6: Learning & Assessment Activities

During this module you will:

Read:

  • Required
    • Module Notes: Defining and describing loyal dissent
    • Boffey, P.M. (1986, February 14. Analyst who gave shuttle warning faults gung-ho, can-do attitude (Links to an external site.)Links to an external site., The New York Times, p. B-4.
    • Cook, R.C. (1986, March 16). Why I blew the whistle on NASA’s O-ring woes (Links to an external site.)Links to an external site., The Washington Post, pp. D-1 to D-3.
    • Grimsley, K.D., (1997, September 8).  A matter of ethics:  In the workplace, sometimes you pay a price for following your conscience (Links to an external site.)Links to an external site., The Washington Post, p. F-12.
    • Kidder, R. M (1995).  How good people make tough choices, Harper Collins.  New York. pp. 83-88.
    • Lindorff, D. (1986, June 28).  Engineers’ Duty to Speak Out (Links to an external site.)Links to an external site., The Nation, pp. 880-882.
    • Wayne, L. (1986, February 28). Getting Bad News at the Top (Links to an external site.)Links to an external site., The New York Times, pp. D-1, D-4.

Space Shuttle Challenger Disaster: Major Malfunction | Retro Report | The New York Times (Links to an external site.)Links to an external site.

After you have read the material on the Space Shuttle Challenger disaster, you are ready to write a process essay focusing on what you might suggest are useful to those who find themselves in an ethical quandary about loyal dissent and whistleblowing.  

  1. write a 2-3-page essay in APA Format 
  2. In your essay, address the following questions:-First, address the arguments for and against loyal dissent; -Then address how organizational culture and management styles affect how employees deal with loyal dissent (give examples from the readings OR from your own experience or organization;-Finish with your recommendations or guidelines that might be useful for loyal dissenters. 

Recommended Resources:

  • National Security Research Guide (Links to an external site.)Links to an external site.
  • Excelsior Library Writing Help (Links to an external site.)Links to an external site.
  • Excelsior Online Writing Lab (OWL) (Links to an external site.)Links to an external site.
    • Look particularly at the process essay page (Links to an external site.)Links to an external site.
  • APA Style Help (Links to an external site.)Links to an external site.

Compose your work in a .doc or .docx file type using a word processor (such as Microsoft Word, etc.) and save it frequently to your computer. For those assignments that are not written essays and require uploading images or PowerPoint slides, please follow uploading guidelines provided by your instructor.

Check your work and correct any spelling or grammatical errors. When you are ready to submit your work, click “Upload Submission.”  Enter the submission title and then click on “Select a file to upload.” Browse your computer, and select your file. Click “Open” and verify the correct file name has appeared next to Submission File. Click on “Continue.”  Confirm submission is correct and then click on “Accept Submission & Save.”

Turnitin

This course has Turnitin fully integrated into the course dropbox. This means that you should only submit your assignments to the dropbox below. Please do not submit your assignment directly to Turnitin.com. 

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

EXCELSIOR COLLEGE: BNS301: National Security  Ethics and Diversity

Module 5: Module Notes: “Good” Versus “Bad” Lying

In school we were taught the famous legend of George Washington, who, as a youth, could not tell a lie when he admitted to chopping down a cherry tree belonging to his father. Whether or not the legend is true is not as important as the lesson it is supposed to communicate: that honesty is an important trait of anyone, but especially of a leader. As we examine the issue of lying in this module, there are several questions that we will encounter: What is a lie?  How do we know that lying is wrong? Are there reasonable excuses or rationales for lying? And is it ever acceptable for a public official to lie in the performance of his or her official duties?

In her classic book, Lying, Sissela Bok cites the absolutist position of the 18th century philosopher Immanuel Kant (Links to an external site.)Links to an external site., “Truthfulness in statements which cannot be avoided in the formal duty of an individual to everyone, however great may be the disadvantage accruing to himself or to another” (Bok, 1989) (p.38) Bok goes on to argue that “most have held the contrary view—that there are times when truthfulness causes or fails to avert such great harm that a lie is clearly justifiable” (p. 39). She further argues that this position leads to another problem: “The more difficult task remains: That of drawing lines.” (p.46)

This module is about where other people have drawn those lines—and more importantly about where you draw those lines. You will read several case studies and score them on whether or not you believe the central characters’ decision was right or wrong. By scoring the rightness or wrongness of the actions taken in the mini-cases, you are also revealing your own preferences as reflected in your scores in the Ethical Type Indicator. After you have scored the mini-cases, read the piece by Dobel and then revisit the cases to see if you might have changed your thinking.

Your assigned readings should be read in the following order:  

  1. Read the set of mini-cases entitled “Ethical Problems in Public Careers: Lying.” At the end of each case, ask yourself whether the central character’s action or decision was “right” or “wrong.”  On page 10 of the case there is a score sheet; mark your answers to each case on your sheet. You won’t be judged on how you score but think about what you would have done if you had been the central character in each situation.
  2. Read the “Two Oaths of Richard Helms” case.
  3. Read Chapter 10 of Dobel’s book, Public Integrity.
  4. Then revisit the mini-cases and see if Dobel’s analysis led you to alter your thinking or your judgments on any of those mini-cases.
  5. Do the same with the Helms case. 

The nineteenth-century philosopher Jeremy Bentham (Links to an external site.)Links to an external site. stated a lie that is not accompanied by “any other material circumstances,” nor does not produce “any material effects” is really not offensive at all. It would be difficult to compose ethical rules to cover a multitude (infinite really) of situations in which people lie. With this in mind, we might proclaim that lies are relative and can only be judged against the set of circumstances in which they occur. The relativist probably determines that lying is then ethically neutral, depending on the circumstances. On the other hand, Bentham goes on to state that lying would be instrumental in producing “pernicious effects.” What kind of “pernicious effects” does lying produce? Think about how you might feel should you be on the receiving end of a lie.  Maybe it is not harmful to anyone, but once you discover that someone has purposely lied to you, you become suspicious and trust is, if not destroyed, then at least damaged. If lying was acceptable all the time, how would we be able to tell what is truth? In such a society, suspicion, mistrust, and cynicism would undoubtedly underlie all of our personal and professional relationships.

Although it is somewhat easy to identify situations where lying is wrong, can we also identify situations where lying is acceptable? Don’t we all lie, especially to save another’s hurt feelings? How about those white lies we use to get out of or over a commitment?  Are those kind of lies acceptable to most people?  We would certainly say that lying to save a life would be a “good” lie. 

Once we agree that some forms of lying are “good” versus “bad,” then the question becomes one of drawing lines rather than of absolutes.  But what is a lie if not an absolute?  We know when we are lying and admittedly some people are actually very good at it. The website dictionary.com gives the definition of the word lie as “a false statement made with deliberate intent to deceive.” This definition points to the speaker’s intentions.  Intentions though can depend on who is asking the question, how it is asked, and in what context. It is sometimes difficult to tell if there is a conscious attempt to deceive or if it was just a misunderstanding of what was meant.  Politicians use this technique often, taking back what you think they said or being purposely vague.  There are also examples of candidates making promises they don’t know if they can or will keep or diplomats telling each other of their countries’ mutual admiration for each other.

In this module, you will read some small case studies, called mini-cases that will require you to analyze ethical dilemmas.  These dilemmas require you to take a position of right or wrong but to also discuss when, if ever, deception is justified.  As a public service professional, you will be confronted with extremes of right and wrong but you will also face several situations in which the rightness and wrongness may not be so obvious.  The purpose of this exercise is to help you clarify and improve the reasoning process that leads to ethical decision making.  It is also important to examine considerations upon which your judgments rest, the inconsistencies or contradictions, and to bring out unconsidered arguments that might alter your judgments or at least lay the framework to formulate guidelines to make difficult ethical choices.

References

Bok, S. (1989).  Lying:  Moral choice in public and private life.  Random House, Inc. New York.

Bentham, Jeremy. The Principles of Morals and Legislation (1789)

Let’s turn our attention to a discussion about lying and what constitutes a lie. Please feel free to offer your personal experiences or share your organizational examples as well as cited sources from the readings when

M5D1: Acceptable Lying

This module outcomes addressed in this activity are:

  • Explain the rightness or wrongness of lying (CO5);
  • Compare the inconsistencies or contradictions of ethical decisions (CO4); and
  • Identify unconsidered arguments that might alter your judgments to make difficult ethical choices (CO4, 5).

Please contribute at least one original post. Keep in mind that if reply posts come in Sunday evening, this is not a robust discussion. I reserve the right to ask you to contribute sooner or more frequently if this will enhance learning. 

Questions:

Based on the readings and activities for this module, answer the following questions:

  • After reading the mini-cases and the Helms’ case, discuss your responses to the ethical hypotheticals on page 10 of the mini-cases.  Why did you vote as you did?
  • How would you compare the way in which ethical decisions were made in the cases?  Do you see any inconsistencies or contradictions in these ethical decisions?
  • Address the Dobel chapter and his concept of “political prudence.”  How would you use this concept to alter your original judgments on the mini-cases and the Helms’ case?  Explain your answer.

Response:

Your replies to classmates must be substantive; posting “I agree” is a start, but you also need to explain why. Replies should contribute to the discussion as a whole by integrating what you have learned from your required readings. When participating in the discussion forums, be both honest and respectful of ideas and comments from your classmates. Please remember the board discussions take place in an open forum, so refrain from vulgar language and racial, sexist, or any other comments that an individual might find offensive.  

Consult the Discussion Posting Guide for information about writing your discussion posts. It is recommended that you write your post in a document first. Check your work and correct any spelling or grammatical errors.

This is a “post first” discussion forum, which means you must submit your initial post before you can view other students’ posts.

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW