Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I had someone answer this but the code did not work for me. I am using Microsoft Visual studio 2015 I did provide the code

I had someone answer this but the code did not work for me. I am using Microsoft Visual studio 2015 I did provide the code they sent me so that I wont get it again.

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

e l'in using Microsoft Visual Edito/X + https://www che g com homework help questions and answers m using microsoft visual editor know create orm need help 3 pretty much screen shot would q345181 28 Chegg. Study TEXTBOOK SOLUTIONS EXPERT Q&A Search Public Class Formi local variable declare Dirr Sore As Inleger0 Dim ScoreTotal As Integer = 0 Dim ScoreCount As Integer - o Dim Average As Integer 0 Privale Sub Forrr KayDow(ByVder As Objecl, ByVale As Syslidows.Forrns KayvArgs) Handles MyBase.KeyDown f e.KeyCode Keys.Escape Then BtnEitClick sender, e) "When user press Escap key Exit Button fire End Sub Private Sub BtnCxit-Clicklsender As Object, e As [veArgs) I landles BtnCxit.Click when user click on Fxit button below function call and exit to the windo Me.Close) Fnd Sub Private Sub BtnClearScore_Click sender As Object, e As EventArgs) Handles BtnClearScore Click when user click Clear Score button below operation call and all texboxs value are clear IxtAverage.lext-" ScorcTotal = 0 Average 0 IxtScore Select) 'when user click on clear score button clear all value and tocus on score textbox End Sub Private Sub Forml_Loadisender As Object, e As EventArqs) Handles MyBase.Load TxtScore.Select) 'when form is load focas on score textbox End Sutb Private Sub BtnAdd_Clickfsender As Object, e As EventArgs) Handles BtnAdd.Click Score = Convert. IoInt32( lxtScore. lext value converet in integer and store in score variable f Score O)Thon 'if score value more than zero calculation below ScoreTotal-= Score , score store in scoretatal Score ount1 'scorecount increment 1 and stor in scorecount value Average = Sorel otal / ScoreCount 'average calculation TxtScoreTotalText = ScoreTotalToString0 store value in textbox TxtScoreCount.Text ScoreCount.ToStringo 'store value in textocx TxtAverage.Text Average.ToString'store value in textbox TUTORS CHAT tph ScorcCaloulator Micosoft visual Studic Y4Quick Launch (Ctn-o File Edit Viw Projcct Dobug Toam Tools Test R Tools Analyzo Window Hclp Kevin Barron FrmScoreCalculatorcs lDesiqnl Seolution Explorer e,integer , Eusing Systen; Searrh Salutian Fxplcrer (Ctrlt;) usinig System.Collections. Gerieri; using System.ComponentModel Selutian SonraCalculator' (1 project p Properties using System.Drawing using Systom.Ling; using System.Text; using System. Threading.Tasks; using Systam.Windous. Forns App.canfig p C Programes 11 namespace ScoreCalculator puhlic partial class FrnScorecalculator For 14 n score s Tnteger- inl ScureTul 1-0; nt ScoreCount- int Averagc9; public FrmScoreCalculator) 16 17 19 Scolution Explore leam Explorer 21 InitializaConpanent) private vaid rnscarotalculatan_KayDown (Byval sendor As objoct, Hyval As Syston.windous.Forms.KpytventArgs) 28 Handles yBe KerDour If e.Keytode - Keys.Fscae Then Htnfxit clirk(sender, el 28 29 3e 31 32 private void FrnScoreCalculator Load(object sender, EventArgs e) 3A private vaid htnadd_Click(objact sonder, FventArgs P) . 38 private vni d htnFXt_click(ohject ender, FuentAres e) 1e O Type here to search 11:37 PMEE 2/3/2019 viruses Unless you need to edit, it's safer to stay in Protected View.Enable Editing In this lab assignment,you'll create a ScoreCalculator windows form application that accepts one or more scores from the user. Each time a score is entered, the score total, score count, and average score are calculated and displayed. Score CalaulatorX Score Score total: Score count: Average Clear Scores Exit l. Create a new windows form project named ScoreCalculator and save it in your computer. 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 Exit button should fire. 3. Declare two class-level variables to store the score total and the score count 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. The code that calculates the average should always round numbers that end in 5 up to the nearest whole number. Create an event handler for the Click event of the Clear Scores button. This event handler should set the two class-level variables to zero, clear the text boxes on the form, and move the focus to the Score text box Create an event handler for the Click event of the Exit button that closes the form. 4. 5. 6. 7. Test the application to be sure it works correctly. Score Calculator Score: 80 Add Score total: 170 Score count: 2 Average: 85 Clear Scores 8. Compress the whole project folder into a zip file (right-click the folder -> Send to> Compressed (zipped) folder) and submit the zip file to Black Board for credits

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

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

find all matrices A (a) A = 13 (b) A + A = 213

Answered: 1 week ago

Question

Approaches to Managing Organizations

Answered: 1 week ago

Question

Communicating Organizational Culture

Answered: 1 week ago