Difference between revisions of "2020 - Allow outlets to expand by increasing the max capacity"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(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...")
 
(No difference)

Latest revision as of 09:53, 20 December 2019

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