Question: PART C Include the methods created in part B to develop a Visual C# .NET program that will simulate the basic profit calculation, PT =
PART C Include the methods created in part B to develop a Visual C# .NET program that will simulate the basic profit calculation, PT = nPv, where n follows a uniform distribution, Pv follows a normal distribution, and the user can input the number of bins and number of iterations. The user must also input the min and max for n and the mean and standard deviation for Pv. Finally, the user can click a button and the results will be graphed on a bar chart using the Microsoft Chart Control and the average total profit (PT) will be displayed in a textbox. Turn in a screen shot of the resulting chart using: 1. Iterations: 10000 Bins: 5 n-min: 1 n-max: 10 Pv-mean: 7000 Pv-stddev: 1000 2. Iterations: 10000 Bins: 10 n-min: 1 n-max: 10 Pv-mean: 7000 Pv-stddev: 1000 3. Iterations: 10000 Bins: 10 n-min: 1 n-max: 10 Pv-mean: 8000 Pv-stddev: 1500 Thats three screen shots.
PART D Extend the Visual C# .NET program developed in part C to simulate the basic profit calculation, PT = nPv, where the user can select either a uniform or normal distribution for n using radio buttons and then must input the appropriate parameters (min and max if they select uniform, mean and standard deviation if they select normal) and they can similarly select either a uniform or normal distribution for Pv with appropriate parameters depending on the selection. Of course, the user will input the number of bins and number of iterations. Finally, the user can click a button and the results will be graphed on a bar chart using the Microsoft Chart Control and the average total profit (PT) will be displayed in a textbox. Also include in the program any necessary input validation for all input values. Turn in a listing of the code and a screen shot of the resulting chart using: 1. Iterations: 10000 Bins: 5 n-min: 1 n-max: 10 Pv-mean: 9000 Pv-stddev: 1500 2. Iterations: 10000 Bins: 10 n-mean: 7 n-stddev: 2 Pv-min: 2000 Pv-max: 9000 3. Iterations: 10000 Bins: 10 n- mean: 12 n- stddev: 3 Pv-min: 1000 Pv-max: 10000 Thats three screen shots and a listing of the code.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
