I am unsure why I keep getting a error code, I was able to get the rest
Fantastic news! We've Found the answer you've been seeking!
Question:
I am unsure why I keep getting a error code, I was able to get the rest of the code working but I need assitance on getting the edit member to work correctly. I have to keep the code somewhat the same because it is based off a code I had to use previously.
my code is the following:
https://dpaste.de/Qfb3
Transcribed Image Text:
34 35 36 37 38 30 40 41 42 43 44 45 47 18 49 30 31 52 53 34 5.5 36 37 58 59 60 61 63 64 65 66 67 60 69 70 71 72 73 roster.py X A B def printMenu() 1 print ( B member Member () while True! D H B Weeklyassignment4 (1).py X selt.members.append (pl D Main Menu print ("1. Display Tuan Roxtur.") print ("2. Add Hember.") print ("3. Remove Member." print (4. Edit Mumbur.") print (9. Exit Program. " A printunu () sal-int(input ("Please Enter your selection: ")) it sel--11 b.display (1) if 12: nane-input("Enter new member's name:") number input ("Enter new member's phone number: " jaray=input("Entar nas mambar' jaraay nunhar: " menber.addMember (name, number, jersey member.display() if 1==3: " nane-input("Enter member name to be removed: ") nenber.zenove (none) manhar.display (1 if sel--4: nane-input ("Enter the name of the meneber you want to edit: ") nana2=input("Enter the new nans of the member: " phone2-input("Enter the new Phone number or confirm current: " jersey2-input ("Enter new or confirm jersey number: ") manbur.adit. (nam, 2) menber.append(phone2) nenber.append(jersey2) manbur.display (1) if sel-9: aye.exit(1 while True if sel=3 Run D ? roster 1. Display Tean Roster. 2. Add Meaber. 3. Rannve Manhar. 4. Edit Mercer. 9. Exit Program. Pla Enter your animation: 2 Enter new member's name: re Enter new member's phone number: 555555 Enter ww nanbar'a jarany number: 665 Mame shay, Phone Number -324324234, Jersey 00 Mamelce, Phone Number -702234234, Jeracy- 79 Nama wars, Phone Number =555555, 065 Main Menu- 1. Display Tean Reater. 2. Add Munke. 3. Remote Member. 4. Edit Member. 9. Exit Program. Please Enter your selection: 3 Enter member name to be removed: ara Bu hay, Phone Number 324324234, Jury 00 Nameles, Phone Number =702234234, Jersey= 79 Kain Menu---‒‒‒‒‒‒ 1. Display Tuan Ruuter 2. Add Member. 3. Remove Member. 1. Edit Muuber. 9. Fxit Pengran. Please Enter your selection: 4 Enter the name of the member you want to edit: Ice Enter the new name of the nambar: axlay Enter the new Phone number or confirm current: 7654515026 Enter now or confian jersey number: 095 Traceback (next cant call lat): File "C:/Users/hunny has a fat head/AppData/Local/Temp/Rar-DRa5596.40511/roster.py", line 67, in nodules member.edit(name, name21 TypeError: adit() mixxing 4 required positional argumenta: 'phone', 'phone2', 'jarany', and 'jarany2" Process finished with exit code 1 1 34 35 36 37 38 30 40 41 42 43 44 45 47 18 49 30 31 52 53 34 5.5 36 37 58 59 60 61 63 64 65 66 67 60 69 70 71 72 73 roster.py X A B def printMenu() 1 print ( B member Member () while True! D H B Weeklyassignment4 (1).py X selt.members.append (pl D Main Menu print ("1. Display Tuan Roxtur.") print ("2. Add Hember.") print ("3. Remove Member." print (4. Edit Mumbur.") print (9. Exit Program. " A printunu () sal-int(input ("Please Enter your selection: ")) it sel--11 b.display (1) if 12: nane-input("Enter new member's name:") number input ("Enter new member's phone number: " jaray=input("Entar nas mambar' jaraay nunhar: " menber.addMember (name, number, jersey member.display() if 1==3: " nane-input("Enter member name to be removed: ") nenber.zenove (none) manhar.display (1 if sel--4: nane-input ("Enter the name of the meneber you want to edit: ") nana2=input("Enter the new nans of the member: " phone2-input("Enter the new Phone number or confirm current: " jersey2-input ("Enter new or confirm jersey number: ") manbur.adit. (nam, 2) menber.append(phone2) nenber.append(jersey2) manbur.display (1) if sel-9: aye.exit(1 while True if sel=3 Run D ? roster 1. Display Tean Roster. 2. Add Meaber. 3. Rannve Manhar. 4. Edit Mercer. 9. Exit Program. Pla Enter your animation: 2 Enter new member's name: re Enter new member's phone number: 555555 Enter ww nanbar'a jarany number: 665 Mame shay, Phone Number -324324234, Jersey 00 Mamelce, Phone Number -702234234, Jeracy- 79 Nama wars, Phone Number =555555, 065 Main Menu- 1. Display Tean Reater. 2. Add Munke. 3. Remote Member. 4. Edit Member. 9. Exit Program. Please Enter your selection: 3 Enter member name to be removed: ara Bu hay, Phone Number 324324234, Jury 00 Nameles, Phone Number =702234234, Jersey= 79 Kain Menu---‒‒‒‒‒‒ 1. Display Tuan Ruuter 2. Add Member. 3. Remove Member. 1. Edit Muuber. 9. Fxit Pengran. Please Enter your selection: 4 Enter the name of the member you want to edit: Ice Enter the new name of the nambar: axlay Enter the new Phone number or confirm current: 7654515026 Enter now or confian jersey number: 095 Traceback (next cant call lat): File "C:/Users/hunny has a fat head/AppData/Local/Temp/Rar-DRa5596.40511/roster.py", line 67, in nodules member.edit(name, name21 TypeError: adit() mixxing 4 required positional argumenta: 'phone', 'phone2', 'jarany', and 'jarany2" Process finished with exit code 1 1
Expert Answer:
Answer rating: 100% (QA)
this code is not working because here in edit function def editselfnamename2phonephone2jerseyjersey2 you have total 6 arguments and at the bottom you have only mentioned 2 arguments membereditnamename... View the full answer
Related Book For
Principles of Auditing and Other Assurance Services
ISBN: 978-0078025617
19th edition
Authors: Ray Whittington, Kurt Pany
Posted Date:
Students also viewed these programming questions
-
I am currently starting a business and developing my business plan. I'm in need of some advice on how to start forming my business. I am not sure exactly how it will be financed and whether or not I...
-
I am a marketing agency. My newly employee is working for me on a project. What are the Journal entries required for record revenue, incentive payment, and payroll for the following: Property 1: -...
-
I dont need to know accounting principles because my business is a sole proprietorship. Comment on this statement.
-
Explain factors governing recruitment?
-
In each of the following transactions (a) through (c) for Romneys Marketing Company, use the three-step process illustrated in the chapter to record the adjusting entry at year-end December 31, 2015....
-
From the following T accounts, record the following: (a) The July 3 payment for FICA (OASDI and Medicare) and federal income taxes, (b) The July 30 payment of SUTA tax, (c) The July 30 deposit of any...
-
In 1988, the Upper Deck Company was a company with an idea for a better baseball card: one that had a hologram on it. By the 1990s, the firm was a major corporation worth at least a quarter of a...
-
Linda Stanley is the Vice President for Computing and Information Services at State University (SU), a large, urban university that has experienced a 3% growth in enrollments every year for more than...
-
II. The Table below gives an individual's MUx and MUy schedule. Suppose X and Y are the only two commodities available and Px = P2 while Py = P1. The individual's income is P12 and is all spent. Q...
-
Consider the state diagrams of Figure 12.28. a. Describe the behavior of each. b. Compare these with the branch prediction state diagram in Section 12.4. Discuss the relative merits of each of the...
-
A heat exchanger is to be designed to condense an organic vapour at a rate of 500 kg / min which is available at its saturation temperature of 355 K. Cooling water at 286 K is available at a flowrate...
-
This involves implementing a simple university personnel management program. The program contains at least three classes: Staff, Student and Faculty. Your program stores relevant information such as...
-
Which strategy tool technique offers the least benefit to the success of the overall implementation phase when implementing a new health IT technology? Explain with examples.
-
A ray of light, emitted beneath the surface of an unknown liquid with air above it, undergoes total internal reflection as shown in the figure below. (Assume d 21.0 cm and h = 22.7 cm.) m n d What is...
-
(1 point) Reduce the matrix to reduced row-echelon form. 1 3 -8 A = 4 -3 13 -2 -4 10 830 1 3 -8 0 -1 3 0 TO -3
-
Flint Corp. uses a perpetual inventory system. The company had the following inventory transactions in April. Apr. 3 (a) Purchased merchandise from Flounder Ltd. for $27,810, terms 2/10, n/30, FOB...
-
A company had $1 million in sales last year, $1.5 million in sales this year, and projected net income of $250,000. Last year, it had $5 million of its assets tied to sales, $3 million in...
-
What types of questions can be answered by analyzing financial statements?
-
Charles Halstead, CPA, has a number of clients who desire audits at the end of the calendar year. In an effort to spread his workload more uniformly throughout the year, he is preparing a list of...
-
Loman, CPA, who has audited the financial statements of the Broadwall Corporation, a publicly held company, for the year ended December 31, 20X6, was asked to perform a review of the financial...
-
What are the major purposes of obtaining representation letters from audit clients?
-
Two spaceships are approaching one another. According to observers in our frame, (a) the left-hand ship moves to the right at \((4 / 5) c\) and the right-hand ship moves to the left at \((3 / 5) c\)....
-
Astronaut A boards a spaceship leaving earth for the star Alpha Centauri, 4 light-years from earth, while her friend B stays at home. The ship travels at speed \(4 / 5 c\), and upon arrival...
-
Al and Bert are identical twins. When Bert is 24 years old he travels to a distant planet at speed 12/13 \(c\), turns around and heads back at the same speed, arriving home at age 44. Al stays at...
Study smarter with the SolutionInn App