2020 - Allow outlets to expand by increasing the max capacity

From TRCCompSci - AQA Computer Science
Revision as of 09:53, 20 December 2019 by Admin (talk | contribs) (Created page with "=Find the MopdifyCompany method of the Simulation class= =Add a Console.WriteLine for option 4 'Rebuild Outlet'= =Add an else if to the second to last line of the method for...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Find the MopdifyCompany method of the Simulation class

Add a Console.WriteLine for option 4 'Rebuild Outlet'

Add an else if to the second to last line of the method for choice=="4"

In the Outlet class add a method called IncreaseMaxCap()

IncreaseMaxCap should increase the MaxCapcity by 25%

Now in the Company class Copy and Paste ExpandOutlet

Rename the new version RebuildOutlet

You essentially need 'Outlets[ID].IncreaseMaxCap()' and any confirmation messages