Write a modularized program that will utilize a main menu

Assignment Help Python Programming
Reference no: EM132356880

Question : 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:

include a Save option in the main menu which will prompt the program to write the player's data to a text file.
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: EM132356880

Questions Cloud

Business innovators include internal locus of control : Some of the characteristics attributed to business innovators include internal locus of control
Effective for radical innovation : What types of teams would be effective for radical innovation? Provide APA reference.
Implementation of corporate entrepreneurship : Why is top management support so important to the implementation of corporate entrepreneurship? Provide APA reference.
Describe the view and provide your own critique : Select one of the views of intelligence from Chapter 10.3. Briefly describe the view and provide your own critique. Do you agree or not agree? Why?
Write a modularized program that will utilize a main menu : 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.
What is the difference between an adaptor and an innovator : What is the difference between an adaptor and an innovator in a business environment? Provide APA reference.
What are divergent thinking and convergent thinking : What are divergent thinking and convergent thinking? What is the difference between them? Provide APA reference.
Develop a corporate innovation strategy : Identify and describe three key elements on which managers should concentrate to develop a corporate innovation strategy.
Difference between closed innovation and open innovation : What is the difference between closed innovation and open innovation? Provide APA reference.

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

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