Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help with the code, please. Problem Duration: Big Note: The starting point for Part 2 is the files you submitted for Part 1. That

Need help with the code, please.
image text in transcribed
image text in transcribed
image text in transcribed
Problem Duration: Big Note: The starting point for Part 2 is the files you submitted for Part 1. That means download the files and that you completed in Part 1 and upload both files to your Codio workspace here for Part 2. In this part of the project, add the ability to create an order consisting of items available at the Dessert Shop to what you already did in Part 1. These items include Candy, Cookies, Ice Cream and Sundaes. You will also add a main function to the application that adds the beginnings of a console user interface to test the order entry system. To do this, you will add one new class and a main function for your Dessert Shop application. Features are described below. The Order class has the following attribute and methods: - order is a list of Dessertitem - A default constructor that takes no arguments and instantiates the order instance variable to a new list of Dessertitem - add() method that takes a single Dessertitem argument and adds it to the order list magic method that returns the number of items in the order. file contains main and imports any other files needed to run the application. should do the following: - Create a new instance of the order class - Add the following items to the order: 1. Dessert Shop Part 2 should do the following: - Create a new instance of the order class - Add the following items to the order: - Candy("Candy Corn", 1.5, 25) - Candy ""Gummy Bears". .25, .35) o' Cookie("Chocolate Chip", 6, 3.99) - IceCream("Pistachio", 2, 79) Sundae("Vanilla", 3, .69, "Hot Fudge", 1.29) - Cookie("Oatmeal Raisin", 2, 3.45) - Print out just the name of each Dessertitem in the order - Print out the total number of items in the order UML Diagram The class diagram above gives a design for orders in the system. The dasses show attributes with associated data types. Some of the classes show a placeholder for Accessors and mutators collectively-"Getters()" and "Setters()". As you know, Pythonistas prefer to access attributes of a class directly, and only wrap that in a method if extra processing needs to be done. We're showing you what a typical UML diagram would look like. UML (Unified Modeling Language) is the defacto industry standard modeling tool for object-oriented programming worldwide. Example Order Output Candy Corn Gummy Bears Chocolate Chip Pistachio Vani1la Oatmeal Raisin Total number of items in order: 6 Grading This part of the project is manually graded. There are no new automated test cases to implement here. The most you can earn is 50% if all items are not complete and correct

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Hands On Database

Authors: Steve Conger

1st Edition

013610827X, 978-0136108276

More Books

Students also viewed these Databases questions

Question

=+5 Evaluate whether the CCT program was effective.

Answered: 1 week ago

Question

=+Identify the type of global assignment for which CCT is needed.

Answered: 1 week ago