Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

More Books

Students also viewed these Databases questions