Questions
Shapes2D Write the following four classes to practice using an abstract class and polymorphism. Submit all...

Shapes2D
Write the following four classes to practice using an abstract class and polymorphism. Submit all four classes.

Shape2D class
For this class, include just an abstract method name get2DArea() that returns a double.

Rectangle2D class
Make this class inherit from the Shape2D class. Have it store a length and a width as fields. Provide a constructor that takes two double arguments and uses them to set the fields. Note, the area of a rectangle is the length times the width.

Circle2D class
Also make this class inherit from the Shape2D class. Have it store a radius as a field. Provide a constructor that takes a double argument and uses it to set the field. Note, the area of a circle is PI times it's radius times it's radius.

Shape2DDriver class
Have this class provide a method named displayName() that takes an object from just any of the above three classes (you can't use an Object type parameter). Have the method display the area of the object, rounded to one decimal place.

In: Computer Science

Choose one feature of the early Ottoman or Safavid Empires and highlight that feature. It could...

Choose one feature of the early Ottoman or Safavid Empires and highlight that feature. It could be anything from the origins of the founders of the empire, to the pattern of conquest, to the institutions or style of rule, to social or cultural history. discuss how the feature is significant in the development of this empire. How does the feature help or hurt the Ottomans or the Safavids to resist the challenges of the changing world balance of power at the time, especially the rise of European power?

In: Psychology

NEED DONE IN AN HOUR File 1 - HotTubLastname.java Write a class that will hold fields...

NEED DONE IN AN HOUR

File 1 - HotTubLastname.java

  • Write a class that will hold fields for the following:
    • The model of the hot tub
    • The hot tub’s feature package (can be Basic or Premium)
    • The hot tub’s length (in inches)
    • The hot tub’s width (in inches)
    • The hot tub’s depth (in inches)
  • The class should also contain the following methods:
    • A constructor that doesn’t accept arguments
    • A constructor that accepts arguments for each field.
    • Appropriate accessor and mutator methods (i.e., setters and getters).
    • A method named getCapacity that accepts no arguments and calculates and returns the capacity (in gallons) of the hot tub.

The capacity of the hot tub can be calculated by using the following formula:

Capacity in gallons = (Length * Width * Depth) / 1728 * 4.8

    • A method named getPrice that accepts no arguments and calculates and returns the price of the hot tub based on the following table:

Hot Tub Capacity

Package

Cost Per Gallon

Less than 350 gallons

Basic

$5.00

Less than 350 gallons

Premium

$6.50

350 but not more than 500 gallons

Basic

$6.00

350 but not more than 500 gallons

Premium

$8.00

Over 500 gallons

Basic

$7.50

Over 500 gallons

Premium

$10.00


Price = Cost Per Gallon * Capacity

File 2 - DemoLastname.java

  • Write a program that demonstrates the class and calculates the cost of hot tubs. The program should ask the user for the following:
    • The model of the hot tub
    • The hot tub’s feature package (can be Basic or Premium)
    • The hot tub’s length (in inches). The program should not accept a number less than 60 for the length.
    • The hot tub’s width (in inches). The program should not accept a number less than 60 for the width.
    • The hot tub’s depth (in inches). The program should not accept a number less than 30 for the depth.
  • The program should prompt the user for all the data necessary to fully initialize the objects. IMPORTANT: Store your objects in a container that will automatically expand as objects are added.
  • The program should continue allowing the user to input information until the user indicates to stop (see sample input on page 3). Note: The program should accept lower or upper case responses to this question.
  • After the user indicates that they wish to stop, the program should output the information for each hot tub.
    • The capacity of the hot tub should be formatted to two decimal places.
    • The price of the hot tub should be formatted as currency to two decimal places and include a comma in the thousands place.
  • After the program outputs the information for each hot tub, it should output the total cost of all of the hot tubs.
  • The program should display the input and output as shown in the provided sample output (Note: this includes blank lines).

In: Computer Science

How will you, as the project manager, know whether the project is following the desired path...

How will you, as the project manager, know whether the project is following the desired path as per the project measurement plan? Please provide a detailed answer.

In: Computer Science

Write the electronic configurations for Mn, Mn2+, Mn4+, Mn6+, and Mn7+

Write the electronic configurations for Mn, Mn2+, Mn4+, Mn6+, and Mn7+

In: Chemistry

How can Karl Marx theoretical perspectives accurately be used in Daily Life?

How can Karl Marx theoretical perspectives accurately be used in Daily Life?

In: Psychology

GENERAL BUSINESS COURSE QUESTION: Joe and Jill were talking about the role played by the Federal...

GENERAL BUSINESS COURSE QUESTION:

Joe and Jill were talking about the role played by the Federal Reserve System in the United States. Joe seemed to be quite well informed about the functions and activities of our central bank. "You see, Jill, the Fed is the main guardian of our nation's economic stability," Joe declared. "In America, we don't want inflation and we don't want recession. To stretch the situation just a bit, we are frightened, absolutely terrified, by thoughts of hyperinflation and depression. So, the Fed maintains the right to alter the situation and protect us from these two monsters. And you ask, how they do that? The answer is the discount rate. That is the device that the Federal Reserve System uses to keep us safe."

Jill was enjoying listening to her friend explain it all. Joe continued, "Now the discount rate is the interest rate that the twelve Federal Reserve Banks around the country charge their member banks on a loan. So, when the discount rate goes up, all interest rates tend to go up. And, happy to say, when interest rates go up all over America, this tends to slow down any inflationary tendencies." Jill asked, "Does the Fed have other tools for stopping inflation?" "No," said Joe.

6) In which type of fund do you think you would invest, a mutual fund or an exchange-traded fund? What is the difference and why would you favor one over the other?

In: Operations Management

On Sunday at 1000hrs, you are assigned to admit a new client to your ward. Fei...

On Sunday at 1000hrs, you are assigned to admit a new client to your ward.

Fei Hong is a 70-year-old female who was admitted to your ward this morning following a fall at home. On admission, her daughter Yu Yan is in attendance. Fei Hong has sustained significant bruising and swelling to her right hip and shoulder with a large skin tear to her right forearm. She did not sustain any fractures. She is admitted for pain relief, dressings to her forearm and a physiotherapy review.

On assessment of Fei Hong, you note that she has bony prominences on her hips and pelvis, and is at risk of developing pressure areas.

Yu Yan has requested an interview with the doctor to determine if her mother needs any extra care at home, as Fei Hong is beginning to show signs of dementia according to her daughter. Fei Hong generally eats a small, but nutritious diet at home that includes all food groups, and is predominantly Asian cuisine.

Fei Hong has reported no urinary issues and takes Metamucil daily to prevent chronic constipation. She can shower and dress independently but requires supervision and prompting at times due to early signs of dementia. She had been mobilising independently prior to this fall.

She will need to be assessed by a physiotherapist for a walking aid. Medically, Fei Hong has some hearing and sight impairment, and wears glasses and bilateral hearing aids, but is on no regular medications.

Socially, she lives with her daughter Yu Yan, son-in-law George and their children – three-year old twins – and Yu Yan’s 17-year-old son Jason from a previous relationship.

Yu Yan cares for her mother and her three (3) children and has no community support for her mother. Fei Hong has no other extended family as she immigrated to Australia 16 years ago to help her daughter raise her son. She speaks little English and is Buddhist. She states that her strong faith and her daughter help her cope with her ageing process.

Fei Hong’s observations on admission are:

• Temp 36.1

• BP 105/68

• Respirations 18

• HR 64

• Height: 156cm

• Weight: 46kg.

• BMI of 19

Question1

Another nurse has drafted a plan of care for Fei Hong. Respond to the questions below based on your scope of practice as an enrolled nurse. Use 20 words for each to explain:

a) How you would confirm that this plan reflects the needs of Fei Hong and her family

b) If the care plan seems to conflict with the client’s needs and requirements, who you would speak with and how you would justify your assumption

c) If Fei Hong’s situation deteriorated after admission, who you would communicate this to, and when and how that should be done

Nursing diagnosis Planning (Nursing intervention) Expected Outcome

• Pain to hip and shoulder due to bruising and swelling following fall • Monitor pain levels with regular pain assessments, may need to use Abbey pain scale due to limited English.

• Minimise pain by administering regular analgesia as prescribed.

• Apply ice pack to reduce swelling as required. • Pain assessment scales reflect reduced pain levels after interventions.

• Reduced mobility following fall • Provide a safe environment for Fei Hong to mobilise

• Follow physiotherapy recommendations. • Fei Hong is able to mobilise with a frame and supervision.

• Potential pressure area formation; related to limited ability to move. • Provide regular pressure area care and assist with 2-4 hourly repositioning.

• Use air mattress to reduce pressure areas. • Skin integrity remains intact.

• Potential infection due to laceration/skin tear to arm • Keep wound clean, change dressings as prescribed.

• Review site for signs of infection such as redness, swelling, discharge.

• Monitor temperature 4th hourly

• Report any concerns to RN. • Optimal wound healing without infection.

• Potential decline in emotional state, related to lack of support in practising her religious faith and limited communication due to speaking little English • Allow time/support for Fei Hong to practice her faith as a coping mechanism.

• Use pictograms to assist with communication, and daughter/ interpreter to interpret on admission and throughout the hospital stay. • Optimal emotional state and Fei Hong able to maintain basic communication strategies.

• Hearing and sight impairment related to ageing. • Assist Fei Hong to apply her glasses and hearing aids.

• Ensure limited background noise when speaking to client.

• Do not shout at client, speak in a clear voice in good light facing her. • Fei Hong is able to see clearly and hear while in hospital.

Response: ??

Question2

Yu Yan and Fei Hong have a complex family. Fei Hong lives with her daughter and her family and Yu Yan is very involved in the care of her mother. In 50 words, explain why it is important to include Yu Yan in the planning of her mother’s care and describe two (2) techniques nurses can use to increase a family’s involvement in the care of their loved one during hospitalisation.

Response

In: Nursing

***JAVA PROGRAM Write a method called shrink that accepts an array of integers (that the user...

***JAVA PROGRAM

Write a method called shrink that accepts an array of integers (that the user inputs) as a parameter and returns a new array containing the result of replacing each pair of integers with the sum of that pair. For example, if an array called list stores the values {7, 2, 8, 9, 4, 15, 7, 1, 9, 10}, then the call of shrink(list) should return a new array containing {9, 17, 19, 8, 19}.

The first pair from the original list is shrunken into 9 (7 + 2),

the second pair is shrunken into 17 (8 + 9), and so on.

If the list stores an odd number of elements, the final element is not collapsed. For example, if the list had been {1, 2, 3, 4, 5}, then the call would return {3, 7, 5}. Your method should not change the array that is passed as a parameter.

Be sure to have a shrink() method

*All variable names are completely up to you, as long as they’re descriptive

*Use the correct data types

*Use comments to explain what you’re coding

*Put your name in a comment

In: Computer Science

The A&M Hobby Shop carries a line of radio-controlled model racing cars. Demand for the cars...

The A&M Hobby Shop carries a line of radio-controlled model racing cars. Demand for the cars is assumed to be constant at a rate of 40 cars per month. The cars cost $60 each, and ordering costs are approximately $15 per order, regardless of the order size. The annual holding cost rate is 20%.

  1. Determine the economic order quantity and total annual cost under the assumption that no backorders are permitted. If required, round your answers to two decimal places.

    Q* =

    Total Cost = $  
  2. Using a $45 per-unit per-year backorder cost, determine the minimum cost inventory policy and total annual cost for the model racing cars. If required, round your answers to two decimal places.

    S* =

    Total Cost = $  
  3. What is the maximum number of days a customer would have to wait for a backorder under the policy in part (b)? Assume that the Hobby Shop is open for business 300 days per year. If required, round your answer to two decimal places.

    Length of backorder period =  days
  4. Would you recommend a no-backorder or a backorder inventory policy for this product? Explain. If required, round your answers to two decimal places.

    Recommendation would be backorder  inventory policy, since the maximum wait is only  days and the cost savings is $  .
  5. If the lead time is six days, what is the reorder point for both the no-backorder and backorder inventory policies? If required, round your answers to two decimal places.

    Reorder point for no-backorder inventory policy is .

    Reorder point for backorder inventory policy is .

In: Math

1) How do you extract a part of a string? Give the command and examples (in...

1) How do you extract a part of a string? Give the command and examples (in arduino)

2) Explain how negation and comparison operators combine together. (in Arduino)

3) What are the qualifiers? (in Arduino)

4) List the increment and decrement operators. (in Arduino)

In: Computer Science

Twelve samples, each containing five parts, were taken from a process that produces steel rods at...

Twelve samples, each containing five parts, were taken from a process that produces steel rods at Emmanuel Kodzi’s factory. The length of each rod in the samples was determined. The results were tabulated and sample means and ranges were computed. The results were:

SAMPLE SAMPLE MEAN (IN.) RANGE (IN.)
1 10.02 0.011
2 10.02 0.014
3 9.991 0.007
4 10.006 0.022
5 9.997 0.013
6 9.999 0.012
7 10.001 0.008
8 10.005 0.013
9 9.995 0.004
10 10.001 0.011
11 10.001 0.014
12 10.006 0.009

a) Determine the upper and lower control limits and the overall means for x -charts and R -charts.

b) Draw the charts and plot the values of the sample means and ranges.

c) Do the data indicate a process that is in control? d) Why or why not?

i AM HAVING ISSUES WITH THE FORMULAS TO MAKE SENSE FOR Standard Deviation, SO IF YOU CAN EXPLAIN THE FORMULAS IN EACH CELL ON HOW YOU GOT THE ANSWER THAT WOULD BE HELPFUL. THANK YOU

In: Operations Management

GENERAL BUSINESS COURSE QUESTION: Joe and Jill were talking about the role played by the Federal...

GENERAL BUSINESS COURSE QUESTION:

Joe and Jill were talking about the role played by the Federal Reserve System in the United States. Joe seemed to be quite well informed about the functions and activities of our central bank. "You see, Jill, the Fed is the main guardian of our nation's economic stability," Joe declared. "In America, we don't want inflation and we don't want recession. To stretch the situation just a bit, we are frightened, absolutely terrified, by thoughts of hyperinflation and depression. So, the Fed maintains the right to alter the situation and protect us from these two monsters. And you ask, how they do that? The answer is the discount rate. That is the device that the Federal Reserve System uses to keep us safe."

Jill was enjoying listening to her friend explain it all. Joe continued, "Now the discount rate is the interest rate that the twelve Federal Reserve Banks around the country charge their member banks on a loan. So, when the discount rate goes up, all interest rates tend to go up. And, happy to say, when interest rates go up all over America, this tends to slow down any inflationary tendencies." Jill asked, "Does the Fed have other tools for stopping inflation?" "No," said Joe.

7) Has the economy recovered from the last recession? What factors led you to your answer? You should be able to back up your opinion. Don't use blog opinions. Make sure your source(s) is/are based upon facts.

In: Operations Management

Wilson Publishing Company produces books for the retail market. Demand for a current book is expected...

  1. Wilson Publishing Company produces books for the retail market. Demand for a current book is expected to occur at a constant annual rate of 7,400 copies. The cost of one copy of the book is $12.5. The holding cost is based on an 14% annual rate, and production setup costs are $140 per setup. The equipment on which the book is produced has an annual production volume of 22,500 copies. Wilson has 250 working days per year, and the lead time for a production run is 16 days. Use the production lot size model to compute the following values:

    1. Minimum cost production lot size. Round your answer to the nearest whole number. Do not round intermediate values.

      Q* =
    2. Number of production runs per year. Round your answer to two decimal places. Do not round intermediate values.

      Number of production runs per year =
    3. Cycle time. Round your answer to two decimal places. Do not round intermediate values.

      T =  days
    4. Length of a production run. Round your answer to two decimal places. Do not round intermediate values.

      Production run length =  days
    5. Maximum inventory. Round your answer to the nearest whole number. Do not round intermediate values.

      Maximum inventory =
    6. Total annual cost. Round your answer to the nearest dollar. Do not round intermediate values.

      Total annual cost = $  
    7. Reorder point. Round your answer to the nearest whole number. Do not round intermediate values.

      r =

In: Math

The following transactions apply to Jova Company for Year 1, the first year of operation: Issued...

The following transactions apply to Jova Company for Year 1, the first year of operation:

Issued $15,500 of common stock for cash.

Recognized $64,500 of service revenue earned on account.

Collected $57,600 from accounts receivable.

Paid operating expenses of $36,000.

Adjusted accounts to recognize uncollectible accounts expense. Jova uses the allowance method of accounting for uncollectible accounts and estimates that uncollectible accounts expense will be 2 percent of sales on account.

The following transactions apply to Jova for Year 2:

Recognized $72,000 of service revenue on account.

Collected $65,600 from accounts receivable.

Determined that $890 of the accounts receivable were uncollectible and wrote them off.

Collected $300 of an account that had previously been written off.

Paid $48,400 cash for operating expenses.

Adjusted the accounts to recognize uncollectible accounts expense for Year 2. Jova estimates uncollectible accounts expense will be 1 percent of sales on account.

Required Complete the following requirements for Year 1 and Year 2. Complete all requirements for Year 1 prior to beginning the requirements for Year 2. d-1.

Prepare the income statement, statement of changes in stockholders’ equity, balance sheet, and statement of cash flows for Year 1.

In: Accounting