Question: -formatting output Overview: In this assignment you are given a partial Visual Studio project that has a graphical interface that will allow users to enter
-formatting output Overview: In this assignment you are given a partial Visual Studio project that has a graphical interface that will allow users to enter the duration of a call and the destination area code. Using that information the application will then display the relevant information from the parallel arrays and calculate the total charges for the call. You will need to add the required logic to complete the application. Steps: 1. Add the statements to display the area codes into the CombBox control using the Form_Load event. This is event is called just after the form object is created and is useful to setup the starting conditions of the graphical interface. Add the logic required in the ComboBox SelectedIndexChanged event to display the rate, minimum time duration and the calculated call charge. Please ensure that the numeric values are right justified in the appropriate fields with the rate and total charge fields displayed as currency. The charge for the call is calculated as follows: 2. Any call at or below the minimum time duration will be charged using the applicable rate multiplied by the minimum time duration. a. Calls that exceed the minimum time duration will be charged using the applicable rate multiplied by the length of the call. b. 3. Add appropriate events and logic to recalculate the cost of the call when the user updates the duration of the call even if the area code is not changed. namespace Assigns 3 references public partial class Form1: Form E private stringt] areaCode ("236", "25e, 778", "587", 788", "8e5", 403 587, "825, "36", "639", 204", "432", "8 249" "75, "226", "519", "548, "789"); .88, .88, .88, .09, .09, .e9, .10, .10, .12,.14) : private int[] ninTime 3, 3, 3, e, e, e, 5,5, 5, 2, 2, 2, 4, 4, 4, 6. 6, 6, 8, 9): : 1 reference public Formi() InitializeComponent ) : 1 reference : private void Form1 Load(object sender, EventArgs e) Shutdown the painting of the comboBox as items are added. comboBoxi.Beginupdate): iload comboox with the area codes //use the method comboBox1.Items.Add("483"): for (Int32 a -e a 20; a) comboBox1.Items.Add(areaCodela): tput froms Debug gns.exe (CLR 4.0.38319: Assigns.exe): Loaded 'C: VWINDoNSvMLcrosoft. Net lassenblyvGAC MSILASystemt. 4.0.0.eb ns.exe. (CLR v4.0.38319: Assigns.exe): Loaded 'C:VHINDOMSVHIerosoft.Netlassembly GAC MSILISystem.Drawingiv4.4. ens.exe (CLR v4.8.38319: Assigns.exe): Loaded "Cr IWINDONSMfcrosoft.NetlassemblyIGAC MSILSystem.Configurationtv gns.exe. (CLR y4..30319: Assigns.exe): Loaded .C:WD006\Nicrosoft.Net as senblyVGAC_ASSystea . CoreV4,0-4.0.0. uns,exe (CL v4.e.3e319: ssiens.exe): Loaded CNDO icrosoft.NetlassembiyiGaC HSTL 1System.Xall.e.4..e.e rogram [8424 Assigns.exe has exited with code (exe) t Output SAMSING
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
