Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

VISUAL STUDIO C# 1. Correct all syntax errors within the given program. 2. Corre

ID: 3695691 • Letter: V

Question

VISUAL STUDIO C#

1. Correct all syntax errors within the given program.

2. Correct all logic errors within the given program – there should be 4 events. Check the working application for validation.

3. In Form1.cs, there is a foreach loop that is repeated. Create a method for this loop so that the foreach loop is only written once, and there are two calls to your new method.

4. Add a new type of event (such as a play or a festival – requires the creation of a new subclass of Ticket). Add this event to the form including a picture of the event.

Resources files are attached in following links: ( Copy and Paste link to be directed to download ZIP PROGRAM AND APPLICATION)

http://www.filedropper.com/ticketpurchasingapplication

http://www.filedropper.com/ticketpurchasing

PLEASE PASTE ANSWER UPLOAD LINKS USING SAME FILEDROPPER SERVICE OR ANY OTHER FOR THE CORRECTED PROGRAM AFTER APPLYING THE TASKS ABOVE.

Explanation / Answer

PublicNotInheritableClassCHourlyWorker

InheritsCEmployee

PrivatemWageAsDecimal' wage per hour

PrivatemHoursWorkedAsDouble' hours worked for week

' constructor for class CHourlyWorker

PublicSubNew (ByValfirstNameValueAsString, _

ByVallastNameValueAsString, _

ByValwageValueAsDecimal,ByValhourValueAsDouble)

MyBase.New(firstNameValue, lastNameValue)

HourlyWage = wageValue

Hours = hourValue

EndSub' New

' property HourlyWage

PublicPropertyHourlyWage()AsDecimal

Get

ReturnmWage

EndGet

Set(ByValhourlyWageValueAsDecimal)

' validate mWage

IfhourlyWageValue >0Then

mWage = hourlyWageValue

End If

End Set

End Property' HourlyWage

' property Hours

PublicPropertyHours()AsDouble

Get

ReturnmHoursWorked

EndGet

Set(ByValhourValueAsDouble)

' validate mHoursWorked

IfhourValue >0Then

mHoursWorked = hourValue

EndIf

End Set