Menu

(Solved) : Part 1 Https Wwwcheggcom Homework Help Questions Answers C Creating Application Going Trac Q29854983 . . .

Part 1:https://www.chegg.com/homework-help/questions-and-answers/c-creating-application-going-track-swim-clubs-swimmers-swim-meets-results-part-1-create-fo-q2953765

Part2: only c#
Modify Assignment 1 to satisfy the following. 1. Add a methodAddSwimmer to Club class so a registrant can be added to the clubmembers. If the registrant is already assigned to a different club,this method should throw an exception with a massage: “Swimmeralready assigned to {club name} club”. Also, make sure thatregistrant’s club information is correct. Assume that it will be nomore than 20 club members in any club. 2. Add Club property to theRegistrants class to represent a registrant’s club affiliation.User of this class can add club affiliation to a registrant byassigning the reference of a Club object to this property. Makesure that a registrant is also added to the club member list. 3.Add new field, noOfLanes, and corresponding property to a SwimMeetclass to keep the information about number of lanes in the pool.Change your constructors as required. 4. Make necessary changes toSwimMeet class to ensure that pool size cannot be changed after itis initialized. 5. Add a method AddEvent to SwimMeet class thatwill add an event to the swim meet. Assume that there will be nomore than 50 events at a meet. 6. Prior to the beginning of theswim event swimmers will enter the event. Each event consists of anumber of heats. Each heat represents a number of swimmers racingat the same time. The process of assigning swimmers to heats andlanes where they are going to race is known as seeding. At the endof each heat each swimmer gets the time that they swam the race.You need to modify you Event class to keep information about theregistrants that swim that event. There will be no more than 100swimmers per any event. COMP123-
COMP123-Programming II 6/2/2018Assignment 2A Page 2 of 2Create a method AddSwimer that will add a registrant(swimmer)to the event. If swimmer is added twice to the same event throw anException with message “Swimmer {name of the swimmer, reg number}is already entered”Each swimmer that is added to an event will have acorresponding swim. (Hint: You can use parallel arrays toaccomplish this.)7. When a meet is created and all the swimmers are registeredfor the events, the swim meet is seeded. Seeding a swim meet meansseeding each event. The way the real meets are seeded is rathercomplicated to implement in this assignment, so we will assignheats and lanes in order. For example, in a pool with 8 lanes thefirst 8 swimmers are assigned lanes 1 to 8 in heat 1, the next 8swimmers are assigned lanes 1-8 in heat 2, and so on. Please notethat not all swim meets are held in a pool with 8 lanes.Add method Seed to SwimMeet class that will call the Seedmethod of each event. Seed method in Event class will assign heatsand lanes in corresponding Swim object for a swimmer.8. Add EnterSwimmerTime method to the Event class. This methodwill accept two parameters: a swimmer and the time that the swimmerswam. The method will update appropriate information in the Swimobject.Additional requirements:1. The test harness is provided in attached program.txt file.You must not modify the content of the class. You can changenamespace names only.2. Modify your code from assignment 1 to provide the similaroutput as in the text file output.rtf3. You can add any additional methods that may beneeded.

Expert Answer


Answer to Part 1 Https Wwwcheggcom Homework Help Questions Answers C Creating Application Going Trac Q29854983 . . .

OR