Lets the user enter courses and prints them out correctly at the end Catches there being six courses and asks for one to delete Correctly deletes the chosen course Readable and well-formatted output Good use of functions Split your phases, and your operations within each phase, into functions o Remember that you can pass and return lists just like anything else • Create an empty list of courses. • Prompt the user for a course they wish to enter, or to type "EXIT" if they wish to stop entering courses. • Add the course to the end of the list of courses. o If the list of courses is up to six, print out the list of courses with good formatting (one course per line, along with a list header), and ask them which one they want to drop. • Print a number next to each course, and ask for a number of the course to drop. For example, if the user wants to drop the first course entered, they should enter "1", and if they want to drop the last course entered, they should enter 6. · For both the printout and the user input you will need to convert between Python's zero-based list numbers and the one-based list numbers you present to the user! • Go back and ask for another course. • When the user finally types "EXIT", print out their list of courses with good formatting (as above), and stop. let the user enter a list of courses, but stop them if they enter a sixth and insist that they delete one. The result will be an interactive program - it will keep running until the user commands it to stop.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%
I’m not sure what good use of functions means(highlighted in yellow). Is it def function? Please write the code in python.
Lets the user enter courses and prints them out correctly at the end
Catches there being six courses and asks for one to delete
Correctly deletes the chosen course
Readable and well-formatted output
Good use of functions
o Split your phases, and your operations within each phase, into functions
o Remember that you can pass and return lists just like anything else
• Create an empty list of courses.
• Prompt the user for a course they wish to enter, or to type "EXIT" if they wish to stop entering courses.
• Add the course to the end of the list of courses.
o If the list of courses is up to six, print out the list of courses with good formatting (one course per line, along
with a list header), and ask them which one they want to drop.
• Print a number next to each course, and ask for a number of the course to drop. For example, if the user
wants to drop the first course entered, they should enter "1", and if they want to drop the last course
entered, they should enter 6.
· For both the printout and the user input you will need to convert between Python's zero-based list
numbers and the one-based list numbers you present to the user!
• Go back and ask for another course.
• When the user finally types "EXIT", print out their list of courses with good formatting (as above), and stop.
let the user enter a list of courses, but stop them if they enter a sixth and insist that
they delete one. The result will be an interactive program - it will keep running until the user commands it to stop.
Transcribed Image Text:Lets the user enter courses and prints them out correctly at the end Catches there being six courses and asks for one to delete Correctly deletes the chosen course Readable and well-formatted output Good use of functions o Split your phases, and your operations within each phase, into functions o Remember that you can pass and return lists just like anything else • Create an empty list of courses. • Prompt the user for a course they wish to enter, or to type "EXIT" if they wish to stop entering courses. • Add the course to the end of the list of courses. o If the list of courses is up to six, print out the list of courses with good formatting (one course per line, along with a list header), and ask them which one they want to drop. • Print a number next to each course, and ask for a number of the course to drop. For example, if the user wants to drop the first course entered, they should enter "1", and if they want to drop the last course entered, they should enter 6. · For both the printout and the user input you will need to convert between Python's zero-based list numbers and the one-based list numbers you present to the user! • Go back and ask for another course. • When the user finally types "EXIT", print out their list of courses with good formatting (as above), and stop. let the user enter a list of courses, but stop them if they enter a sixth and insist that they delete one. The result will be an interactive program - it will keep running until the user commands it to stop.
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education