Determining the programming essentials

Assignment Help Basic Computer Science
Reference no: EM131716482

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.

REMEBER, IT HAS TO BE A MODULARIZED PROGRAM

**************************************************************************************************************

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.

REMEBER,  THE CODE HAS TO BE IN OOP STYLE!

*********************************************************************************************

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.

YOU SHOULD ANSWER ME WITH 3 DIFFERENT PYTHON CODES, THANK YOU VERY MUCH TUTOR!!!

Reference no: EM131716482

Questions Cloud

Neurochemicals are physical components are happiness : Neurochemicals are physical components are happiness. Which other brain activity is associated with happiness
Prepare paper on a neural network model : You need to prepare paper on "A Neural Network Model To Predict Ultimate Strength of Rectangular Concrete Filled Steel Tubular Columns"
One of the ways to continuously improve quality : One of the ways to continuously improve quality, as a company, is to reassess projects after they have been completed.
Communism and socialism from an economic perspective : Discuss the differences between communism and socialism from an economic perspective.
Determining the 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.
How much profit that firm make at that price and quantity : Illustrate the firm's profit-maximizing price and quantity on the graph. What is the profit-maximizing price and quantity for the firm
Your task identify which organizational strategy : Organizational Strategies-YOUR TASK Identify which organizational strategy you would use for the messages.
Who is the father of the periodic table : Who is the father of the periodic table? Why does hardly anyone understand his theory? Do not Copy/Paste your work, put your own ideas and research into it.
Develop a basic timeline using a gantt chart : Provide a rationale for your allocation of funds. Develop a basic timeline using a Gantt or PERT Chart.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Investigative and supervisory functions of probation

How do you think the investigative and supervisory functions of probation can be most effectively organized?

  Design and implement an adt that represents the time of day

Design and implement an ADT that represents the time of day.

  How would you price this derivative using bgm

How would you price this derivative using BGM? How many evolution times would be needed? Could you price it without using BGM?

  Evaluation and collection of data for the intersection

Evaluation and collection of data for the intersection at Yorba-Linda Blvd. and Association Rd. Distribution of project activities equally among all the team members

  Determine the limiting velocity of molecules closer wall

Suppose for a particular liquid and a particular pipe that k = 0.65 and R = 0.5.

  Perform set operation: union, intersection, and difference.

You are to write Scheme functions in a pure functional style to perform set operation: union, intersection, and difference.

  Required value for the move command

Shape_index is a required value for the move command. It is the index of the shape in the shape data arrays that you wish to move. It should range between 0 and MAX_SHAPES - 1. Be sure to validate the index.

  Redisplays the menu after the user selected operation

Put the algorithms that you designed for Questions 1 and 2 together inside a loop that redisplays the menu after the user's selected operation is performed, or exits if the user selects item 4 from the menu.

  What disadvantages might a cloud-based environment present

What similarities and differences do you find between the online applications and the installed version? Envision a time when all software is web-based and describe how being totally on the cloud might be an advantage. What disadvantages might a c..

  Generates prime number in c language

Give step-by-step analysis of an algorithm that generates prime number in C language.

  Create a visual studio 2008 asp .net web site with web form

The Web Form consists of two parts. The first part is typical ASP .NET containing a RadioButtonList server control, Label server control and Button server control

  Write a suitable set of opal data definition statements

Design an 00 version of the suppliers-and-parts database.

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