***JAVA LANGUAGE, NO CHANGES NEEDED FOR THE Movie CLASS. USE THIS AS A REFERENCE***
public class Movie {
private String title;
private int length;
private static int numMovies = 0;
public Movie() {
this("", 0);
}
public Movie(String title, int length) {
this.title = title;
this.length = length;
++numMovies;
}
public String getTitle() { return this.title; }
public int getLength() { return this.length; }
public static int getNumMovies() { return numMovies; }
public void setTitle(String title) {
this.title = title;
}
public boolean setLength(int length) {
if (length > 0) {
this.length = length;
return true;
}
else {
return false;
}
}
}
***IMPLEMENTATION CLASS BELOW HAS 3 BLOCKS OF CODE NEEDED. LOOK FOR THE COMMENTS LABELED "BLOCK"***
import javax.swing.JOptionPane;
public class TheatreIncomplete {
public static void main(String[] args) {
final int NUM_MOVIES = 5;
Movie[] movies = new
Movie[NUM_MOVIES];
int x = 0;
do {
/** START:
BLOCK #1
* In
the block below, enter code that will first check if there is room
to enter another movie in the
*
movies array. If there is, call the add the movie to the array
using the inputMovie() method.
* Else,
if there is not, display an error message to the user letting them
know the maximum nubmer of movies
* that
can be entered.
* Hint:
To check the number of movies already entered, use the
getNumMovies() static method
*/
/** END:
BLOCK #1
**/
}
while
(JOptionPane.showConfirmDialog(null, "Enter another movie?") ==
JOptionPane.YES_OPTION);
Movie shortestMovie =
getShortest(movies);
printSummary(movies,
shortestMovie);
}
private static Movie inputMovie() {
Movie aMovie = new
Movie();
aMovie.setTitle(JOptionPane.showInputDialog(null,
"Enter the title for movie " + Movie.getNumMovies() + ": "));
int length;
boolean isLengthSet =
false;
do {
try {
length
= Integer.parseInt(JOptionPane.showInputDialog("Enter the length of
" + aMovie.getTitle() + " in (minutes)"));
}
catch
(NumberFormatException e) {
length
= -1;
}
isLengthSet =
aMovie.setLength(length);
if
(!isLengthSet) {
JOptionPane.showMessageDialog(null,
"Sorry, you entered an invalid movie length. Please try
again.");
}
} while(!isLengthSet);
return aMovie;
}
private static Movie getShortest(Movie[] movies)
{
Movie aMovie = null;
if (movies.length > 0)
{
/** START:
BLOCK #2
* In
the block below, enter code that will find the movie object
containing the shortest length
* Hint:
You will need to loop through all movies to find the shortest
*/
/** END:
BLOCK #2 **/
}
return aMovie;
}
private static void printSummary(Movie[] movies,
Movie shortestMovie) {
String summary="**Movie
Summary**\n";
/** START: BLOCK #3
* First, using the
summary variable declared above, loop through all of the movies
entered, appending the title of each
* movie to the summary.
Then, append to the summary the number of movies entered, the title
of the shortest movie
* and the length of the
shortest movie
* Hint: To get the number
of movies entered, use the getNumMovies() static method
* Hint: To get the title
and length of the shortest movie, use the object reference passed
into the method
*/
/** END: BLOCK #3 **/
JOptionPane.showMessageDialog(null,
summary);
}
}
If you are not familiar with JOptionPane you can just code with Scanner and I will change it. Thank you.
In: Computer Science
What Changes Ford Motors COmpany implemented in the last 10 years?
Or
Internal Forces? Discuss?
Planned?
Or
Reactive?
What are the "real-world" implications for this case?
In: Operations Management
Given the ∆G° changes below, determine ∆G° for 2 A + B + D → 2 F
A + B → C ∆G° = -35 kJ
A + D → E + F ∆G° = 20 kJ
F → C + E ∆G° = 15 kJ
In: Chemistry
What is sublimation?
Select one:
a. A liquid substance changes directly to a gas
b. A solid substance changes directly to a gas
c. A liquid substance changes directly to a solid
d. All answers
What is the job of an inspector?
Select one:
a. To check the balance sheet
b. All answers
c. To check the quality and the condition of equipment
d. To check the design of used equipment
What is the key difference between hot rolling and cold rolling?
Select one:
a. The piece is above or below the boiling point
b. The piece is above or below the working surface
c. The piece is above or below the recrystallisation temperature
d. The piece is above or below the triple-point temperature
What is the most common Hazard in any workplace?
Select one:
a. Slips, trips and falls
b. Suffocation
c. Arc eye
d. Electrocution
Clear my choice
What is the process called which uses a wax pattern coated with a ceramic material to form the shape of the desired casting?
Select one:
a. Investment casting
b. Forcing
c. Die casting
d. Extrusion
What is the process of deposition?
Select one:
a. All answers
b. A gas changes to a solid
c. A liquid changes to a solid
d. A solid changes to a gas
What is the unit for forces?
Select one:
a. Newton
b. Kilo
c. Volt
d. Ampere
Clear my choice
What is the upper yield force?
Select one:
a. The force required to begin to stretch the specimen
b. The force required to fracture a material
c. The force beyond which the material exceeds the elastic limit
d. The maximum capacity of a tensile testing machine
What property of a material’s ability is conductivity?
Select one:
a. Conduct heat and electricity
b. Conduct electricity only
What sampling techniques are used in industry?
Select one:
a. Random sampling
b. Specified sampling
c. All answers
d. 100 % sampling
What should be the allowance made for when bending material to a specified angle?
Select one:
a. Springback
b. Breaking
c. Bend allowance
d. Springboard
c. Conduct matter only
d. Conduct heat only
PLEASE ONLY FINAL ANSWER NO NEED FOR DETAILS
In: Mechanical Engineering
"Changes are needed in the present education system to adequately meet the societal and personal needs of the Caribbean people." Do you agree or disagree.
In: Psychology
|
Employee Number |
Time 1 Satisfaction |
Time 2 Satisfaction |
|
10012 |
8.5 |
6.5 |
|
10057 |
6.8 |
4 |
|
10089 |
6.5 |
4 |
|
10126 |
4.2 |
5.7 |
|
10023 |
7 |
6 |
|
10045 |
6 |
3 |
|
10094 |
7 |
6.5 |
|
10087 |
3 |
3 |
|
10145 |
4.5 |
3.5 |
|
10023 |
9 |
8.5 |
|
10062 |
8.5 |
4 |
|
10078 |
4 |
2.5 |
In: Math
in your own words explain
What changes are occurring in the arts and literature from the late Medieval period to the early Renaissance?
In: Psychology
Explain how the optimal combination of work and consumption changes after a decline in the wage rate. (It would be helpful for you to practice graphing this in the consumer’s problem)
In: Economics
ShopSmart’s International Growth Strategy
ShopSmart, founded by in 1919 by Nick Smart, is a British multinational grocery and merchandise retailer. It is the largest grocery retailer in the United Kingdom, with a 28% share of the local market and the second largest after Walmart measured in revenue. In 2017, ShopSmart had sales of more than £62 billion ($70 billion US dollars), more than 480,000 employees and 6,553 stores in 13 countries.
In its home market of the United Kingdom, the company’s strengths are reputed to come from strong competencies in marketing and store site selection, logistics and inventory management and its own label product offerings. By the early 1990s, these competencies had already given the company a leading position in the United Kingdom. ShopSmart was generating strong cash flows and senior managers had to decide how to use that cash. One strategy they settled n was international expansion.
As managers looked at international markets, they soon concluded that the best opportunities were not in established markets in North America and Western Europe where strong competitors already existed but in emerging markets of Eastern Europe and Asia, where there were strong underlying growth trends. ShopSmart’s first international foray was into Hungary in 1995 where it acquired Globals Stores, a state-owned grocery chain. By 2017, ShopSmart was the market leader in Hungary accounting for 1% of the whole economy of Hungary.
Next, ShopSmart acquired 31 stores in Poland from Stavia Limited. The following year, in 1996, ShopSmart added 13 stores that it purchased from Kmart in the Czech Republic and Slovakia. The next year, ShopSmart moved to purchase stores in the Republic of Ireland.
ShopSmart’s Asian expansion begun in 1998 when it moved into Thailand. In 1999, the company entered South Korea when it partnered with Samsung to develop a chain of hypermarkets. This was followed by entry into Taiwan in 2000, Malaysia in 2002, Japan in 2003 and China in 2004.
The move into China came after three years of careful research and discussions with potential partners. Like many other western companies, ShopSmart was attracted to the Chinese market by its large size and rapid growth. In the end, ShopSmart settled on a 50-50 joint venture with Hymall, a hypermarket chain that is controlled by Ting Hsin, which has been operating in China for six years. In 2014, ShopSmaart combined its 131 stores in China in a joint venture with the state-run China Resources Enterprise and its nearly 3,000 stores. ShopSmart owned 20% of the joint venture. As a result of these moves, by 2017, ShopSmart generated sales of about $21 billion outside the United Kingdom. The addition of international stores has helped make ShopSmart the second largest company in the global grocery market behind only Walmart. By 2017, all its foreign ventures were making money.
(Source: Adapted from Hill, C.W.L. & Hult, G.T.M., (2019), International Business: Competing in the Global Marketplace, 12th Edition, McGraw Hill Education)
Examine two reasons why ShopSmart’s initial international expansion focused on emerging markets rather than competing with established companies in the more advanced markets of North America and Western Europe.
Discuss two disadvantages that ShopSmart encountered as a first mover into these emerging markets.
ShopSmart’s entry strategy into the Eastern European countries was through acquisition. Discuss three disadvantages that the company is likely to encounter as a result of this entry strategy
Identify ShopSmart’s strategic entry into the Asian market and discuss two benefits that the company sought to achieve with this strategy
In: Economics
Assignment Details
In Unit 2, you have learned about three different types of distributions: Normal, binomial, and Poisson. You can take data that you collect and plot it out onto graphs to see a visual representation of the data. By simply looking at data on a graph, you can tell a lot about how related your observed data are and if they fit into a normal distribution.
For this submission, you will be given a series of scenarios and small collections of data. You should plot the data or calculate probabilities using excel. Then, you will create your own real or hypothetical scenario to graph and explain.
Answer the following:
| 1998 | 72 |
| 1999 | 69 |
| 2000 | 78 |
| 2001 | 70 |
| 2002 | 67 |
| 2003 | 74 |
| 2004 | 73 |
| 2005 | 65 |
| 2006 | 77 |
| 2007 | 71 |
| 2008 | 75 |
| 2009 | 68 |
| 2010 | 72 |
| 2011 | 77 |
| 2012 | 65 |
| 2013 | 79 |
| 2014 | 77 |
| 2015 | 78 |
| 2016 | 72 |
| 2017 | 74 |
| Day 1 | 93 |
| Day 2 | 88 |
| Day 3 | 91 |
| Day 4 | 86 |
| Day 5 | 92 |
| Day 6 | 91 |
| Day 7 | 90 |
| Day 8 | 88 |
| Day 9 | 85 |
| Day 10 | 91 |
| Day 11 | 84 |
| Day 12 | 86 |
| Day 13 | 85 |
| Day 14 | 90 |
| Day 15 | 92 |
| Day 16 | 89 |
| Day 17 | 88 |
| Day 18 | 90 |
| Day 19 | 88 |
| Day 20 | 90 |
Customer surveys reveal that 40% of customers purchase products online versus in the physical store location. Suppose that this business makes 12 sales in a given day
Your own example:
In: Statistics and Probability