Modify the startup code so that the program calls a function

Assignment Help Programming Languages
Reference no: EM131619082

Assignment: Programming Essentials

You are in charge of managing a local softball team, one in which there is a lot of turnover. While you have a couple of regulars, much of the team members come and go frequently. When it comes to organizing games, it is becoming more and more difficult to keep track of the current members, so you decide to write a small program to help you track the current players.

Write a modularized program that will utilize a main menu to control the program's functions and a list to store the members of your team. The following functions that your program needs to include:

• Print the current member list.
• Add a new member.
• Remove a member.
• Modify an existing member.
• Exit the program

Remeber that you can create a function using 'def.' In other words, for adding a new member, you will need a function similar to: def aaddmember.

Note: Since we have not covered File Access, do not worry about long term storage for your list. Each time you run the program, you will have to create a new list. You are welcome to skip ahead to the File I/O if you would like to tackle this additional functionality, but file access is NOT required for this assignment.

THEN WITH THAT CODE, UPGRADE IT TO THIS:

Your program for keeping track of team members is coming along, but now you want to be able to include phone numbers and jersey numbers along with your team member's name. Modify your program so that the program utilizes object-oriented programming to create a member object which can accept the player's name, phone number, and jersey number. You will need to replace the list with a dictionary to help in locating objects for removal and editing. Again, File Access for long-term storage is not required for this assignment.

Tips: While dictionaries resemble lists, remember that they are not the same! It is better to use FOR loops, not WHILE loops with index values.

THEN WITH THAT NEW CODE:

Until now, you have had to leave your team management program running on your computer indefinitely since you did not want to lose the list of players. Finally, you are ready to add the components to your team management program that will allow you to store the player's information on your computer's hard drive, thus, allow you to shut down your program without losing your data.

You will need to modify your program to:

1. include a Save option in the main menu which will prompt the program to write the player's data to a text file.

2. modify the startup code so that the program calls a function that reads the player's data from the text file into the list of member objects.

Tips: Think about how you are going to write the data to the text file when you create the load function. Your write function needs to read in the data in the same pattern as the load function, otherwise the data will get jumbled.

Sample output:

C:>python week6.py
Welcome to the Team Manager
===========Main Menu===========
1. Display Team Roster.
2. Add Member.
3. Remove Member.
4. Edit Member.
5. Save Data.
6. Load Data.
9. Exit Program.

Reference no: EM131619082

Questions Cloud

Describe risks of implementation of the given service : Assignment: Administering Active Directory Rights Management Services. Describe the risks as well as the advantages of implementation of this service.
What is required rate of return-constant growth valuation : What stock price is expected 1 year from now? What is the required rate of return? Holtzman Clothiers' stock currently sells for $23 a share.
Comparing motivational concepts and their application : Critically evaluate use of key motivational theories in increasing employee engagement. Comparing and contrasting motivational concepts and their application
Expected electric pressure difference across one bulb : An ammeter connected to the main wire measures 0.87 A. What is the expected electric pressure difference across one bulb?
Modify the startup code so that the program calls a function : Modify the startup code so that the program calls a function that reads the player's data from the text file into the list of member objects.
Initial velocity of the less massive ball : Assume the less massive ball bounces off the more massive ball and moves in the negative direction.
Show your improved written communication skills : Examine the manner in which you share information, use information and store information online.Show your improved written communication skills.
Determine the evaluation methods for those control items : Determine the evaluation methods for those control items. Finally, discuss the importance of the control methods and the responsibility of the project manager
Explain the primary role that the human element could play : Write a paper with no less than four page in which you: Explain primary role that the human element could play in adding to the attack scenario, if appropriate.

Reviews

Write a Review

Programming Languages Questions & Answers

  The internet is based on html

We hear that the internet is based on HTML. What is HTML exactly? o HTML is a protocol that is used to route data across the internet, via TCP/IP.

  Convert a singly-linked lists to a doubly-linked lists

Converting an implementation of singly-linked lists to an implementation of doubly-linked lists. Strengthen the students understanding of the implementation and use of linked lists.

  Create an order confirmation/shipping web page in perl

Create an order confirmation/shipping web page in Perl that displays the items that the customer ordered the quantities, the price of the item, and the extended price. Show the customer's name and require that the user enter an address and a tele..

  Write a progra whether a number is prime

Write a progra whether a number isPrime(int number) method for testing whether a number is prime. Use this method to find the number of prime numbers less than 10000.

  Develop a calendar and scheduling system

Develop a calendar and scheduling system, This assignment will contain two (2) Parts: Written Paper and Visual Basic Prototype. The Visual Basic Prototype is not included in the total page count but is included in the evaluation of your assignment...

  Design a gui program to find weighted average of four test

Design a GUI program to find the weighted average of four test scores. The four test scores and their respective weights are given in the following format.

  1 the key metrics that best indicate the overall

1. the key metrics that best indicate the overall effectiveness of a companys supply chain area. three years return on

  Create a simple command line program

Create a simple command line program that simulates the rolling of a pair of six sided dice a user given number of times. The number of times to roll the pair of dice should be read as input from the argv array on the command line.

  Find a way to have only a few fibonacci numbers in memory

Implement an iterative solution that runs in O(n) time and returns a pointer to a HugeInteger struct that contains F(n). Be sure to prevent memory leaks before returning from this function.

  Write iterative program which finds largest number

Write the iterative program which finds largest number of McNuggets which cannot be bought in exact quantity. Your program must print the answer in the following format.

  Determine the conditions in which datagrams are dropped

Use the attached client and server programs to make a test kit to determine the conditions in which datagrams are sometimes dropped.

  Design program to list total points scored for classroom

Student ID, classroom number, and score on the achievement test. Design a program that lists the total points scored for each of the 30 classrooms.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd