Questions
Part A Java netbeans ☑ Create a project and in it a class with a main....

Part A

Java netbeans


☑ Create a project and in it a class with a main.

We will be using the Scanner class to read from the user. At the top of your main class , after the package statement, paste

import java.util.Scanner;

As the first line inside your main method, paste

Scanner scan = new Scanner(System.in);

Remember when you are getting a value from the user, first print a request, then use the Scanner to read the right type from the user and put it in a variable of that type.

In the main, do the following:

(You can use if, if-else, nesting, or boolean operators. You may not use special math methods, just relational and algebraic operators.)

☑ Get an int n from the user and print "high" "middle" or "low" depending on whether n is above 75, between 25 and 75, or below 25, but if it is exactly 75 or 25 print "hard to say"

☑ Ask the user their favorite animal and get a String as their answer. For five possible values ("cat" "dog" "capybara" etc... your choice) if the user said that animal, print a specialized comment about it (e.g. if they said "cat" you might print "oh, purr!"). If they said none of the types your program covers, instead print a general comment for all other types of animal.

☑ At a certain amusement park, children under 5 get in for $4, children up to (inclusive) 12 get in for $10, teens up to 19 get in for $12, adults up to 59 for $15, seniors up to 79 for $10, and seniors 80 and over for $5. In your main, ask the user for their age. Create a a single compound if-else statement that goes through all the possibilities for admission price above and prints out the appropriate price, given the user's age.

[EC+10] read in an x from the user and print "even" if x is even and "odd" otherwise. You do not need any special math methods to do this.

In: Computer Science

Use the following table displaying 20 of the top (era-adjusted) grossing movies of all time, along...

Use the following table displaying 20 of the top (era-adjusted) grossing movies of all time, along with their Metacritic score (a weighted average of critics ratings), the amount of money they grossed (weighted for the year of release, in millions of dollars), and an indicator of whether or not the movie is a sequel to answer the following questions. You will need to use StatCrunch for this question.

Title Metacritic Adj_Gross Sequel
Gone with the Wind 97 1895.422 No
Star Wars 90 1668.98 No
The Sound of Music 63 1335.086 No
E.T. the Extra-Terrestrial 91 1329.175 No
Titanic 75 1270.102 No
Jaws 87 1200.098 No
Doctor Zhivago 69 1163.15 No
The Exorcist 81 1036.315 No
Snow White and the Seven Dwarfs 95 1021.33 No
Star Wars: The Force Awakens 80 1013.038 Yes
One Hundred and One Dalmatians 83 936.2251 No
The Empire Strikes Back 82 919.2448 Yes
Ben-Hur 90 918.6995 No
Avatar 83 911.791 No
Avengers: Endgame 78 892.6696 Yes
Return of the Jedi 58 881.3366 Yes
Jurassic Park 68 858.8936 No
Star Wars: Episode I - The Phantom Menace 51 846.2244 Yes
The Lion King 88 835.3018 No
The Sting 83 835.269 No

a) Find the correlation between the Metacritic and Adj_Gross variables. Describe the strength and direction of the correlation.

b) Does having a higher Metacritic score have more an impact on gross revenue for original movies (non-sequels) or sequels? Put another way, does an increase of 1 in the Metacritic variable add more value to sequels or non-sequels? Justify your answer. You should be finding two different regression equations to answer this question.

c) Let’s say a new movie came out that received a Metacritic score of 89. Using your regression equations, how much money would it be expected to make if it is a sequel? How much money would it be expected to make if it is not a sequel?

In: Statistics and Probability

Comprehensive Problem 12-53 (LO 12-1, LO 12-2, LO 12-3) Pratt is ready to graduate and leave...

Comprehensive Problem 12-53 (LO 12-1, LO 12-2, LO 12-3)

Pratt is ready to graduate and leave College Park. His future employer (Ferndale Corp.) offers the following four compensation packages from which Pratt may choose. Pratt will start working for Ferndale on January 1, year 1.

  

Benefit Description Option 1 Option 2 Option 3 Option 4
Salary $60,000 $ 50,000 $ 45,000 $ 45,000
Health insurance No coverage 5,000 5,000 5,000
Restricted stock 0 0 1,000 shares 0
NQOs 0 0 0 100 options

Assume that the restricted stock is 1,000 shares that trade at $5 per share on the grant date (January 1, year 1) and are expected to be worth $10 per share on the vesting date at the end of year 1. Each NQO allows the employee to purchase 10 shares at a $5 strike price). The stock trades at $5 per share on the grant date (January 1, year 1) and is expected to be worth $10 per share on the vesting date at the end of year 1. Also assume that Pratt spends on average $3,000 on health-related costs that would be covered by insurance if he had coverage. Assume that Pratt’s marginal tax rate is 35 percent. Assume that Pratt spends $3,000 in after-tax dollars for health expenses when he doesn’t have health insurance coverage (treat this as an outflow), and that there is no effect when he has health insurance coverage. (Ignore FICA taxes and time value of money considerations). (Leave no answers blank. Enter zero if applicable.)

Comprehensive Problem 12-53 part c

c. Assuming Pratt chooses Option 3 and sells the stock on the vesting date (on the last day of year 1), complete Pratt’s Schedule D and Form 8949 for the sale of the restricted stock.

In: Accounting

The big idea behind hypothesis testing is that we have an assumption about reality, and we...

The big idea behind hypothesis testing is that we have an assumption about reality, and we see if the data fits that assumption. The whole process gets complicated by all the notation and calculations, but essentially we’re deciding if the assumption is possible, or if the data leads us to reject it.

1. Your friend Hamad claims to be exceptional at basketball and can make 90% of free throws. You watch him at the gym for a week and find out that he makes 64 shots out of 176 attempts.

Don’t do any calculations here. Just give a quick look at his results and claim, and then a statement about whether it backs up Hamad’s claim. Please write a complete sentence (or more).

2. In each situation, determine whether you should reject or fail to reject H0.

a.         p-value = 0.15, α = 0.10                      b.         p-value = 0.015, α = 0.02

c.         z = 2.345, critical value = 1.645          d.         test statistic = -2.56, critical value = 1.96

3. Yolanda thinks she can roll a 1 on a 6-sided die more often than chance would predict. Write hypotheses to test this. Be sure to define p in words (p = the proportion of…).

4. Test 2: The Japanese harvester beetle has infected several forests in the Northwest. Official estimates are that 17% of trees are infected. You are a park ranger who has been seeing a lot of these beetles lately, and you think the rate is higher in your area. You check 400 trees around your cabin and find that 79 of them are infected.

  • Go through the steps on the Hypothesis Test Guide (D2L). List each step like Step 1, Step 2, etc.
  • Please check the conditions using complete sentences.
  • Please do the calculations out the long way, but definitely use GeoGebra or a calculator stats package to check.
  • Even if the conditions aren’t met, do the rest anyway.
  • Use α = 0.03

In: Statistics and Probability

Show how you arrived at the totals by Line item on the GST/HST return by completing...

Show how you arrived at the totals by Line item on the GST/HST return by completing the following

Additional information--$1,400 HST installment was paid to the CRA for this quarter (Hint—line 110)

Date Invoice # Customer Name/Description Amount with tax HST 101 103
Dec. 4 11100 Stephen Conway - Ski Lessons $1,130.00 $130.00 $1,000.00 $130.00
Dec. 6 11200 Michigan University Ski Team (USA) $3,300.00
Dec. 19 11300 Mississauga Community Center - Cloths, net of 10% volume discount $2,260.00
Jan. 2 11400 High Park Ski Club - skis $3,390.00
Jan. 8 11500 North Toronto Ski Club-lessons $2,260.00
Jan. 13 11600 Haliburton tribe (Aboriginal)—snowshoes delivered to reservation $5,300.00
Jan. 20 11700 University of Ottawa—ski trip $6,780.00
Jan. 27 - Recovery of Bad debt--Retail sale to local customer $791.00
Feb. 2 11800 YWCA in Waterloo—helmes, ski boots    $3,955.00
Feb. 10 11900 Sale to Neiman Markup in New York, USA $8,900.00
Feb. 15 - Bad debt—retail customer sale $452.00
Purchase information
Dec. 10 Advertising $1,356.00 $156.00
Dec. 19 Courier charge for delivery $135.60
Jan. 5 Purchase various inventory $20,340.00
Jan. 21 Purchase of packaging equipment from a local supplier $6,554.00
Jan. 30 Insurance policy for fire and theft $1,700.00
Feb. 2 Business Entertainment—client event (not employee reimbursement) $3,616.00
Feb. 5 Birthday present to senior vice president’s daughter      $840.00
Feb. 8 Reimbursement to employee (using Method 1) for expenses used 100% in the company's commercial activities - inclusive of taxes $560.00
Feb. 16 Purchase of goods (for re-sale), from Denver Colorada, USA (Assessed Canadian Equivalent is= $1,600) $1,380.00

In: Accounting

Problem 10-07 (Algorithmic) Aggie Power Generation supplies electrical power to residential customers for many U.S. cities....

Problem 10-07 (Algorithmic)

Aggie Power Generation supplies electrical power to residential customers for many U.S. cities. Its main power generation plants are located in Los Angeles, Tulsa, and Seattle. The following table shows Aggie Power Generation's major residential markets, the annual demand in each market (in megawatts or MWs), and the cost to supply electricity to each market from each power generation plant (prices are in $/MW).

Distribution Costs
City Los Angeles Tulsa Seattle Demand (MWs)
Seattle $351.25 $588.75 $54.38 945.00
Portland $370.25 $607.75 $192.13 845.25
San Francisco $168.13 $465.00 $286.88 2365.00
Boise $344.25 $463.00 $284.88 581.75
Reno $235.50 $473.00 $354.25 948.00
Bozeman $429.63 $429.63 $310.88 507.15
Laramie $377.25 $436.63 $377.25 1208.50
Park City $383.25 $383.25 $502.00 630.25
Flagstaff $210.13 $507.00 $625.75 1150.19
Durango $341.25 $281.88 $578.75 1450.25
  1. If there are no restrictions on the amount of power that can be supplied by any of the power plants, what is the optimal solution to this problem? Which cities should be supplied by which power plants? What is the total annual power distribution cost for this solution? If required, round your answers to two decimal places.

    The optimal solution is to produce  MWs in Los Angeles,  MWs in Tulsa, and  MWs in Seattle. The total distribution cost of this solution is $  .
  2. If at most 3800 MWs of power can be supplied by any one of the power plants, what is the optimal solution? What is the annual increase in power distribution cost that results from adding these constraints to the original formulation? If required, round your answers to two decimal places.

    What is the optimal solution to produce ____ MWs in Los Angeles?
  3. What is the optimal solution to produce ____ MWs in Tulsa?
  4. What is the optimal solution to produce ____ MWs in Seattle?
  5. What is the total distribution cost of this solution?
  6. What is the increase in cost associated with the additional constraints?

In: Math

42. Besides just offering low prices, how can could a firm make their product or service...

42. Besides just offering low prices, how can could a firm make their product or service more inelastic?

A. Offering WOW customer service and studying new ways to generate repeat business
   B. Improving the quality of the product or service
   C. Offering loyal customers some type of reward like free air and hotel travel to Las Vegas   
   D. All of the above

43. Which item below represents a non-price marketing strategy?   

Sending thank you cards to your customers thanking them for their loyalty
B. Improving the customer service
C. Offering a one-year money back guarantee   
D. All of the above

44. Why do local governments like to tax inelastic goods such as liquor and cigarettes?

A. Inelastic goods tend to be price insensitive.
B. Consumers can’t easily stop using inelastic goods
C. The government has an easier time collecting more tax revenue
D. A, B and C are all correct responses.

45. A product or service will become more elastic over time because:

A. This is a false statement. Over time products become more inelastic
B. With more time consumers can look for substitute goods or services
C. The inflection point of the demand curve will point up
D. All of the statement above are false
46. When Coca-Cola put real cocaine in their drink in the early 1900s, then what did they create?

A. A more inelastic demand curve
B. A more elastic demand curve
C. A new equilibrium point on the total revenue curve
D. A new equilibrium point on the Production Possibilities Curve
49. The source of all economic problems comes from what?

   A. Greedy people
   B. Scarcity
   C. The fact that people don’t have enough money to buy what they need
   D. The fact that government charges too much in taxes

In: Economics

1. Types of groups and teams (Connect, Perform) Use your knowledge of groups and teams to...

1. Types of groups and teams (Connect, Perform)

Use your knowledge of groups and teams to answer the following questions.

Please select the answer that best completes the sentence.

In business organizations, most employees work in --------------- .

For each example presented in the following table, identify the concept being illustrated.

Example

Problem-solving Team

Virtual Team

Cross-functional Team

Self-directed Team

Once the housekeeping unit of a small hotel was organized into this type of team, the employees took responsibility for their own scheduling, ordering their own cleaning supplies, and tracking their performance.
If you need to assemble a team comprised of employees located all over the world, you need to create this type of team.
You want to find a way to reduce the waste your company generates so you create this type of team.

Match each description with the corresponding job design term that best describes it.

Description Job Design Term
Your female employees have mentioned wanting the organization to allow them to meet with other women in the company for mentoring and professional development purposes. What type of group or team should you create?   
Your organization has offices in 6 different countries. You want to create a team that allows employees in all of these countries to collaborate and share ideas and best practices. What type of group or team should you create?   
You have a unit of highly capable, motivated employees. You think that they no longer need formal leaders, and can take on more responsibility in setting their own goals and deciding how to best pursue them. What type of group or team should you create?   
You get along so well with some of your colleagues at work that you organize a volleyball league and regularly go out together after work to socialize. What type of group or team did you create?

In: Operations Management

For this activity, I want you to GO OUTSIDE. You don't have to go far. Find...

For this activity, I want you to GO OUTSIDE. You don't have to go far. Find a city park. Find a patch of grass. Find your backyard. Find your local playground. But find somewhere where maybe there is some vegetation and some nonhuman animals.

Step 1. Look around you. Make careful observations. What do you see? What kinds of phenomena define the landscape that you see before you? What kinds of organisms travel along with it? How does water move through it (think precipitation, how does water get into the ground? Where is the closest water body where a drop of water might end up?) What kinds of things can't you see that you might be curious about? Don't limit yourself or your thinking. Stretch your mind. Include the land, the sky, the soil, etc. Observe the big picture as well as the tiny picture.

Below, briefly describe the environment around you. Remember the environment includes the atmosphere, biosphere, lithosphere (the ground) and the hydrosphere (lakes, oceans, rain):

Step 2. Now write your observations in the form of scientific questions. Scientific questions are those that can be addressed using observation and hypothesis testing. Write at least ten scientific questions. Think big, think small, and everywhere in between.

Step 3. Pick the question that you think would be the easiest to address using the scientific method and try to form two different possible answers. Frame them in the form of scientific hypotheses: your best guess given your current knowledge of the natural world.

Question picked:

Hypothesis 1:

Hypothesis 2:

Step 4. Now, as best you can, write a paragraph describing an experiment or study you could run to address your question. In your study, tell me what the independent and dependent variables are. What sort of things should be controlled for?

In: Operations Management

Jenny Jinglebell has always wished to own her own French macaroons shop. Ever since she tried...

Jenny Jinglebell has always wished to own her own French macaroons shop. Ever since she tried

her first macaroon, she thought it would be a brilliant idea to have her own shop where she can

sell a multitude of flavors and colors of French macaroons. She purchased a premium site for

the macaroons shop, right across the street from Campus Martius Park in Downtown Detroit.

After extensive research, Jenny decided that it is best for her to open a franchise at first. The

franchise that best fit Jenny’s criteria is François Patisserie. A François Patisserie franchise costs

$30,000, an amount that is amortized over 15 years. As a franchisee, Jenny needs to adhere to

the company’s building specifications. The building would cost an estimated $450,000 and

would result in a $50,000 salvage value at the end of its 15-year life. The equipment needed is

sold as a package by the corporate office at a cost of $200,000, will have a salvage value of

$10,000 at the end of its 5-year life, equipment and must be replaced every 5 years.

Jenny estimates the annual revenue from a François Patisserie franchise at $950,000. Food

costs typically run 36% of revenue. Annual operating expenses, not including depreciation, total

$425,000. For financial reporting purposes, Jenny will use straight-line depreciation and

amortization. Based on past experience, she uses a 16% discount rate.

*Please no handwriting*

Required:

a.

Calculate the shop’s net present value over the franchise’s 15-year life.

b.

Calculate the restaurant’s payback period.

c.

Calculate the restaurant’s simple rate of return.

d.

Should Jenny open a

François Patisserie? Why or why not? Note: for comparison

purposes, you should know that

using Excel or a similar spreadsheet application Jenny

calculates her IRR to be 22.64%.

e.

What potential shortcomings do you see in Jenny’s estimates? How do you recommend she

adjusts her analysis to address those shortcomings?

In: Accounting