[SOLVED] Writing pseudocode or other language please complete the following To Do items.

I’m trying to study for my Python course and I need some help to understand this question.

Struggling to find relevant content? Order a custom essay on
[SOLVED] Writing pseudocode or other language please complete the following To Do items.
Let our experts save you the hassle
Order Now

Task #1

Programming:

Writing pseudocode or other language please complete the following To Do items.

Try your best to complete as much as you can. If you cannot come up with a solution try to outline how you would solve it.

Feel free to use Google or other resources but note that this is focusing on how you approach a problem and basic programming knowledge. This is not testing your knowledge of Python nor is anything designed to be misleading or tricky.

class Shopper:

def __init__(name):

self.name = name

self.cart = []

#TODO: Implement this!

def cart_add(item):

“””

Adds item to our cart

Parameters:

item (item object): An instance of the item class

Returns:

item (item object): The item that was added to the cart

“””

#TODO: Implement this

def print_cart():

“””

Prints the items in our cart like so:

Item Name – Quantity

“””

class Item():

def __init__(name, brand, price)

self.name = name

self.brand = brand

self.price = price

def get_price()

return self.price

-3-

def get_name()

return self.name

def get_brand()

return self.brand

#TODO: Implement This

def compare(): #TODO: Add Parameters

“””

Compares N Items choosing the cheaper one

Parameters:

???

Returns:

item_object: The Cheapest Item

“””

def main():

grocery_one = Item(“Super Mayo”, “Not An Instrument Grocery Co.”, 5.00)

grocery_two = Item(“Questionable Mayonnaise”, “Bob’s Bargain Basement Supply”, 3.50)

#TODO: Create a New Shopper for yourself

#TODO: Call the compare function and add the cheaper product to the cart!

Calculate the price
Make an order in advance and get the best price
Pages (550 words)
$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
Sign up, place your order, and leave the rest to our professional paper writers in less than 2 minutes.
step 1
Upload assignment instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
s
Get personalized services with GPA Fix
One writer for all your papers
You can select one writer for all your papers. This option enhances the consistency in the quality of your assignments. Select your preferred writer from the list of writers who have handledf your previous assignments
Same paper from different writers
Are you ordering the same assignment for a friend? You can get the same paper from different writers. The goal is to produce 100% unique and original papers
Copy of sources used
Our homework writers will provide you with copies of sources used on your request. Just add the option when plaing your order
What our partners say about us
We appreciate every review and are always looking for ways to grow. See what other students think about our do my paper service.
English 101
Although a little late, the content and structure of the paper was great! I would definitely use this writer again!
Customer 452561, July 12th, 2021
Other
thanks
Customer 452653, October 31st, 2021
Nursing
Thank you for the great job and timely delivery.
Customer 452457, December 18th, 2020
Ethics
thank you
Customer 452493, March 15th, 2021
Business and administrative studies
Thank you very much for your help.
Customer 452861, September 16th, 2022
English 101
I'm glad i came to you guys
Customer 452519, May 11th, 2021
Strategic Management
Thanks for the help, really appreciate it
Customer 452821, September 8th, 2022
Other
GOOD
Customer 452813, July 10th, 2022
Web programming
outstanding!
Customer 452715, September 16th, 2022
Nursing
Amazing work! I passed the assignment!
Customer 452707, August 20th, 2022
Social Work and Human Services
Thank you for the great job
Customer 452469, February 3rd, 2021
Social Work and Human Services
Excellent Work!
Customer 452587, August 24th, 2021
OUR GIFT TO YOU
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat
error: Content is protected !!

Save More. Score Better. Use coupon code SPECIAL for a 15%discount