In this project, you will create a tool that will help a company print invoices and keep…
- User
In this project, you will create a tool that will help a company print invoices and keep track of the total amount it has billed and the total amount it has discounted. Imagine the company has a regularly scheduled billing process. Perhaps every week, it prints invoices that it uses to communicate to the customer what the customer owes them for the purchases they made. Suppose that the company has two types of customers: retail and corporate. The discount schedules for these two types of customers differ. For retail customers, If the bill is greater than or equal to 500, they get a 20% discount If the bill is greater than or equal to 250 but less than 500 they get a 10 % discount Otherwise, they don ’ t get a discount. For corporate customers, If the bill exceeds or is equal to 1,000 they get a 30% discount If the bill exceeds or is equal to 1,000, they get a 20% discount Otherwise, they don ’ t get a discount. Suppose further that the company only sells in the states of Illinois, Indiana, and Wisconsin. The company must assess the correct sales tax based on the state. If the customer is in Illinois (abbreviated IL), the sales tax is 8.75%. If the cust omer is in Wisconsin (WI), the sales tax is 8.25%. And if the customer is in Indiana (IN), the sales tax is 8.5%. Your program must repeatedly ask the user to enter invoice data. Specifically, your program will ask the user to enter the cost of the purchas e, the type of customer, and the state where the customer is located. Based on that, it will print a summary that shows the purchase cost, the sales tax collected, the amount of the discount, and the final price. Your program will continue doing this as lo ng as the user indicates they have more invoices to enter.
- Assistant