Some ethical views say that it always ethically wrong to lie, whereas a utilitarian view says that lying would be permissible if the lie had an overall benefit for people’s happiness. Is it ever wrong to lie? Why or why not? If you answered yes, under what circumstances would lying be okay? Explain.
In: Psychology
What are 2 examples of non-tariff barriers that are considered to be the result of political policy and how can the WTO enforce regulations against non-tariff barriers?
In: Economics
C PROGRAMMING LANGUAGE
Problem title : Bibi's Array
Bibi also has an array containing N elements. Like Lili, Bibi wants to know the highest frequency (most occurrences) and all elements which have that frequency.
Format Input
The first line contains an integer T stating the number of test cases. For each test case, the first line contains a single integer N which indicate the number of element in the array. The next line contains N integers Xi (1≤ i ≤ N ) which indicate i^th element in the array.
Format Output
Consist of T lines where each line has the format "Case #X:Y" , where X is the test case number starting at 1 and Y is the highest frequency. Next line contains all elements which have that frequency sorted in ascending order.
Constraints
¶ 1≤ T ≤ 20
¶ 2 ≤ N ≤ 20.000
¶ 1 ≤ Xi ≤ 2 x 10^5
Sample Input (standard input)
3
8
1 1 2 2 3 4 5 5
8
5 5 4 3 2 2 1 1
4
1 1 1 3
Sample Output (standard output)
Case #1: 2
1 2 5
Case #2: 2
1 2 5
Case #3: 3
1
In: Computer Science
An institute reported that 60% of its members indicate that lack of ethical culture within financial firms has contributed most to the lack of trust in the financial industry. Suppose that you select a sample of 100 institute members.
b. The probability is 90% that the sample percentage will be contained within what symmetrical limits of the population percentage? The probability is 90% that the sample percentage will be contained above nothing% and below nothing%.
In: Math
What are the six planning tools and techniques? Using an example from your experience (as a student or at work), describe how you could use one of the techniques or tools to improve planning in your future. You may choose to apply your response to a specific goal in answering this question.
In: Operations Management
Explain in your own words what the overall catalytic efficiency really compares and what it tells us about our enzyme
In: Chemistry
In: Psychology
Although studies continue to show smoking leads to significant health problems, 20% of adults in the United States smoke. Consider a group of 280 adults.
If required, round your answers to four decimal places.
a. What is the expected number of adults who
smoke?
b. What is the probability that fewer than 40
smoke?
c. What is the probability that from 35 to 70
(inclusive) smoke?
d. What is the probability that 70 or more smoke?
In: Math
JAVA programming language
Modify the following code. Make changes so that Movies can be sorted by title
-----------------------------------------------------------------
package Model; |
import java.time.Duration; |
import java.time.LocalDate; |
import java.util.ArrayList; |
import java.util.List; |
// TODO - Modify the movie class so that Java knows how to compare two Movies for sorting by title |
public class Movie extends DataStoreObj |
{ |
private String title; |
private String description; |
private LocalDate releaseDate; |
private Duration runningTime; |
private Rating rating; |
private List<Genre> genres = new ArrayList<>(); |
private List<Actor> actors = new ArrayList<>(); |
// TODO: Add list of reviews |
private List<Review> reviews = new ArrayList<>(); |
public Movie(String title, String description, Rating rating, String releaseDate, int runningTimeMinutes) { |
this(null, title, description, rating, releaseDate, runningTimeMinutes); |
} |
public Movie(Long id, String title, String description, Rating rating, String releaseDate, int runningTimeMinutes) { |
super(id); |
this.title = title; |
this.description = description; |
this.rating = rating; |
this.releaseDate = LocalDate.parse(releaseDate); |
// https://stackoverflow.com/a/41800301/673393 |
this.runningTime = Duration.ofMinutes(runningTimeMinutes); |
} |
public Duration getRunningTime() { |
return runningTime; |
} |
public String getTitle() { |
return title; |
} |
public void addGenre(Genre genre) { |
genres.add(genre); |
} |
public void addActor(long actorId) { |
Actor foundActor = Datastore.getActorById(actorId); |
actors.add(foundActor); |
} |
public List<Actor> getActors() { |
return actors; |
} |
public void addReview(Review review) { |
// TODO: Write code to add the review to the list |
reviews.add(review); |
} |
public String toString() { |
int runningTimeMinutes = (int) this.getRunningTime().getSeconds() / 60; |
return String.format("%s (%s, %s) %s {%s min}", this.title, this.rating, this.releaseDate.getYear(), genres, runningTimeMinutes); |
} |
// TODO - You'll need a new method here to tell Java how to compare two movies by title |
public List<Review> getReviews() { |
return reviews; |
} |
}
In: Computer Science
How does an understanding of management and organizational behavior lead to organizational effectiveness and efficiency? Why is the study of management theories (classical, behavioral and modern management) relevant today?
In: Operations Management
Who are starbucks Competitors and why are they a threat?
In: Operations Management
For each condition listed below, indicate whether it will increase or decrease the likely success of a trade embargo. Briefly explain. (2 points each)
i. The group of countries imposing the embargo account for a small share of the targeted country’s trade.
ii. The targeted country is a major importer of goods from the imposing countries.
In: Economics
According to Crocker & Major (1989), one possible consequence of treating a stigmatizing condition is to improved social interactions of the stigmatized individual. How would you evaluate the ethical (moral) implications or consequences of this treatment?
In: Psychology
12. Suppose that a firm’s production function is given by Q = K0.75L0.25, the wage rate is w = $20 per unit of labor and the rental rate is r = $100 per unit of capital.
What is the marginal rate of technical substitution between labor and capital, ????'( (where labor is graphed on the x-axis and capital is on the y-axis)?
If the firm produces 1000 units of output by using 1000 units of labor and 1000 units of capital, how much is the firm spending in total? Is it minimizing its cost of producing 1000 units? If not, explain in general terms how the firm should adjust.
What is the cost-minimizing input combination for the firm to produce 1000 units? What is the cost of this input bundle? (Round your answer to two decimal places.)
Suppose the firm wants to produce 1000 units of output, and its capital level is fixed at K = 500 in the short run. How many units of L should the firm use? What is the firm’s total cost of producing the 1000 units of output?
In: Economics
“It takes 20 years to build a reputation and few minutes of cyber-incident to ruin it.” Stéphane Nappo, Chief Information Security Officer, Société Générale Discuss the importance of attention to Cyber Security in all areas of the company, including the weakest link (the human), What is the role of top management in preparing a company for a Cyber attack? Use Siemens as an example
In: Operations Management