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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 13:00, alexacarillo
In excel - calculate the actual increase/decrease from first quarter to the second quarter then subtract subtract first quarter value from second quarter total then divide result by first quarter value
Answers: 1
image
Computers and Technology, 23.06.2019 14:30, kodak0531
Which of the following would not be considered a pc? a. mainframe b. desktop c. tablet pc d. laptop
Answers: 2
image
Computers and Technology, 23.06.2019 19:30, bbgirl8638
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
image
Computers and Technology, 23.06.2019 20:30, lucywood2024
What is the biggest difference between section breaks and regular page breaks
Answers: 1
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 in other subjects:

Konu
Mathematics, 18.03.2021 03:30