Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can someone please help me fix this code it is due tonight or write a correct code for the problem i am not sure why

image text in transcribed
image text in transcribed
image text in transcribed
can someone please help me fix this code it is due tonight or write a correct code for the problem i am not sure why is it showing so many errors
3 references e public partial class frmScoreCalculator : Form 1 reference public frmScoreCalculator() InitializeComponent(); 1 reference private void btnAdd_Click(object sender, EventArgs e) int intScore = 0; Int32. TryParse(txtScore.Text, out intScore); intScoreTotalsArray (intScoreCount] - intScore; intScoreCount++; txtScore Total.ToString(); txtScoreCount. Text - intScoreCount.ToString(); txtScore.Focus(); txtScore.Select11(); 1 reference private void btnClearScores_Click(object sender, EventArgs e) this.textScore.Clear(); this.textScoreCount.Clear(); this.textAverags.Clear(); this.textScore Total.Clear(); textScore.Focus(); scores.Clear(); average - @; score Total - score - 3 13 0 Solution - 13 Errors Warnings 0 0 of 2 Messages My Build - IntelliSense- Code Description 3 C50103 The name intScore TotalsArray does not exist in the current context > C50103 The name intScoreCount' does not exist in the current contet 3 C50103 The name 'intScoreCount' does not exist in the current content 3 C50103 The name intScoreCount' does not exist in the current context 3 51051 mscoreCalculator does not contain a definition for textScore' and no accessible extension method textScore' accepting a fi directive or an assembly reference?) O Tyne Homework 3, Problem 2 In this exercise, you'll create a form that accepts one or more scores from the user. Each time a score is added, the score total, score count, and average score are calculated and displayed. Score Calculator Add Scors Scoristal 472 Son courts Avenge: 0 Cear Scores 1. Start a new project named ScoreCalculator. 2. Add labels, text boxes, and buttons to the default form and set the properties of the form and its controls so they appear as shown above. When the user presses the Enter key, the Click event of the Add button should fire. When the user presses the Esc key, the Click event of the Ect button should fure 3. Declare two class variables to store the score total and the score count. I 4. Create an event handler for the Click event of the Add button. This event handler should get the score the user enters, calculate and display the score total score count, and average score, and move the focus to the score text box. It should provide for integer entries, but you can assume that the user will enter valid integer values. 5. Create an event handler for the Click event of the Clear Scores button. This event handler should set the two class variables to zero, clear the text boxes on the form, and move the focus to the Score text box 6. Create an event handler for the Click event of the Edit button that closes the form. 7. Test the application to be sure it works correctly. Once you have finished both problems rip the two folders containing the solutions into a single file, and name it LastNamestNamewe . Boone TedHw3.zip. Then be sure to submit this file through Campus by the stated deadline DELL Score Total: Score Court Average Ces Scores . Um Warrings O scription f Messages Build - IntelliSense co m does not in the current contest Co does not exist in the current content does not in the c ent content Count does not exist in the current content o coa denotton and C accele extension method textScore accepting a fist argument of e to search

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

Information Modeling And Relational Databases

Authors: Terry Halpin, Tony Morgan

2nd Edition

0123735688, 978-0123735683

More Books

Students also viewed these Databases questions

Question

Describe the job youd like to be doing five years from now.

Answered: 1 week ago

Question

So what disadvantages have you witnessed? (specific)

Answered: 1 week ago