PYTHON QUESTION
Create a subclass of the Dog class named anything appropriate (e.g. Bulldog, Chihuahua, German Shepherd, etc). This subclass should consist of the following:
1. It should inherit the __init__ method from the Dog class, but add one new attribute at instantiation.
2. It should add two new methods that were not in our Dog class
3. It should overwrite one of the methods that existed in the Dog class.
-------
I'm not entirely sure where I should add this information to my dog class, nor how I should go about overwriting one of the methods.
-------
class Dog:
def __init__(self,name,age):
self.name = name
self.age = age
def description(self):
return self.name + ' is' + str(self.age) + ' years old.'
def speak(self):
return self.name + ' barks!'
def run(self):
return self.name + ' is running!'
def fetch(self, toy):
print(self.run())
print(self.name + ' fetched the ' + toy)
print(self.name + ' is bringing it back!')
def wags_tail(self):
return self.name + ' is so happy!'
def isolder(self, dog2):
if self.age > dog2.age:
return True
else:
return False
dog1 = Dog('Hurc', 2)
dog2 = Dog('Sammy', 5)
print(dog1.description())
print(dog1.speak())
print(dog1.run())
dog1.fetch('ball')
print(dog1.wags_tail())
print(dog1.isolder(dog2))In: Computer Science
The increases to Work in Process—Roasting Department for Highlands Coffee Company for May as well as information concerning production are as follows:
| Work in process, May 1, 1,500 pounds, 10% completed | $20,670 |
| Coffee beans added during May, 92,600 pounds | 712,850 |
| Conversion costs during May | 299,600 |
| Work in process, May 31, 900 pounds, 80% completed | _ |
| Goods finished during May, 93,200 pounds | _ |
Prepare a cost of production report, using the average cost method. If required, round cost per equivalent unit answers to the nearest cent.
| Highlands Coffee Company | ||
| Cost of Production Report-Roasting Department | ||
| For the Month Ended May 31 | ||
| Unit Information | ||
| Units to account for during production: | ||
| Inventory in process, May 1 | ||
| Received from materials storeroom | ||
| Total units accounted for by the Roasting Department | ||
| Units to be assigned costs: | ||
| Whole Units | Equivalent Units of Production | |
| Transferred to finished goods in May | ||
| Inventory in process, May 31 | ||
| Total units to be assigned costs | ||
| Cost Information | ||
| Costs per equivalent unit: | ||
| Costs | ||
| Total costs for May in Roasting Department | $ | |
| Total equivalent units | ||
| Cost per equivalent unit | $ | |
| Costs assigned to production: | ||
| Inventory in process, May 1 | $ | |
| Costs incurred in May | ||
| Total costs accounted for by the Roasting Department | $ | |
| Costs allocated to completed and partially completed units: | ||
| Transferred to finished goods in May | $ | |
| Inventory in process, May 31 | ||
| Total costs assigned by the Roasting Department | $ | |
In: Accounting
Case study 4 UPS in India - Time to shift gear
Provide a finding of fact for International Business
Provide a full justification and recommendation for each finding of fact
In: Economics
1. Assign oxidation numbers to the Iron atoms of Magnetite. Recall Magnetite's chemical formula Fe3O4 is better written as FeOFe2O3.
2. Sketch electron filling of the d-orbitals for the Fe3+, Fe2+, Gd3+ and Y3+ ions. Rank them according to increasing paramagnetism.
3. Hessonite (Cinnamon Stone) is a variety of Grossular which is a Calcium-Aluminum rich garnet gemstone with a formula of Ca3Al2(SiO4)3.Would you expect this garnet to be magnetic? Explain.
In: Chemistry
An object at rest explodes into three fragments. The figure shows the momentum vectors of two of the fragments:
What are the px and py components of the momentum of the third fragment?
In: Physics
In: Other
Domestication of plants and animals led to stable food supplies during the Holocene; however, it also resulted in significant environmental and health problems. What were these problems? (300 words minimum).
In: Biology
Do this in python with code that I can copy and run
Design and implement class Radio to represent a radio object. The class defines the following attributes (variables) and methods:
Assume that the station and volume settings range from 1 to 10.
The radio station is X and the volume level is Y. Where X and Y are the values of variables station and volume. If the radio is off, the message is: The radio is off.
Now design and implement a test program to create a default radio object and test all class methods on the object in random order. Print the object after each method call and use meaningful label for each method call as shown in the following sample run.
Sample run:
Turn radio on:
The radio station is 1 and the volume level is 1.
Turn volume up by 3:
The radio station is 1 and the volume level is 4.
Move station up by 5:
The radio station is 6 and the volume level is 4.
Turn volume down by 1:
The radio station is 6 and the volume level is 3.
Move station up by 3:
The radio station is 9 and the volume level is 3.
Turn radio off.
The radio is off.
Turn volume up by 2: The radio is off.
Turn station down by 2: The radio is off.
In: Computer Science
An engineer is studying the effect of cutting speed on the rate
of metal removal in a machining operation. However, the rate of
metal removal is also related to the hardness of the test specimen.
Five observations are taken at each cutting speed. The amount of
metal removed y and the hardness of the specimen x are shown below
in the format of a data file. Column 1 has treatment (1 for cutting
speed 1000, 2 for cutting speed 1200, 3 for cutting speed 1400),
column 2 has x=hardness, column 3 has y=amount of metal
removed.
1 125 77.4
1 120 68.4
1 140 90.4
1 150 97.9
1 136 87.6
2 133 85.4
2 140 94.4
2 125 74
2 120 64.8
2 165 112.1
3 130 79.6
3 175 117.6
3 132 82.3
3 141 91.9
3 124 72.9
Do an analysis of these data and include the following.
1. A scatterplot of the ys versus the xs, using different symbols
(or colours) to distinguish the points corresponding to different
cutting speeds. Do the ys appear to be related to the xs? Include
regression lines of y versus x for each cutting speed. Does it seem
reasonable to believe that these three lines have the same
slope?
2. An ANCOVA table.
3. An ANOVA table based on the ys, disregarding the xs, to
determine whether there are differences in the (mean) amount of
metal removed for different cutting speeds. Comment on differences
with part (2).
You will be asked a few questions concerning the analysis.
Please use 3 decimal places for the answers below which are not
integer-valued.
Part a)
The type II SS for cutting speed (treatment) is______ and its
degree of freedom is______
Part b)
The MSE for ancova is:______ and its degree
of freedom is______
Part c)
The appropriate F ratio for cutting speed is:
______
Part d)
What is the estimate slope for x=hardness?
______
In: Math
Suppose that 26 mL of 0.10 M HCl is added to 1.000 L of saturated Mg(OH)2' which contains more than enough Mg(OH)2(s) to react with all of the HCl.
A.) After the reaction has ceased, what will the molar concentration of Mg2+ be?
B.) What will the pH of the solution be?
In: Chemistry
1. Cherry hill Inc.’s balance sheet is shown below:
| Assets | US$ | liabilities and equity | US$ |
| Assets | 50000 | Equity | 50000 |
| Total | 50000 | Total | 50000 |
Cherry hill wishes to acquire equipment worth US$20,000. It can
either buy
it by borrowing the required amount at a 10% rate of interest or it
can
take it on lease for a period of 5 years. If it leases it, the
lease rental would
be US$5276 per year. Assume taxes are absent.
Show the balance sheet of Cherry hill Inc. if:
(a) It finances the equipment with debt
(b) It leases the equipment as an operating lease
(c) It leases the equipment as a financial lease (hint: find the
present
value of lease rentals at a discount rate of
10%)
In: Accounting
Freezing point depression experiment
1/what effect does the presence of a nonvolatile solute have upon the freezing point of a solution?
2/Explain the diffrence between molarity and molality. What are the units on each?
3/what is the molality of a solution that contains 5.2g of urea(molar mass = 60g/mol)in 250g of benzene(c6H6)?
In: Chemistry
1) As a software engineer what are your legal and ethics responsibilities when you work for medical and military application?
2) What are the two levels of system design? Describe their corresponding main purpose briefly
3) What is double blind test? How to use this test to objectively compare the goodness of two software system, (e.g... google vs Bing.)
4) Define and Describe the main pros and cons of three software cost estimation methods
Compare the following concepts ( state the respective definitions and the difference)
- understandability vs user-friendliness
-software debugging vs. software testing
-black-box testing vs white-box testing
-software re-engineering vs reverse software engineering
In: Computer Science
Prepare a report for management, stating the advantages and disadvantages of each depreciation method. Include in the report your recommendations on the choice of method consistent with the requirements of IAS 16/AASB 116. Support your recommendations with schedules showing the total annual cost of operating the machinery, and the profit after depreciation.
In: Accounting
The transactions of Spade Company appear below. Kacy Spade, owner, invested $11,250 cash in the company in exchange for common stock. The company purchased office supplies for $326 cash. The company purchased $6,221 of office equipment on credit. The company received $1,328 cash as fees for services provided to a customer. The company paid $6,221 cash to settle the payable for the office equipment purchased in transaction c. The company billed a customer $2,385 as fees for services provided. The company paid $530 cash for the monthly rent. The company collected $1,002 cash as partial payment for the account receivable created in transaction f. The company paid $1,200 cash in dividends to the owner (sole shareholder). Required: 1. Prepare general journal entries to record the transactions above for Spade Company by using the following accounts: Cash; Accounts Receivable; Office Supplies; Office Equipment; Accounts. Payable; Common Stock; Dividends; Fees Earned; and Rent Expense. Use the letters beside each transaction to identify entries. 2. Post the above journal entries to T-accounts, which serve as the general ledger for this assignment.
In: Accounting