COMPUTER SCIENCE project !15.1 SS 22 - Project 1: Football team new player press announcement " Students: This content is controlled by your instructor, and is not zyBooks content. Direct questions or...

1 answer below »
Attached the rubric belowmake sure it is basic coding because this is a beginner coding class don't want it to be too advanced


COMPUTER SCIENCE project !15.1 SS 22 - Project 1: Football team new player press announcement " Students: This content is controlled by your instructor, and is not zyBooks content. Direct questions or concerns about this content to your instructor. If you have any technical issues with the zyLab submission system, use the Trouble with lab button at the bottom of the lab. # Students: Section 15.2 is a part of 1 assignment: Project 2 Requirements: zyLab Activity summary for assignment: Project 2 0 / 100 pts $16.1 Basic debugging You have unveri?ed email(s). Please click on your name in the top right corner and browse to your pro?le to send another veri?cation email. Due: 04/01/2022, 9:00 PM EDT 15.2 SS 22 Project 2: Pet Daycare IMPORTANT NOTE! This problem description is leeennngggttthhhy. However, the length of this document is not the same as complexity of the problem you are being asked to solve. Therefore, do not immediately assume by the length of project description that "you'll never solve it." Additionally, if your approach to solving the course problems is to immediately jump in and start coding, please be advised that you will more than likely spend a lot more time working on the project that way than if you had invested more time up front reading and understanding the requirements, mapping out your solution (pseudocode), and THEN moving into implementing the Python code. Additionally, this is an excellent example of a program that can be developed in phases -- you can get different pieces of the program working one at a time before moving on to the next phase. Overview In this project you will create a program to simulate the job of a receptionist at a pet daycare and boarding facility. There will be several options to choose from, and different outputs depending on the selected option. Objectives The objective of this project is to create a solution combining multiple concepts that have been presented in class, building off of the concepts demonstrated in Project 1 with the addition of: string manipulation string formatting (f-string) list structure and methods list manipulation looping Note that you should only use techniques we have covered in class. Using more advanced concepts does not help your understanding of the basics, and is a red Uag that the code may not be your own work. In particular, you may NOT use the Python break, quit, exit or any other programming convention to prematurely exit out of a loop or your program. A thorough understanding of loops requires that you are able to structure the loop control correctly without using break or other forced exit. Even though you may pass the test cases, use of any of these instructions will result in a 20% reduction in your your overall score. If you have questions about this as you work on your program, discuss it with your class assistants or with the course instructors. Problem Description This program is used to simulate the job of a receptionist at a pet daycare and boarding facility. The ?rst task is to print a menu, displaying several possible actions. Each action is associated with a number, which is how the user will indicate their selection from the menu. There will be ?ve different actions, each representing a task the receptionist can perform. These actions include: registering a new customer, checking in a pet, checking out a pet, displaying all of the registered customers, and logging out. The user should be able to select multiple actions within the same session until they choose to logout. Details are given below. Printing the Menu Before the selection of an action, the program must print out the menu. Welcome to the best pet daycare ever! Please select one of the following choices. 1. Register a new customer. 2. Check in a pet. 3. Check out a pet. 4. Display customers. 5. Logout. If the selected option is not 1-5, the following error message must be displayed. Invalid choice. Try again. The user should be prompted with the menu again afterwards. In other words, you should print the "Please select one of the following choices" and the menu, but not the "Welcome" message again. NOTE: Keep in mind that the menu will have to be printed out repeatedly after each action is completed until the user chooses the option to logout. Also note that you need to think about what is printed vs what is a prompt for input (there are multiple solutions for how to do this, just make sure you have it straight in your own mind what you are doing when). INCREMENTAL DEVELOPMENT STEP When you start working on your program, start with printing out the menu and test it by giving an invalid choice and the logout choice. Don't work on any of the other options until this is working. You can put comments and print out a message for each choice, similar to print("work on choice 1 here"), print("work on choice 2 here"), or print("FIXME: Choice 1 here"), etc within the code where you would work on those things. If you get to the point where you are printing the menu and handling choice 5 and an invalid choice correctly, you should be able to pass the ?rst three test cases. Registering a Customer Choice 1 is registering a new customer. If this option is selected from the menu, then the program should prompt the user for a new customer name. If the customer is already in the system, print out an error message and the program should display the menu again and prompt the user for another choice. If the customer is not already in the system, the program should add the new customer, and prompt for the pet's name.The error message in case of an already existing customer should be: Error. Customer is already registered. The program will look up the customer name in a list called CustomerNames that is already stored as part of the program. All of the data for a given customer is stored in parallel lists which are given in the starting code. This means that all of the information in each list is in the same order by customer. In other words, if customer "Charlie Brown" is fourth in the list of CustomerNames, their ID will be fourth in the list of CustomerNumbers, their pet's name will be fourth in the list of PetNames, etc. We are making the simplifying assumption that every pet owner has only one pet. Once a valid customer name and pet name are entered, the program should add data at the end of each list in the system. The default value for a newly registered customer for the CheckInTime list is a string type "MM/DD/YYYY", while the default value for the Duration list is an integer type 0. There is a formula when creating new customer ID's. The ID numbers begin at 1. Every ID number that is created after the number 1 is equal to the length of the current CustomerNumbers list plus the value of the last element in the current CustomerNumbers list. For example, with a CustomerNumbers list of [1, 2, 4, 7, 11], the next ID generated will be 16, since there are 5 customers currently in the list and the last customer number is 11. Once the data has been added to each list, the program should print out a message displaying the successful data entry that includes the customer name and ID. See below for an example of the expected output. The name is left aligned with 24 characters, and the ID is right aligned with 6 characters. There is a row of 30 dashes between the headings and the data. If the customer name entered is Jackson Meyers, and the pet's name is Tiger, the following output would be produced: Enter the customer name: Enter the pet's name: New customer successfully registered! Customer Name ID ------------------------------ Jackson Meyers 466 INCREMENTAL DEVELOPMENT STEP Once you have completed the menu and logout, work on implementing choice 1. When you have completed everything you need to do for choice 1, you should be able to pass the ?rst 7 test cases (which includes the ?rst 3 you passed with the menu). Don't start writing more code until you have passed all of test cases 1 through 7. This will save you aggravation later. If you have completed these steps and passed test cases 1 through 7, congratulations! You have passed the ?rst checkpoint. The steps do get progressively more dihcult, so if you ?nish this quickly, go ahead and start working on choice 2 and 4 for the second checkpoint. New Check in for a Pet The second option is checking in a pet. The user is asked to enter the customer's ID with the prompt Enter the customer's ID: followed by a new line. If this ID is invalid (that is, it does not occur in the customer ID list), print an error message. The program should display the menu again and prompt the user for another choice. The error message is: Invalid customer ID! If the customer ID is valid (that is, already in the system), the program should check to see if there is already a check-in time associated with that customer that is not the default value. If there is already a check in time, display an error message and go back to the menu. This error message is: Meredith is already checked in! where Meredith is the name of the pet for that customer. If the pet is not checked in yet, prompt for the current date and the duration of the pet's stay. Then print out a message notifying the user of a successful check in. Example output: Enter the current date (MM/DD/YYYY): Enter the duration your pet will stay (in number of days): Gumball Watterson's pet Darwin was successfully checked in. INCREMENTAL DEVELOPMENT STEP Once you have successfully coded and tested option 2, you should be able to pass the ?rst 15 test cases. Then start working on option 4, which is to print out all of the customers. If you do this successfully, you will have passed test case 16 through 18 and completed checkpoint 2. Bonus: Since you have already worked out the spacing issues in the menu and a few actions, you won't have to worry about that again and can focus on the additional functionality. Don't move on until you have passed all 18 test cases. Note that it is possible to pass all 18 test cases without completing everything necessary in options 1 and 2; beware that you may need to revisit this code if there is something wrong further down the line (such as you did not update the lists correctly). Check
Answered Same DayMar 30, 2022

Answer To: COMPUTER SCIENCE project !15.1 SS 22 - Project 1: Football team new player press announcement "...

Anandkumar answered on Mar 31 2022
105 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here