Python 3 Lab Need Create Program Writes Sales Data File Need Prompt Filename Make Sure Che Q37258256

IN PYTHON 3!

For this lab, you will need to create a program the writes salesdata to a file.

You will need to prompt for a filename and make sure to checkand handle the case if you cannot open the file by printing themessage:

The file #### cannot be written to!

Please try again…

(where #### is the input from the user)

You will then collect information for a line in the sales datafile. The information is:

Client name

Service name

Amount

Date

If the amount is not a valid floating point number, you mustoutput the error message:

The amount, ####, cannot be converted to a float!

Please try again…

(where #### represents the

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.