Chat with us, powered by LiveChat Pretend you are an African slave living and working on a plantation in South Carolina. How did you become a slave? From what part of Africa did you come? Who captured you and why? How did you get to the Americas, and what specific kinds of conditions did you face on that journey? Talk about life on the plantation. What kind of work do you do? What do you do when all the work is done? Write a letter to a friend, formatted in at least three paragraphs, in which you explain your life as a slave by sharing information and experiences that answer these kinds of questions. Your letter should have some kind of argument that you support with specific evidence from the textbook and/or class discussion to talk about your experiences as a slave. | Writedemy

Pretend you are an African slave living and working on a plantation in South Carolina. How did you become a slave? From what part of Africa did you come? Who captured you and why? How did you get to the Americas, and what specific kinds of conditions did you face on that journey? Talk about life on the plantation. What kind of work do you do? What do you do when all the work is done? Write a letter to a friend, formatted in at least three paragraphs, in which you explain your life as a slave by sharing information and experiences that answer these kinds of questions. Your letter should have some kind of argument that you support with specific evidence from the textbook and/or class discussion to talk about your experiences as a slave.

Pretend you are an African slave living and working on a plantation in South Carolina. How did you become a slave? From what part of Africa did you come? Who captured you and why? How did you get to the Americas, and what specific kinds of conditions did you face on that journey? Talk about life on the plantation. What kind of work do you do? What do you do when all the work is done? Write a letter to a friend, formatted in at least three paragraphs, in which you explain your life as a slave by sharing information and experiences that answer these kinds of questions. Your letter should have some kind of argument that you support with specific evidence from the textbook and/or class discussion to talk about your experiences as a slave.

Assignment 9

Classes and Object – Inventory Item as Object

In this assignment the idea is to use an Item class to capture what you need for recording and displaying the details of an order from an online store like Amazon. This is a Class and Object assignment.

For the assignment you must define and implement the Item class so that the code shown immediately below can produce the result shown below that. You will need to define the four private variables of the Item class for the price, weightInOunces , description, and quantity.

You are to include a constructor (__init__), that takes three input parameters for the price, weightInOunces, and description, but not quantity which should be set to a default value of 1

You will also need to create the remaining methods that are used in the code below the gets and sets. The contents of the main function and the output are shown below. Copy, and do not change, the code below. Pay close attention to the values in the output. If you do not match the details correctly, some of your values will not be the same as those shown. (Hint: There’s a reason that the getOrderPrice() method is not called getPrice() and in the example it affects the order for glasses.) Name your main file youOrderReceipt.py, e.g. AjoyOrderReceipt.py.

Part B:

Create a second main file youOrderReceiptArray.py e.g. AjoyOrderReceiptArray.

Using an list of item objects, instead of item1, item2, etc. Put item1 item2, item3 and item4 in the list. For each item in the list call __str__() and Use the list and the for loop to find the dTotalPrice and iTotalWeight as in part A.

Turn in your zipped package folder with all the three .py source files(Item.py and the two main files). Having correct formatting will now be part of the grade.

def main():

dTotalPrice = 0.0

iTotalWeight = 0

# Put the 4 items being ordered in item1 through item 4

item1 = Item.Item(24.99, 14, “Wireless Mouse”)

item2 = Item.Item(22.49, 27, “USB Keyboard”)

item3 = Item.Item(24.99, 12, “HDMI Cable”)

item4 = Item.Item(7.99, 7, “Reading Glasses”)

item4.set_quantity(2);

# Show the details of the order using show()

print(“Here are your shopping cart contents.”)

print(item1);

print(item2);

print(item3);

print(item4);

# Compute the total price and total weight in this section

dTotalPrice += item1.getOrderPrice()

dTotalPrice += item2.getOrderPrice()

dTotalPrice += item3.getOrderPrice()

dTotalPrice += item4.getOrderPrice()

iTotalWeight += item1.getOrderWeightInOunces()

iTotalWeight += item2.getOrderWeightInOunces()

iTotalWeight += item3.getOrderWeightInOunces()

iTotalWeight += item4.getOrderWeightInOunces()

# Here we show the order details

print(“The price of your order is $” + str(dTotalPrice));

print(“The shipping weight is”, (int)(iTotalWeight / 16),

“pounds”, iTotalWeight % 16 , “ounces”);

main()

The method __str__() should print out as shown below for each item.

$24.99 each for 1 Wireless Mouse.

$22.49 each for 1 USB Keyboard.

$24.99 each for 1 HDMI Cable.

$7.99 each for 2 Reading Glasses.

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order