Question: using Python 3.1 Attached Files: test_taxes.py (1.45 KB) taxes.csv (62 B) unit_test1.py (710 B) unit_test3.py (557 B) unit_test2.py (535 B) The purpose of this homework

using Python 3.1 Attached Files: test_taxes.py (1.45 KB) taxes.csv (62 B) unit_test1.py (710 B) unit_test3.py (557 B) unit_test2.py (535 B) The purpose of this homework assignment is to demonstrate your ability to apply what you have learned about format strings, modular programming and writing text files. Instructions: You are to create a module that I can import into my program that performs according to specification. Here's what the module will do: 2. The second program will be named get_state_total(s, p, r) The first parameter is a string and contains the name of a state The second is a floating point value representing a price The third is a floating point value representing a sales tax multiplier The purpose of the function is to return a string suitable for display that includes the state, the price and the total price, including sales tax The string should look like this New Jersey (price / with tax): $1.95 / $2.09 where s is "New Jersey", p is 1.95 and r is 1.07 The field width for the state must be 15 characters wide with blank fill so that the dollar signs all line up

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!