For this practice you will build an application that allows the user to input te
ID: 3675628 • Letter: F
Question
For this practice you will build an application that allows the user to input test scores in a textbox, adding each one to a list box. Once all the scores are entered, clicking on a “Calculate” button will trigger methods to calculate the average, maximum and minimum scores. (In application form on C#.)
Pic is example (addButton,clearButton, calculateButton, exitButton)(averageLabel,maximumLabel, minimumLabel)(scoreTextBox)(scoreStatsListBox)
Scores Stats Enter a score Average: Madimum Minimum: Add Calculate Clear EdtExplanation / Answer
public Form1() { InitializeComponent(); } private void btnIzracunaj_Click(object sender, EventArgs e) { if (rndPlus.Checked) { lblRezultat.Text = (txtSt1.Text + txtSt2.Text).ToString(); } else if (rndMinus.Checked) { lblRezultat.Text = (Convert.ToDecimal(txtSt1.Text) - Convert.ToDecimal(txtSt2.Text)).ToString(); } } }
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.