Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

the input file A1input.text B001,book,Patriot Games, 15.95 B002,book,Origin, 19.95 C001,cloth,Armani Suit, 800.00 B003,book,Animal Farm, 9.97 B004,book,Grant, 22.50 E001,elect,EyePhone 10,795.00 E002,elect,First Alert Smoke Alarm, 29.95 F001,food,Moose

image text in transcribed

image text in transcribed

image text in transcribed

the input file

A1input.text

B001,book,Patriot Games, 15.95 B002,book,Origin, 19.95 C001,cloth,Armani Suit, 800.00 B003,book,Animal Farm, 9.97 B004,book,Grant, 22.50 E001,elect,EyePhone 10,795.00 E002,elect,First Alert Smoke Alarm, 29.95 F001,food,Moose Drool Ale 6-pack, 9.95 C002,cloth,Pants, 39.95 B005,book,Prairie Fires, 18.95 E003,elect,Sony Prtable Radio, 15.00 C003,cloth,Vasque Hiking Boots, 109.00 C004,cloth,Wool Hat, 14.00 F002,food,Jumbo shrimp, 12.50 E004,elect,HP Laptop, 350.00 C005,cloth,Wrangler Jeans, 24.50 B005,book,Ragtime, 17.25 F003,food,Fusili - 16 oz., 2.95 C006,cloth,Nike T-shirt, 19.00 C007,cloth,Gore-Tex Gloves, 39.00 C008,cloth,North Face Fleece Jacket, 89.95 C009,cloth,Nationals Logo Sweatshirt, 49.00 E005,elect,LinkSys Router, 49.95 F004,food,Lamb Chops, 21.95 C010,cloth,New Balance Trail Runners,69.95 E006,elect,Altec Lansing Speakers, 195.95 B006,book,Future Shock, 8.95 E007,elect,LG 55 UDTV,350.00 E008,elect,Dell All-in-One PC, 495.00 E009,elect,Brother Laser Printer, 99.00

PYTHON

Input File You will be provided with an input file consisting of inventory items. The file name is "Alinput.txt". Each line consists of comma-separated data: inventory number, category, description, and price. Part of the input file is shown below. The actual file has additional lines. Note that the inventory number has 4 characters, the category is in the set ("book", "elect", "cloth", and "foo. The description is free text, up to 25 characters in length. The price is floating point with only two digits to the right of the decimal.

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_2

Step: 3

blur-text-image_3

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

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions

Question

how would you have done things differently?

Answered: 1 week ago

Question

3. What information do participants need?

Answered: 1 week ago