Question

In: Computer Science

You built your own 3D printer and intend to make a business of printing small parts...

You built your own 3D printer and intend to make a business of printing small parts for customers. After advertising your business on campus, you receive hundreds of emails within the span of a few days - all of which are fellow students asking for quotes on printing their parts. You go through all of the STL files, and record the approximate print time, material use and cost estimates for each as follows: Order 1: Order 2: Print Time: 43 minutes Print Time: 28 minutes Colour: Red Colour: Blue Material: 1.64 feet Material: 0.91 feet Cost: 3.80 $USD Cost: 2.11 $USD Order #: Print Time: ## minutes Colour: ... Material: #### feet Cost: #.## $ USD You've recorded each customer order as shown above and intend to start completing orders next week. Before hand, you want to know the total amount of time the printing will take, the total amount of material for each colour filament that you need to have on hand and the total material costs. Seeing as there are hundreds of orders on file you don't want to do these calculations manually, so you decide to use Python instead. In this assignment, you will be completing the function definition printing(orders), which has been started for you in the code template notebook. This function takes in a list of strings orders, where each element in the list is one line from the orders file, such as: orders = ["Order 1:\tPrint Time: 43 minutes\tColour: Red\tMaterial: 1.64 feet\tCost: 3.80 $USD", "Order 2:\tPrint Time: 28 minutes \tColour: Blue \tMaterial: 0.91 feet\tCost: 2.11 $USD"] You must complete the function definition to satisfy the following requirements: 1. The program computes the following 3 values: a. printTime = the total print time for all orders, stored in a list: [hours, minutes] b. matlused = the total material used for all orders, stored in a list based on filament color: [Red_matlused, Blue_matlused, Yellow_matlused, White_matlused, Black_matlused). Since your filament provider is based out of Canada, you need to provide this measurement in metres (1 metre = 3.28 feet). c. matlCost = the total material cost in $CAD (1 $USD = 1.42 $CAD). d. profit = your estimated profit if you charge 0.25 SCAD/minute of printing and only account for the material cost in your expenses (profit = revenue - expenses). 2. The program returns print Time, matlused, matlCost, and profit as output (done for you in the code given). 3. Your name, Maced, and the date are given in comments in the first Python cell. 4. Your answers to the design questions and test plan are given in the appropriate cells in the Python notebook. 5. Your program MUST have valid Python syntax and it must run without errors. Ensure that your
# Date: In [ ]: ######################################-- printing(orders) ###################################### def printing (orders): # Modify/add to the code between here... printTime = [] matlused = [0,0,0,0,0] matlCost = 0 profit = 0 #... and here return printTime, matlused, matlcost, profit ##########---TEST YOUR CODE---#################### # Change the values of orderTest to test with different values orderTest = ["order 1:\tPrint Time: 43 minutes\tcolour: Red\tMaterial: 1.64 feet\tCost: 3.80 $USD", "Order 2: \tPrint Time: 28 minutes\tcolour: Blue\tMaterial: 0.91 feet\tCost: 2.11 $USD"] result = printing (orderTest) ############## print("printTime=" ', result[0]) print("matlused =", result[1]) print("matlCost , result[2]) print("profit=" ", result[3])

Solutions

Expert Solution

solution for the question:
output:

Let me know if you have any doubts or if you need anything to change Through comment.

If you are satisfied with the solution, please leave a +ve feedback : ) Let me know for any help with any other questions : )

Thank You!
====================================================================


Related Solutions

You run your printer 1000 times and find that your 3D printer fails 1 every 50...
You run your printer 1000 times and find that your 3D printer fails 1 every 50 prints. The manufacturer claims that the printer will only fail 1% of the time. a Create a confidence interval for the failure rate of your printer. b Is the failure rate of your printer different than that of the manufactures? Make sure to include the null and alternative hypothesis, z score, p value and interpretation of the results. c Is the failure rate of...
Your company is investing in a 3D printer for $10,000 that you will use for 5...
Your company is investing in a 3D printer for $10,000 that you will use for 5 years. The annual expected revenue generated from sale of products made by this printer is $5,310 and annual expenses for the printer are $3,000. The expected salvage value at the end of 5 years is $2,000. Your company’s minimum attractive rate of return is 12%. Based on internal rate of return analysis, required by your company, is this investment economically acceptable? Why or why...
You and your partners have decided to open a small printing and copying business in a...
You and your partners have decided to open a small printing and copying business in a college town of 100,000 people in Canada. Your business will compete with companies like FedEx Office. You know that over 50% of small businesses fail in their first year, so to increase your chances of success, you have decided to perform a detailed analysis of the task environment of the copying business to discover what opportunities and threats you will encounter. 1. Decide what...
Your company wants to purchase a 3D printer at a cost of $15,000. It estimates it...
Your company wants to purchase a 3D printer at a cost of $15,000. It estimates it can generate cash inflow in the year following purchase of $12,000. In the next a cash outflow of $4,000 will occur because the printer will require expensive maintenance and a software update. In the printer’s final year of its useful life it will generate cash flow of a $10,000. The machine will then be scrapped. Is the purchase financially justifiable if the appropriate discount...
You have a camera that is sensitive in the visible light range. Your 3D printing facility...
You have a camera that is sensitive in the visible light range. Your 3D printing facility has informed you that all inks are out except the transparent type. Your group mates try to paint or attach opaque black tape to the printed transparent ink, but only small, tiny pieces manage to stick and you cannot cover the box with such pieces - it is too much work. To make matters worse, your assignment to make a pinhole camera is due...
Assume that you are going to start a small business of your own. Describe the business...
Assume that you are going to start a small business of your own. Describe the business and discuss the following: What costs you would incur; What competition you might experience; How you would determine the price you would sell your product; and, How much product you would produce?
How do you make a soldenoid(coil) with 3D printer. I need detailed instructions so i can...
How do you make a soldenoid(coil) with 3D printer. I need detailed instructions so i can make it my self?
One of the Supply Chain Management (SCM) technologies is 3D printing. Would you agree that 3D...
One of the Supply Chain Management (SCM) technologies is 3D printing. Would you agree that 3D printing is disruptive technology? Why or why not? Name and briefly describe another disruptive technology (you may use a "historical," i.e., past, example) that, in your opinion, has had as significant an impact. Min 500 words.
You have just opened your own printing business. A large sports franchise is beginning an important...
You have just opened your own printing business. A large sports franchise is beginning an important advertising campaign in order to attract more fans to the sport. The purchasing officer of the company calls and asks you to make a bid on printing 5,000 high quality posters that are to be given out to important boosters. He asks you to come by his office to talk about the job. There, he tells you that he would like to help you...
Assume that you are going to start a small business of your own. Further, imagine that...
Assume that you are going to start a small business of your own. Further, imagine that you are able to adequately differentiate your product, or service so that you can establish your business as a monopolistically competitive firm. Describe the business and its likely main competitors. How would you structure your advertising and customer service to differentiate your product/service? How easy would it be for new competitors to enter your market and erode your customer base or selling price? What...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT