It looks like you're new here. If you want to get involved, click one of these buttons!
Write a program for an Internet provider that displays a MessageBox asking users whether they want Internet access. If they do not, their total price is $0. If they do, display a second MessageBox asking whether they want limited access (at $10.95 per month) or unlimited access (at $19.95 per month). Display the total price in a third MessageBox. Title the program InternetAccess.
Here is my code so far:
public partial class Form1 : Form
private void button1_Click(object sender, EventArgs e)
DialogResult choice = MessageBox.Show("Internet Services are available as limited access at $10.95 per month \n and unlimited access at $19.95 per month.\n Do you want internet connection?",
"Internet Service", MessageBoxButtons.YesNo);
if (choice == DialogResult.Yes)
unlimited = MessageBox.Show("Do you want unlimited package?", "Package", MessageBoxButtons.YesNo);
if (unlimited == DialogResult.Yes);
MessageBox.Show("Your price is $19.95 per month");
MessageBox.Show("Your price is $10.95 per month");
MessageBox.Show("display a total price of $0");
I'm not at all sure where I am going wrong!