subject

Python Coding The objective of this problem is to show that you understand how to write a program that can read text files and process the data. File cart. txt contains shopping cart type data from golfsmith. com representing the gifts you have purchased for your dad for this past Fathers Day. Good for you. You have been very generous! The first item in each row of the file is the part number, the second the quantity, the third the price and the fourth the description. Your program will read the file line by line and compute the total cost of all of the items in the list. You will then display a message that looks like this, assuming the cost of each item adds up to 168.42:
The data for the text file looks like this:
30045324, 1, 69.97, Odyssey, White Ice D. A.R. T Putter
30035503, 2, 17.49, Callaway, HX Bite Golf Balls
30056527, 1, 10.99, FootJoy, Men's WeatherSof Golf Glove
30041775, 1, 52.48, Cleveland, CG15 Black Pearl Tour Zip Wedge
Here's what your output should look like:

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
Which location-sharing service offers items for users as a gaming component and also allows them to collectively link their check-ins to publish a trip? a. whrrl b. buzzd c. foursquare (this option is wrong i already tried) d. gowalla for plato
Answers: 2
question
Computers and Technology, 23.06.2019 05:00
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most?
Answers: 2
question
Computers and Technology, 23.06.2019 07:00
To produce a starlight effect in her photograph, lina should choose the filter for her camera.
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
Which of these is a benefit of using objects in a powerpoint presentation? a. collaborators can create the external files while you create and edit the slide show. b. you can easily change the theme and design of the presentation. c. you can have older data in the source file while having up-to-date data in the presentation. d. collaborators can easily share the presentation.
Answers: 2
You know the right answer?
Python Coding The objective of this problem is to show that you understand how to write a program t...
Questions
Questions on the website: 13722367