Questions
Question 1 (50 marks) Paris planned to celebrate her birthday with a party on 27 November...

Question 1

Paris planned to celebrate her birthday with a party on 27 November 2017. On 1 November, she agreed with the Sun Hotel to hire its ‘Orangery’ annexe for the party. The contract required the payment of $5,000 immediately, which Paris paid, and a further payment of $10,000 by 14 November. On 4 November, the Sun Hotel spent $2,000 relocating orange trees in preparation for the event. On 8 November, a colony of bats settled in the Orangery. The Sun Hotel rang the local authority to ask whether the bats could be removed. The local authority said that the bats could not be disturbed and that it would therefore be illegal to use the Orangery while the bats were in it. Paris was immediately notified but, despite her protests, was told that no refund could be made, as the contract had no provision for this eventuality.

Required a. Define what is meant by frustration of a contract.

b. Identify the types of frustrating event with reference to relevant legal cases.

c. Explain whether the contract between the Sun Hotel and Paris has been frustrated.

d. Explain whether Paris can recover any or all of the $5,000 payment made to the Sun Hotel and is liable to pay the further payment of $10,000.

In: Accounting

Ocean Park and Disneyland are the two theme parks in Hong Kong. They deemed to be...

Ocean Park and Disneyland are the two theme parks in Hong Kong. They deemed to be so different in their theme and attractions that they are not substitutes to one another.

The two theme parks have their 1-day ticket prices revised upward in 2019 as in the following:

Theme Park

Ticket

Was

Now

Ocean Park

Adult

(Ages 12 or above)

Child             

(Ages 3 – 11)                 

Senior

(Ages 65+)

                          HK$480

                          HK$240

              Free of Charge

                       HK$498

                       HK$249

           Free of Charge

Disneyland

General Admission

(Ages 12 – 64)               

Child

(Ages 3 – 11)                 

Senior

(Ages 65+)

                          HK$619

                          HK$458

                          HK$100

                       HK$639

                       HK$475

                       HK$100

(6) From the ticket prices now available (see above table) at Ocean Park, it seems that uniform pricing, i.e. charging a single price to all is not ideal. Basing on the economic concepts/theories that you have learnt in the course (only highschool econ) , what do you think the rationale behind,

  1. From the standpoint of Ocean Park
  2. In the aspect of economic efficiency (use a diagram to show the point)                                                                             (8%)

In: Economics

Rewrite the following text using the correct tone and style to create goodwill. I am writing...

Rewrite the following text using the correct tone and style to create goodwill.

I am writing to you because I want to complain about the horrible service that I endured during my stay at your hotel last weekend.

The porter took such a long time to send my luggage up to my room and he even dared to ask me for a tip. The air-conditioner was also very noisy, and I could not have my beauty sleep which is very important to me. When I called to complain, I was told that it could not be fixed as all maintenance staff was on leave. The service at the restaurants was also so slow and the food was also cold and tasteless. What kind of hotel is this calling yourself as a famous world known 5-star hotel?

I want you to give me a refund of RM 8,888 for the amount that I paid for the room for two nights inclusive of personal damages. I will never stay at your hotel ever again. I am social influencer and if you don't give me a refund, I will post on my social media accounts to boycott your hotel!

In: Operations Management

1.) Vehicles arrive at an entrance to a recreational park. There is a single gate (at...

1.) Vehicles arrive at an entrance to a recreational park. There is a single gate (at which
all vehicles must stop), where a park attendant distributes a free brochure. The park
opens at 08:00 am, at which time vehicles begin to arrive at a rate of 480 veh/hr. after
20 minutes the arrival flow rate declines at 120 veh/hr, and it continues at that level
for the remainder of the day. If the time required to distribute the brochure is 15
seconds and assuming D/D/1 queue,
a. Determine the maximum length of queue that occurred.
b. How long did it take to dissipate the queue?
c. What is the average delay per vehicle?
Show all necessary solutions and diagram

2.) Consider the entrance to the recreational park described in the previous question.
However, assuming that the average arrival rate is 180 veh/hr and Poisson-distributed
(negative exponential times between arrivals) over the entire period from park opening
time, 08:00 am until closing at dusk. Compute
a. The average length of queue
b. Average waiting time in the queue
c. Average time spent in the system

PLEASE ANSWER ALL QUESTION

In: Civil Engineering

Continued from previous question. Price SQFT Bed Bath LTSZ 399900 5.026 4 4.5 0.3 375000 3.2...

Continued from previous question.

Price

SQFT

Bed

Bath

LTSZ

399900

5.026

4

4.5

0.3

375000

3.2

4

3

5

372000

3.22

5

3

5

370000

4.927

4

4

0.3

325000

3.904

3

3

1

325000

2.644

3

2.5

5

319500

5.318

3

2.5

2.5

312900

3.144

4

2.5

0.3

299900

2.8

4

3

5

294900

3.804

4

3.5

0.2

269000

3.312

5

3

1

250000

3.373

5

3.5

0.2

249900

3.46

2

2.5

0.6

244994

3.195

4

2.5

0.2

244900

2.914

3

3

0.3

239900

2.881

4

5

0.3

234900

1.772

3

2

3.6

234000

2.248

3

2.5

0.3

229900

3.12

5

2.5

0.2

219900

2.942

4

2.5

0.2

209900

3.332

4

2.5

0.2

209850

3.407

3

2.5

0.3

206900

2.092

3

2

0.3

200000

3.859

4

2

0.2

In: Statistics and Probability

Continued from previous question. Price SQFT Bed Bath LTSZ 399900 5.026 4 4.5 0.3 375000 3.2...

Continued from previous question.

Price

SQFT

Bed

Bath

LTSZ

399900

5.026

4

4.5

0.3

375000

3.2

4

3

5

372000

3.22

5

3

5

370000

4.927

4

4

0.3

325000

3.904

3

3

1

325000

2.644

3

2.5

5

319500

5.318

3

2.5

2.5

312900

3.144

4

2.5

0.3

299900

2.8

4

3

5

294900

3.804

4

3.5

0.2

269000

3.312

5

3

1

250000

3.373

5

3.5

0.2

249900

3.46

2

2.5

0.6

244994

3.195

4

2.5

0.2

244900

2.914

3

3

0.3

239900

2.881

4

5

0.3

234900

1.772

3

2

3.6

234000

2.248

3

2.5

0.3

229900

3.12

5

2.5

0.2

219900

2.942

4

2.5

0.2

209900

3.332

4

2.5

0.2

209850

3.407

3

2.5

0.3

206900

2.092

3

2

0.3

200000

3.859

4

2

0.2

In: Statistics and Probability

The service life X of a car tire has a Normal probability distribution with µ =...

The service life X of a car tire has a Normal probability distribution with µ = 50,000 miles and σ = 5500 miles. What is the probability that the useful life of a tire is greater than 3500 miles but less than 60,000 miles?

In: Statistics and Probability

Chubbyville purchases a delivery van for $22,500. Chubbyville estimates a four-year service life and a residual...

Chubbyville purchases a delivery van for $22,500. Chubbyville estimates a four-year service life and a residual value of $2,100. During the four-year period, the company expects to drive the van 108,000 miles. Calculate annual depreciation for the four-year life of the van using each of the following methods.


1. Straight-line.?

3. Actual miles driven each year were 19,000 miles in Year 1; 30,000 miles in Year 2; 22,000 miles in Year 3; and 25,000 miles in Year 4. Note that actual total miles of 96,000 fall short of expectations by 12,000 miles. Calculate annual depreciation for the four-year life of the van using activity-based. (Round your depreciation rate to 2 decimal places.)

In: Accounting

JAVA PROBLEM Part 1: Create a Car class in accordance with the following specifications. I will...

JAVA PROBLEM

Part 1: Create a Car class in accordance with the following specifications. I will provide the CarClassTester class as a test driver to test your Car class for its basic structure. Do not change the CarClassTester class source code. After you get your Car class working correctly using this test driver, proceed to part 2 below.

Car Class Specifications:

The Car class must be in a separate package from any driver/tester program.

The Car class will contain, at a minimum, the following information as constants (in Java use final to specify a constant):

  • make
  • model
  • year
  • fuel tank size
  • fuel economy – fuel economy at best speed
  • optimal speed – speed at which the car has the most efficient fuel economy

You will need other fields besides those listed above. These other fields will not be constants. Some of the other fields:

  • odometer
  • trip odometer
  • color
  • fuel level

The Car class will also need at least 3 constructors:

  • Car() – a no argument constructor that initializes an instance using random values. Similar to what we did with the Dog class.
  • Car(String, String, String, int, double, double, double) – accepts arguments to initialize the new Car object with make, model, color, year, tank size, fuel economy, and best speed. You should also initialize the two odometers and the fuel level.
  • Car(Car) – accepts a Car argument to initialize the same state variables in the new Car object as in the Car(String, String, String, int, double, double, double) constructor.

The Car class must implement the following methods.

public fillTank(double): double

  • Adds fuel to the car's fuel tank
  • Precondition: Car has a fuel tank
  • Postcondition: Car's fuel tank may have added fuel
  • Parameter available fuel to fill tank
  • returns: Negative number indicating the amount of fuel the tank will still take, Positive nonzero value of the amount of argument fuel not used, if 0 it just filled the tank

public toString():String

  • Converts the Car object's state variables to a String representation
  • Precondition: All state variables are initialized
  • Postcondition: no change
  • Returns a string representation of state variables

public equals(Car):boolean

  • Checks to see if the calling Car and the argument Car have the same state
  • Precondition: Both the calling Car and argument Car are fully initialized
  • Postcondition: no change
  • parameter pCarObject
  • returns true if the calling Car and the argument Car have the same state values for year, make, and model, else returns false

public driveCar():boolean

  • drives the Car a predefined distance and speed.
  • Precondition: Car's trip state variables have been initialized
  • Postcondition: Car's fuel is reduced proportional to the distance and speed driven or depleted if the distance and speed are too great. Odometer and trip odometer are updated with the miles traveled added. Car's trip state variables distance of travel and speed of travel are set to zero.
  • Return: true if the car travels the distance with fuel remaining, false if the car runs out of fuel

public getTripOdometer():double

  • gets trip odometer
  • Precondition: none
  • Postcondition: no change of state
  • Return: double value of trip odometer to nearest tenth of mile

public clearTripOdometer():void

  • sets trip odometer mileage to 0.0
  • Precondition: none
  • Postcondition: trip odometer set to 0.0

public getOdometer():double

  • gets odometer mileage
  • Precondition: none
  • Postcondition: no change to state
  • Return: double value of odometer to nearest tenth of mile

public getFuelLevel():double

  • retrieves fuel level in gallons
  • Precondition: fuel level is initialized
  • Postcondition: no change in state
  • Return: fuel level in gallons with decimal values

public getFuelTankSize():double

  • retrieves fuel level in gallons
  • Precondition: fuel level is initialized
  • Postcondition: no change is state
  • Return: fuel level in gallons with decimal values

public setUpTrip(double, double): void

  • Car's state is set to hold the speed of travel and distance to travel at that speed
  • Precondition: none
  • Postcondition: Car's state holds information on distance to travel and speed to travel
  • Parameters: Average Speed to be driven, Distance to drive

Develop and use an algorithm that calculates the amount of fuel used and the accrued distance driven in the drive() method. The algorithm must use a formula that gives proportionately poorer mileage when the Car is driven faster or slower than its optimal speed. When a new Car object is instantiated, it is initialized with an optimal speed variable. Your fuel usage algorithm should set limits on how poor of MPG your car will get.

You may add other methods and fields as needed.

When a new Car object is created,

  • the car’s odometer is set to a random number between 0.0 and 5.99,
  • the car’s trip odometer is set to 0.0,
  • its best fuel economy (MPG) is set to a random number between 15.0 and 54.99,
  • its optimal speed is set to a random number between 45.0 and 64.99,
  • and its fuel tank size is set to a random number between 8 and 34.99 gallons.

Hint: Use “helper” methods to generate these random values.

  • Use Math.random( ) to generate your random numbers. Remember Math.random( ) generates a random double number from 0.0 to but not including 1.0.
    • So, to get a random number between 0.0 and 99.99 you must multiply the result of Math.random( ) by 100.
    • To get a random number between 5 and 15(excluding 15), subtract 5 from 15 to get 10, multiply Math.random() by 10 then add 5.
    • Example: If Math.random( ) produced 0.4584, multiplying it by 10 would produce 4.584. Then adding 5 would produce 9.584, which is a value between 5 and 15.

Since the new class Car inherits the .equals() and .toString() methods from the Java Object class, you will need to overload the .equals( ) method and override the .toString( ) method.

Part 2:

After you are comfortable with the Car class, create a driver program, CarTestDriver that has a garage, an instantiation of a Garage class that contains an array of Car types. You must use a Car[] not an ArrayList<Car> in the garage. You will use Car objects to fill the garage. I suggest setting up the Car class with a default constructor that generates random values to create each new Car object.

The rules for driving the cars from the garage are:

  • The size of the garage is specified by the user.
  • The user may only use cars from the garage
  • The user interacts with the Car object after the Car object is retrieved from the garage.
  • If a car is driven and runs out of fuel while it is being driven it is removed from the garage
  • The user may not use a car that has been removed from the garage.
  • The program should not fail due to a user selection.
  • A car may only be refueled when the user retrieves it from the garage
  • The user may select to drive any car that is currently in the garage
  • The user is the only one that may request that a car be refueled(do not refuel a car automatically)
  • The program may not prompt the user to refuel, however, when a car is selected from the garage you may display a menu of options for the user to choose from that includes a refueling option.
  • The user sets up the drive by entering in the average speed and the driving distance.
    See the Car methods above.
  • the driving distance is the round-trip distance from the garage and back again.
  • The driver program is only allowed to use the public methods listed above, and those you create for the Garage class.
  • The user drives the car by telling that car to drive. Again, you may use menus to offer options to the user.

Example of running the car object tester:

Car One: 1927 Black Ford Model T

Car Two: 1923 Black Ford Model T

The two cars are different Car objects.

The two cars are not the same make, model, color, and year.

Car One: 1927 Black Ford Model T

Car Three: 1908 Red Ford Model T

The two cars are different Car objects.

The two cars are not the same make, model, color, and year.

Car One: 1927 Black Ford Model T

Car Clone: 1927 Black Ford Model T

The two cars are different Car objects.

The two cars are the same make, model, color, and year.

Car One: 1927 Black Ford Model T

Same Car object: 1927 Black Ford Model T

The two cars are in fact the same Car object.

The two cars are the same make, model, color, and year.

Let's take a car out for a drive!

1927 Black Ford Model T

Current fuel level in gallons is 31.9 gallons.

Fuel tank size is 31.9 gallons.

Current fuel level is 1.0 tank.

Odometer reading is 3 miles.

Trip Odometer reading is 0.0 miles.

We will drive the 1927 Black Ford Model T 100.4 miles at 45.6 miles per hour.

The state of the car you just drove.

1927 Black Ford Model T

Current fuel level in gallons is 29.0 gallons.

Fuel tank size is 31.9 gallons.

Current fuel level is 0.9 tank.

Odometer reading is 103 miles.

Trip Odometer reading is 100.4 miles.

Car One: 1903 Black Ford Model A, with 30.00 gallons of gas in the tank, 1.84 miles on the odometer, and 0.00 miles on the trip odometer.

Car Two: 1903 Black Ford Model A, with 30.00 gallons of gas in the tank, 2.47 miles on the odometer, and 0.00 miles on the trip odometer.

The the two cars are different Car objects.

The the two cars are the same make, model, color, and year.

Car One: 1903 Black Ford Model A, with 30.00 gallons of gas in the tank, 1.84 miles on the odometer, and 0.00 miles on the trip odometer.

Car Three: 1903 Red Ford Model T, with 30.00 gallons of gas in the tank, 4.56 miles on the odometer, and 0.00 miles on the trip odometer.

The the two cars are different Car objects.

The the two cars are not the same make, model, color, and year.

Car One: 1903 Black Ford Model A, with 30.00 gallons of gas in the tank, 1.84 miles on the odometer, and 0.00 miles on the trip odometer.

Car Clone: 1903 Black Ford Model A, with 30.00 gallons of gas in the tank, 1.84 miles on the odometer, and 0.00 miles on the trip odometer.

The the two cars are different Car objects.

The the two cars are the same make, model, color, and year.

Car One: 1903 Black Ford Model A, with 30.00 gallons of gas in the tank, 1.84 miles on the odometer, and 0.00 miles on the trip odometer.

Same Car object: 1903 Black Ford Model A, with 30.00 gallons of gas in the tank, 1.84 miles on the odometer, and 0.00 miles on the trip odometer.

The the two cars are in fact the same Car object.

The the two cars are the same make, model, color, and year.

Let's take a car out for a drive!

I have a garage with 3 cars.

Which car would you like to drive!

A) 1903 Black Ford Model A, with 30.00 gallons of gas in the tank, 1.84 miles on the odometer, and 0.00 miles on the trip odometer.

B) 1903 Black Ford Model A, with 30.00 gallons of gas in the tank, 2.47 miles on the odometer, and 0.00 miles on the trip odometer.

C) 1903 Red Ford Model T, with 30.00 gallons of gas in the tank, 4.56 miles on the odometer, and 0.00 miles on the trip odometer.

Please select one of the menu choices.

a

You have chosen to drive the 1903 Black Ford Model A, with 30.00 gallons of gas in the tank, 1.84 miles on the odometer, and 0.00 miles on the trip odometer..

Please enter how far you would like to drive.

200

Please enter how fast you would like to drive.

55

Hooray, you did not run out of fuel!

Would you like to drive some more?

Please enter "yes" or "no".

yes

Let's take a car out for a drive!

I have a garage with 3 cars.

Which car would you like to drive!

A) 1903 Black Ford Model A, with 23.95 gallons of gas in the tank, 201.84 miles on the odometer, and 200.00 miles on the trip odometer.

B) 1903 Black Ford Model A, with 30.00 gallons of gas in the tank, 2.47 miles on the odometer, and 0.00 miles on the trip odometer.

C) 1903 Red Ford Model T, with 30.00 gallons of gas in the tank, 4.56 miles on the odometer, and 0.00 miles on the trip odometer.

Please select one of the menu choices.

a

You have chosen to drive the 1903 Black Ford Model A, with 23.95 gallons of gas in the tank, 201.84 miles on the odometer, and 200.00 miles on the trip odometer..

Please enter how far you would like to drive.

1000

Please enter how fast you would like to drive.

85

You only went 716.85 miles, before you ran out of gas.Oops, you ran out of fuel!

Would you like to drive some more?

Please enter "yes" or "no".

yes

Let's take a car out for a drive!

I have a garage with 3 cars.

Which car would you like to drive!

A) 1903 Black Ford Model A, with 0.00 gallons of gas in the tank, 918.69 miles on the oddometer, and 916.85 miles on the trip odometer.

B) 1903 Black Ford Model A, with 30.00 gallons of gas in the tank, 2.47 miles on the odometer, and 0.00 miles on the trip odometer.

C) 1903 Red Ford Model T, with 30.00 gallons of gas in the tank, 4.56 miles on the odometer, and 0.00 miles on the trip odometer.

Please select one of the menu choices.

c

You have chosen to drive the 1903 Black Ford Model A, with 30.00 gallons of gas in the tank, 2.47 miles on the odometer, and 0.00 miles on the trip odometer..

Please enter how far you would like to drive.

200

Please enter how fast you would like to drive.

55

Hooray, you did not run out of fuel!

Would you like to drive some more?

Please enter "yes" or "no".

no

The state of the cars are now.

A) 1903 Black Ford Model A, with 0.00 gallons of gas in the tank, 918.69 miles on the odometer, and 916.85 miles on the trip odometer.

B) 1903 Black Ford Model A, with 30.00 gallons of gas in the tank, 2.47 miles on the odometer, and 0.00 miles on the trip odometer.

C) 1903 Red Ford Model T, with 23.95 gallons of gas in the tank, 204.56 miles on the odometer, and 200.00 miles on the trip odometer.

In: Computer Science

A trucking company determined that the distance traveled per truck per year is normally​ distributed, with...

A trucking company determined that the distance traveled per truck per year is normally​ distributed, with a mean of 70 thousand miles and a standard deviation of 10 thousand miles. Complete parts​ (a) through​ (c) below. a. nbsp What proportion of trucks can be expected to travel between 59 and 70 thousand miles in a​ year? The proportion of trucks that can be expected to travel between 59 and 70 thousand miles in a year is nothing. ​(Round to four decimal places as​ needed.) b. nbsp What percentage of trucks can be expected to travel either less than 45 or more than 80 thousand miles in a​ year? The percentage of trucks that can be expected to travel either less than 45 or more than 80 thousand miles in a year is nothing​%. ​(Round to two decimal places as​ needed.) c. nbsp How many miles will be traveled by at least 65​% of the​ trucks? The amount of miles that will be traveled by at least 65​% of the trucks is nothing miles

In: Statistics and Probability