Shindler gives lots of homework assignments, each of which have an easy version and a hard version1. Each student is allowed, for each homework, to submit either their answer to the easy version (and get ei > 0 points) or the hard version (and get hi > 0 points, which is also guaranteed to always be more than ei) or to submit neither (and get 0 points for the assignment). Note that ei might have different values for each i, as might hi. The values for all n assignments are known at the start of the semester.
The catch is that the hard version is, perhaps not surprisingly, more difficult than the easy version. In order for you to do the hard version, you must have not done the previous assign- ment at all: neither the easy nor the hard version (and thus are more relaxed, de-stressed, etc). Your goal is to maximize the number of points you get from homework assignments over the course of the semester. Give an efficient dynamic programming algorithm to determine the largest number of points possible for a given semester’s homework choices.
In: Computer Science
Doradla, P., Joseph, C., & Giles, R. H. (2017). Terahertz endoscopic imaging for colorectal cancer detection: Current status and future perspectives. World journal of gastrointestinal endoscopy, 9(8), 346.
Lambin, P., Leijenaar, R. T., Deist, T. M., Peerlings, J., De Jong, E. E., Van Timmeren, J., ... & van Wijk, Y. (2017). Radiomics: the bridge between medical imaging and personalized medicine. Nature reviews Clinical oncology, 14(12), 749-762.
Stouthandel, M. E., Veldeman, L., & Van Hoof, T. (2019). Call for a multidisciplinary effort to map the lymphatic system with advanced medical imaging techniques: a review of the literature and suggestions for future anatomical research. The Anatomical Record, 302(10), 1681-1695.
Bödenler, M., de Rochefort, L., Ross, P. J., Chanet, N., Guillot, G., Davies, G. R., ... & Broche, L. M. (2019). Comparison of fast field-cycling magnetic resonance imaging methods and future perspectives. Molecular physics, 117(7-8), 832-848.
Zhou, L. Q., Wang, J. Y., Yu, S. Y., Wu, G. G., Wei, Q., Deng, Y. B., ... & Dietrich, C. F. (2019). Artificial intelligence in medical imaging of the liver. World journal of gastroenterology, 25(6), 672.
In: Computer Science
The five phases of emergency management are prevention, mitigation, preparedness, response, and recovery. Discuss how network technologies can be applied in each phase.
In: Economics
In Python 3:
Software Design Patterns may be thought of as blue prints or recipes for implementing common models in software. Much like re-using proven classes in Object Oriented design, re-using proven patterns tends to produce more secure and reliable results often in reduced time compared to re-inventing the wheel. In fact, some high-level languages have integrated facilities to support many common patterns with only minimal, if any, user written software. That said, in software design and construction, often the challenge is to know that a pattern exists and be able to recognize when it is a good fit for a project. To give you a familiar frame of reference, below is a Singleton Pattern implemented in Java:
public class MySingleton {
// reference to class instance
private static MySingleton instance = null;
// Private Constructor
private MySingleton() {
instance = this;
}
// Returns single instance to class
public static MySingleton getInstance() {
if (instance == null) {
instance = new MySingleton();
}
return instance;
}
public static void main(String[] args)
{
MySingleton s1 = MySingleton.getInstance();
MySingleton s2 = MySingleton.getInstance();
System.out.println("s1: " + s1 + " s2: " + s2);
}
}
If you run this example, you will see that the address for s1 and s2 are exactly the same. That is because the pattern restricts the existence of more than one instance in a process. Of course this example only implements the pattern but other functionality can be added to this class just as any other class. The primary features of a singleton are:
The primary goal of this assignment is not to teach you how to write singleton patterns in Python, (though that’s part of it), but to familiarize you with the concept of design patterns as well as give you experience in adapting one into one of your own designs.
Description
Pick one of your previous assignments, either from MindTap or one of your Distributed Systems assignments and integrate a Singleton Pattern into it. Hint: Any class can be made into a Singleton.
Code to integrate Singleton pattern into:
import random
class Card(object):
""" A card object with a suit and rank."""
RANKS = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
SUITS = ('Spades', 'Diamonds', 'Hearts', 'Clubs')
def __init__(self, rank, suit):
"""Creates a card with the given rank and suit."""
self.rank = rank
self.suit = suit
self.faceup = False
def turn(self):
self.faceup = not self.faceup
def __str__(self):
"""Returns the string representation of a card."""
if self.rank == 1:
rank = 'Ace'
elif self.rank == 11:
rank = 'Jack'
elif self.rank == 12:
rank = 'Queen'
elif self.rank == 13:
rank = 'King'
else:
rank = self.rank
return str(rank) + ' of ' + self.suit
class Deck(object):
""" A deck containing 52 cards."""
def __init__(self):
"""Creates a full deck of cards."""
self.cards = []
for suit in Card.SUITS:
for rank in Card.RANKS:
c = Card(rank, suit)
self.cards.append(c)
def shuffle(self):
"""Shuffles the cards."""
random.shuffle(self.cards)
def deal(self):
"""Removes and returns the top card or None
if the deck is empty."""
if len(self) == 0:
return None
else:
return self.cards.pop(0)
def __len__(self):
"""Returns the number of cards left in the deck."""
return len(self.cards)
def __str__(self):
"""Returns the string representation of a deck."""
result = ''
for c in self.cards:
result = self.result + str(c) + '\n'
return result
def main():
"""A simple test."""
deck = Deck()
print("A new deck:")
while len(deck) > 0:
print(deck.deal())
deck = Deck()
deck.shuffle()
print("A deck shuffled once:")
while len(deck) > 0:
print(deck.deal())
if __name__ == "__main__":
main()
In: Computer Science
In: Computer Science
Prepare 10-12 questions that you plan to use to interview the corporate compliance officer or compliance director
In: Operations Management
Lahser Corp. produces component parts for durable medical
equipment manufacturers. The controller is building a master budget
for the first quarter of the upcoming calendar year. Selected
information from the accounting records is presented next:
a. Accounts Receivable as of January 1 are $59,200. Selling price
per unit is projected to remain stable at $11 per unit throughout
the budget period. Sales for the first six months of the upcoming
year are budgeted to be as follows:
January | $99,100 |
February | $110,500 |
March | $111,500 |
April | $107,500 |
May | $103,000 |
June | $121,400 |
b. Sales are 20% cash and 80% credit. All credit sales are
collected in the month following the sale.
c. Lahser Corp. has a policy that states that each month’s ending
inventory of finished goods should be 10% of the following month’s
sales (in units).
d. Three pounds of direct material is needed per unit at $2.30 per
pound. Ending inventory of direct materials should be 20% of next
month’s production needs.
e. Monthly manufacturing overhead costs are $5,650 for factory
rent, $2,900 for other fixed manufacturing costs, and $1.10 per
unit produced for variable manufacturing overhead. All costs are
paid in the month in which they are incurred.
4. What is the budgeted direct materials cost for the first quarter? (1 point)
In: Accounting
In: Operations Management
Write a business report based on the following:
A new business, Globex Corporation has been created as the result of merging two large regional business, Riverina Precision Farming, and B T & Sons Farming Equipment. Globex Corp is primarily located in the Riverina Region of NSW and has three locations, Albury, Griffith and Wagga Wagga. Within Globex there are two arms to the business (Precision Farming & Farming Equipment), each of which is represented at each location.
The Globex Farming Equipment head office is located in Wagga Wagga, while the Globex Precision Farming head office is located in Griffith. Parts and Services for both arms as well as administration support are coordinated from the Albury office.
Globex Corporation strives to supply agricultural solutions that achieve the following objectives:
Senior management has finalised on the following
decisions:
1. Globex will retain all existing staff, stock and infrastructure from the merged businesses. B T & Sons aging systems are to be merged into the Riverina Precision Farming systems.
2. Globex have decided to invest in the development of an Online Sales Management System (OSMS), replacing all manual processes, allowing clients to order and pay for equipment online.
3. (intentionally left blank)
4. (intentionally left blank)
[Points 3 and 4 will be given to you by your lecturer 7
days before date due. This is to allow everyone to work in this
timeframe and to prevent unauthorised assistance with your
work.]
Write a business report outlining the above case, stating assumptions you make at the beginning of your report. Provide critique into the management decisions substantiating with reference to literature. In your report, make the difference between Information Systems (IS) and Information Technology (IT) issues and how it will affect customer choice, continued patronage, brand loyalty, and so on.
Suggest how to attract new customers (from competitors) and any other new business opportunities that may arise with such a set up. All these should be substantiated with references to IS and IT literature.
In: Operations Management
This is Mr. Burns. Mr. Burns is an 88-year-old male who had an emergent partial gastrectomy today because of a perforated ulcer. Mr. Burns has a history of CHF, hypertension, and he takes warfarin for atrial fibrillation. Because of the perforation, Mr. Burns lost quite a bit of blood prior to surgery, so he received 3 units of packed red blood cells in addition to 2 units of fresh frozen plasma for an elevated INR (it was 5 prior to surgery now it is 1.6). He also received 2 Liters of lactated ringers in the OR. He has a large abdominal incision with a cover dressing intact. There is some bloody drainage present on the dressing, which has been marked. He has an NG tube in the left nare to low intermittent suction. There is a small amount of dark drainage noted in the collection container. There is a central line present in the left neck that was placed by anesthesiology during surgery. He has an indwelling urinary catheter that is draining clear yellow urine. He reports incisional pain 5/10 and states this is tolerable. He is drowsy, but arousable and answers questions appropriately. He's received a total of 0.5 mg hydromorphone while int the PACU. VS are as follows: BP 110/84, HR 96, RR 16, SPO2 98% 2L/NC, T 98.6 F
What assessment data in this report is MOST concerning to you? *
1 urinary catheter draining clear yellow urine
2 abdominal dressing with some bloody drainage
3 NG tube with small amount of dark drainage
4 patient received 3 units PRBCs, 2 units FFP and 2 liters of LR
Other:
What complication are you concerned about based on the priority identified above? *
1 hypervolemia
2 urinary retention
3 hypovolemia
4 hemorrhage
5 electrolyte imbalance
6 aspiration
Mr. Burns arrives to the floor
You perform a full head to toe assessment and obtain a set of VS. Your VS are as follows: BP 148/86, HR 122, RR 26, SPO2 90% 2L/NC. You also note the following when you listen to the lungs:
You note crackles in Mr. Burns' lung assessment. What causes lungs to make this sound? *
1 air moving over a constricted airway
2 air moving over fluid
3 air moving past an obstruction in the larynx
4 movement of inflamed pleural surfaces
Based on your assessment, you notify the provider and expect which order? *
1 increase IV fluid rate
2 administer furosemide (lasix) 40 mg IVP x1 now
3 start ceftriaxone (rocephin) 2 grams IVPB Q6H
4 prepare the patient to return to surgery
In: Nursing
Write a report on the topic 'Industries and their future in India'.
In: Mechanical Engineering
Draw an ERD diagram for Hair Saloon and describe its relationship
In: Computer Science
You have been hired by a major American automaker to design a sales promotion campaign to stimulate sales of its newly-developed economy car, known as the Zoom. Identify several sales promotions techniques described in the chapter that could be most effective and explain why. Recommend two consumer promotions, one trade sales promotion, and one business sales promotion for the company.
In: Operations Management
. You have been hired by a major American automaker to design a sales promotion campaign to stimulate sales of its newly-developed economy car, known as the Zoom. Identify several sales promotions techniques described in the chapter that could be most effective and explain why. Recommend two consumer promotions, one trade sales promotion, and one business sales promotion for the company.
What are the potential risks the firm takes in incorporating sales promotions into its broader IBP campaign?
In: Operations Management
ACT 5140 – Accounting for Decision Makers HW #1 Directions: Answer all the questions. Please submit your work in Word or PDF formats only. You can submit an Excel file to support calculations, but please “cut and paste” your solutions into the Word or PDF file. Be sure to show how you did your calculations. Also, please be sure to include your name at the top of the first page of your file. Question #1 • Using the accompanying financial statements (Excel Workbook), assess The Home Depot concerning liquidity, solvency, profitability, and stock performance. For each area, you should calculate the ratios from the “Ratios for Home Depot file “ and provide a brief analysis of the ratios calculated. You do not need to perform vertical analysis for this assignment. I include historical stock price information and outstanding common share information below. You do not need to look beyond the financial statements to complete this assignment. Fiscal Year Ended 2/1/2015 2/2/2014 2/3/2013 1/29/2012 Adjusted Closing Price $103.34 $74.44 $63.87 $41.67 Common Shares Outstanding (millions) 1,307 1,380 1,486 1,523 HOME DEPOT INC $ in millions Year Ending 2/1/2015 2/2/2014 2/3/2013 1/29/2012 OPERATING ACTIVITIES: Net earnings $6,345 $5,385 $4,535 $3,883 Adjustments to reconcile net earnings to net cash provided by operating activities: Depreciation and amortization 1,786 1,757 1,684 1,682 Stock-based compensation expense 225 228 218 215 Goodwill impairment (323) 0 97 0 Changes in Assets and Liabilities, net of the effects of acquisition and disposition Receivables, net (81) (15) (143) (170) Merchandise inventories (124) (455) (350) 256 Other current assets (199) (5) 93 159 Accounts payable and accrued expenses 244 605 698 422 Deferred revenue 146 75 121 (29) Income taxes payable 168 119 87 14 Deferred income taxes 159 (31) 107 170 Other long-term liabilities (152) 13 (180) (2) Other 48 (48) 8 51 Net cash provided by operating activities $8,242 $7,628 $6,975 $6,651 INVESTING ACTIVITIES: Capital expenditures (1,442) (1,389) (1,312) (1,221) Proceeds from sales of investments 323 0 0 0 Proceeds from sale of business 0 0 0 101 Payments for business acquired (200) (206) (170) (65) Proceeds from sales of property & equipment 48 88 50 56 Net cash used by investing activities ($1,271) ($1,507) ($1,432) ($1,129) FINANCING ACTIVITIES: Proceeds from short-term borrowings, net 290 0 0 0 Proceeds from long-term borrowings, net of discount 1,981 5,222 0 1,994 Repayments of long-term debt (39) (1,289) (32) (1,028) Repurchases of common stock (7,000) (8,546) (3,984) (3,470) Proceeds from sales of common stock 252 241 784 306 Cash dividends paid to stockholders (2,530) (2,243) (1,743) (1,632) Other financing activities (25) (37) (59) (218) Net cash used by financing activities ($7,071) ($6,652) ($5,034) ($4,048) Change in Cash and Cash Equivalents ($100) ($531) $509 $1,474 Effect of exchange rate changes on cash and cash equivalents (106) (34) (2) (32) Cash and cash equivalents at beginning of year 1,929 2,494 1,987 545 Cash and cash equivalents at end of year $1,723 $1,929 $2,494 $1,987 SUPPLEMENTAL DISCLOSURE OF CASH PAYMENTS MADE FOR Interest, net of capitalized interest $782 $639 $617 $580 Income taxes $3,435 $2,839 $2,482 $1,865 HOME DEPOT INC $ in millions Year Ending 2/1/2015 2/2/2014 2/3/2013 1/29/2012 OPERATING ACTIVITIES: Net earnings $6,345 $5,385 $4,535 $3,883 Adjustments to reconcile net earnings to net cash provided by operating activities: Depreciation and amortization 1,786 1,757 1,684 1,682 Stock-based compensation expense 225 228 218 215 Goodwill impairment (323) 0 97 0 Changes in Assets and Liabilities, net of the effects of acquisition and disposition Receivables, net (81) (15) (143) (170) Merchandise inventories (124) (455) (350) 256 Other current assets (199) (5) 93 159 Accounts payable and accrued expenses 244 605 698 422 Deferred revenue 146 75 121 (29) Income taxes payable 168 119 87 14 Deferred income taxes 159 (31) 107 170 Other long-term liabilities (152) 13 (180) (2) Other 48 (48) 8 51 Net cash provided by operating activities $8,242 $7,628 $6,975 $6,651 INVESTING ACTIVITIES: Capital expenditures (1,442) (1,389) (1,312) (1,221) Proceeds from sales of investments 323 0 0 0 Proceeds from sale of business 0 0 0 101 Payments for business acquired (200) (206) (170) (65) Proceeds from sales of property & equipment 48 88 50 56 Net cash used by investing activities ($1,271) ($1,507) ($1,432) ($1,129) FINANCING ACTIVITIES: Proceeds from short-term borrowings, net 290 0 0 0 Proceeds from long-term borrowings, net of discount 1,981 5,222 0 1,994 Repayments of long-term debt (39) (1,289) (32) (1,028) Repurchases of common stock (7,000) (8,546) (3,984) (3,470) Proceeds from sales of common stock 252 241 784 306 Cash dividends paid to stockholders (2,530) (2,243) (1,743) (1,632) Other financing activities (25) (37) (59) (218) Net cash used by financing activities ($7,071) ($6,652) ($5,034) ($4,048) Change in Cash and Cash Equivalents ($100) ($531) $509 $1,474 Effect of exchange rate changes on cash and cash equivalents (106) (34) (2) (32) Cash and cash equivalents at beginning of year 1,929 2,494 1,987 545 Cash and cash equivalents at end of year $1,723 $1,929 $2,494 $1,987 SUPPLEMENTAL DISCLOSURE OF CASH PAYMENTS MADE FOR Interest, net of capitalized interest $782 $639 $617 $580 Income taxes $3,435 $2,839 $2,482 $1,865 HOME DEPOT INC $ in millions Year Ending 2/1/2015 2/2/2014 2/3/2013 1/29/2012 OPERATING ACTIVITIES: Net earnings $6,345 $5,385 $4,535 $3,883 Adjustments to reconcile net earnings to net cash provided by operating activities: Depreciation and amortization 1,786 1,757 1,684 1,682 Stock-based compensation expense 225 228 218 215 Goodwill impairment (323) 0 97 0 Changes in Assets and Liabilities, net of the effects of acquisition and disposition Receivables, net (81) (15) (143) (170) Merchandise inventories (124) (455) (350) 256 Other current assets (199) (5) 93 159 Accounts payable and accrued expenses 244 605 698 422 Deferred revenue 146 75 121 (29) Income taxes payable 168 119 87 14 Deferred income taxes 159 (31) 107 170 Other long-term liabilities (152) 13 (180) (2) Other 48 (48) 8 51 Net cash provided by operating activities $8,242 $7,628 $6,975 $6,651 INVESTING ACTIVITIES: Capital expenditures (1,442) (1,389) (1,312) (1,221) Proceeds from sales of investments 323 0 0 0 Proceeds from sale of business 0 0 0 101 Payments for business acquired (200) (206) (170) (65) Proceeds from sales of property & equipment 48 88 50 56 Net cash used by investing activities ($1,271) ($1,507) ($1,432) ($1,129) FINANCING ACTIVITIES: Proceeds from short-term borrowings, net 290 0 0 0 Proceeds from long-term borrowings, net of discount 1,981 5,222 0 1,994 Repayments of long-term debt (39) (1,289) (32) (1,028) Repurchases of common stock (7,000) (8,546) (3,984) (3,470) Proceeds from sales of common stock 252 241 784 306 Cash dividends paid to stockholders (2,530) (2,243) (1,743) (1,632) Other financing activities (25) (37) (59) (218) Net cash used by financing activities ($7,071) ($6,652) ($5,034) ($4,048) Change in Cash and Cash Equivalents ($100) ($531) $509 $1,474 Effect of exchange rate changes on cash and cash equivalents (106) (34) (2) (32) Cash and cash equivalents at beginning of year 1,929 2,494 1,987 545 Cash and cash equivalents at end of year $1,723 $1,929 $2,494 $1,987 SUPPLEMENTAL DISCLOSURE OF CASH PAYMENTS MADE FOR Interest, net of capitalized interest $782 $639 $617 $580 Income taxes $3,435 $2,839 $2,482 $1,865
In: Accounting