Question: Write a program that meets the following criteria: You work for a local newspaper company. When a customer wishes to place a classified advertisement in

 Write a program that meets the following criteria: You work for

Write a program that meets the following criteria: You work for a local newspaper company. When a customer wishes to place a classified advertisement in your newspaper, they send it in as a text file. The customer is then charged $0.12 per word. You are tasked with writing a Python program to calculate this. Additionally, some other statistics about the text could be helpful in making future business decisions. Receive the filename from the user, open the file for input, and input the text. If the file is not found, print an error to the console and prompt for a file name again. B. Count the number of words and characters in the text. C. Calculate the subtotal ( Words * $0.12), sales tax (Subtotal * 0.055 ), and order total (subtotal + sales tax) D. Display this information to the screen. CIWINDOWSTpy.exe Enter the file name:classified Words: 29 characters: 161 Subtotal: $3.48 Sales Tax: $8.1914

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!