Bob the Porcupine wishes to buy some decorative beads for his quills. He heads to the bead shop where the owner, Arnold the Aardvark, Is struggling to write a Python program to compute the cost of a customer's bead order from some files that have the pertinent information. Arnold has a comma-separated file contalining the ist of beads he has (actually It's a list of codes which represent each Individual type of bead), along with the quantity-on-hand of each type of bead and the corresponding unit price (the price for a single bead of each ype). Amold also has the customer's bead order in another file and he's wondering how to quickly print up an Itemized recelpt for the customer and show them the total price. He needs to be able to repeat this process by running the program again with different Input files. Siven two Input files, with user-entered filenames (e.g., bead pricelist.txt and bead_order. txt), where each line of the bead pricellst file includes the bead code (e.g., "BLUPL" for a blue plastic bead), the quantity- on-hand (e.g., 500) and the unit price of the bead (eg., 0.15), and each line of the bead order file Includes the bead code for each type of bead ordered and the quantity of that type of bead ordered by the customer Help Amold write a Python program to compute and print the customer's recelpt, Including the bead code, the quantity ordered and the total price of that many of those types of beads. In addition, your program should also compute and print the total price of all beads ordered for that customer's order. Remember to use
Bob the Porcupine wishes to buy some decorative beads for his quills. He heads to the bead shop where the owner, Arnold the Aardvark, Is struggling to write a Python program to compute the cost of a customer's bead order from some files that have the pertinent information. Arnold has a comma-separated file contalining the ist of beads he has (actually It's a list of codes which represent each Individual type of bead), along with the quantity-on-hand of each type of bead and the corresponding unit price (the price for a single bead of each ype). Amold also has the customer's bead order in another file and he's wondering how to quickly print up an Itemized recelpt for the customer and show them the total price. He needs to be able to repeat this process by running the program again with different Input files. Siven two Input files, with user-entered filenames (e.g., bead pricelist.txt and bead_order. txt), where each line of the bead pricellst file includes the bead code (e.g., "BLUPL" for a blue plastic bead), the quantity- on-hand (e.g., 500) and the unit price of the bead (eg., 0.15), and each line of the bead order file Includes the bead code for each type of bead ordered and the quantity of that type of bead ordered by the customer Help Amold write a Python program to compute and print the customer's recelpt, Including the bead code, the quantity ordered and the total price of that many of those types of beads. In addition, your program should also compute and print the total price of all beads ordered for that customer's order. Remember to use
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY