The “Chapter 2 – #4: Total Acquisition – Tony Gaddis – Starting Out With Python” programming challenge comes from Tony Gaddis’ book, “Starting Out through Python (fourth Edition, Global Edition)”

## Problem

A customer in a store is purchasing 5 items. Write a regimen that asks for the price of each item, then display screens the subfull of the sale, the amount of sales taxes, and also the complete. Assume the sales taxation is 7 percent.

## Solution

SALES_TAX = .07item1 = float(input(' Enter the price for item 1 \$'))item2 = float(input('Go into the price for item 2 \$'))item3 = float(input('Go into the price for item 3 \$'))item4 = float(input('Get in the price for item 4 \$'))item5 = float(input('Go into the price for item 5 \$'))subfull = float(item1 + item2 + item3 + item4 + item5)total_sales_taxation = subfull * SALES_TAXfull = subtotal + total_sales_tax#3,000,000.09print(' Total = \$', format(complete, ',.2f'), sep='', end=' ')

## Video Walk Through

This video consists of a action by action process of just how to solve “Chapter 2 – #4: Total Purchase – Tony Gaddis – Starting Out With Python”.

## That’s it for Chapter 2 – #4: Total Purchase

Thank you for taking an interemainder in what I do! I hope it was beneficial for you as a lot as it helped me along my journey in discovering to code!

## Python Chapter 2 Solutions Here:

Starting Out With Python | Chapter 2 | Programming Challenge Solutions

## Chapter 2 References:

end= and sep= Escape Characters Python Strings the print() function Variable Types float() function int() function format() function

## Would you think about making a donation? If so, here’s exactly how you deserve to assistance my page:

You are watching: A customer in a store is purchasing five items

CategoriesProgramming TagsProgramming Challenges, Python, Starting Out With Python Chapter 2 Programming Challenges Solutions, Tony Gaddis