Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Include the methods created in part B to develop a Visual C# .NET program that will simulate the basic profit calculation, PT = nPv, where

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

*Part B methods come from here (in C#)*

public int GetRandomUniform(int min, int max) This method returns a random number from a uniform distribution between min and max.

public double GetRandomNormal(double mean, double stddev) This method returns a random number from a normal distribution with a mean of mean and standard deviation of stddev

public int GetBinIndex(double mini, double maxi, int numbins, double valuetobin) This method returns the Bin Index given an input minimum of mini, input maximum of maxi, numbins number of bins, and a value to bin of valuetobin

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

What is Accounting?

Answered: 1 week ago

Question

Define organisation chart

Answered: 1 week ago

Question

What are the advantages of planning ?

Answered: 1 week ago

Question

Explain the factors that determine the degree of decentralisation

Answered: 1 week ago

Question

Be familiar with the basic ways to manage capacity.

Answered: 1 week ago