Create a GUI application that allows the user to enter
an hourly pay rate in a TextBox. When the user clicks a
button and the value in the TextBox is less than $7.50 or
greater than $49.99, display an error message; otherwise,
display a message indicating that the rate is okay.
I need it by tomorrow, kindly please answer. thanks
Loading
Manoj BhoirPosted Apr 16, 2015, 12:31 PM
I don't think there is any difficulty in your question. It's very simple. Also it's your task so you have to work on that instead of expecting it from someone else. Please see below code you will get idea
private void button1_Click(object sender, EventArgs e)
{
double rate = Convert.ToDouble( this.txtRate.Text);
if (rate >= 7.50 && rate <= 49.99)
MessageBox.Show("Correct Rate.");
else
MessageBox.Show("Invalid Rate.");
}
But, once again I will suggest you first try it yourself.
Afzaal Ahmad ZeeshanPosted Apr 16, 2015, 12:15 PM
If you want to hire someone to do your work. Please go to some freelancing website and post this job there.