Question Solved1 Answer how do i enter this as paython on paycharm anuty 2 Functions_Modules x BCIT (3) myBCIT Webmail : Re: lab 2 Servouserverwererurume.www 531/viewContent/6422529/View Get the retail item description, quantity sold, price and ta Calculate the subtotal, tax amount and the total. Finally calling functions in the following format: www enter retail item description: Laptop enter quantity purchased: 2 enter price per unit:799.99 enter tax:0.12 ho Sales Receipt: Item Description: Laptop Number of Purchased items: 2. Unit Price: 799.99 Tax Rate: 0.12 Subtotal: 1599.98 Tax: 191.9976 Total: 1791.9776 2 14 o Ü Co >> . . . 3. Create the following functions: Function with the name get_retail_item_description (), the function prompts the user to enter the retail item description and return it. • Function with the Lame get_number_of_purchased_items (), the function prompts the user to enter the quantity sold and returns it. Function with the name get_price_usd_per_unit(), the function prompts the user to enter the price and returns it. Function with the name get_tax_rate (), the function prompts the user to enter the tax rate as a floating point value and returns it. o For example, if the tax rate was 6% the user should enter the value 0.6. • Function with the name calculate_subtotal_usd(), the function takes two parameters the price, and quantity_sold. The function calculates and returns the subtotal amount. Subtotal is calculated by multiplying the price of the retail item times the quantity sold. • Function calculate tax_usd0, the function takes two parameters the subtotal and the tax, the function calculates and returns the tax amount of the given subtotal. 1 14 3 O SAMSUNG

OH8RWD The Asker · Computer Science
how do i enter this as paython on paycharm

Transcribed Image Text: anuty 2 Functions_Modules x BCIT (3) myBCIT Webmail : Re: lab 2 Servouserverwererurume.www 531/viewContent/6422529/View Get the retail item description, quantity sold, price and ta Calculate the subtotal, tax amount and the total. Finally calling functions in the following format: www enter retail item description: Laptop enter quantity purchased: 2 enter price per unit:799.99 enter tax:0.12 ho Sales Receipt: Item Description: Laptop Number of Purchased items: 2. Unit Price: 799.99 Tax Rate: 0.12 Subtotal: 1599.98 Tax: 191.9976 Total: 1791.9776 2 14 o Ü Co >> . . . 3. Create the following functions: Function with the name get_retail_item_description (), the function prompts the user to enter the retail item description and return it. • Function with the Lame get_number_of_purchased_items (), the function prompts the user to enter the quantity sold and returns it. Function with the name get_price_usd_per_unit(), the function prompts the user to enter the price and returns it. Function with the name get_tax_rate (), the function prompts the user to enter the tax rate as a floating point value and returns it. o For example, if the tax rate was 6% the user should enter the value 0.6. • Function with the name calculate_subtotal_usd(), the function takes two parameters the price, and quantity_sold. The function calculates and returns the subtotal amount. Subtotal is calculated by multiplying the price of the retail item times the quantity sold. • Function calculate tax_usd0, the function takes two parameters the subtotal and the tax, the function calculates and returns the tax amount of the given subtotal. 1 14 3 O SAMSUNG
More
Transcribed Image Text: anuty 2 Functions_Modules x BCIT (3) myBCIT Webmail : Re: lab 2 Servouserverwererurume.www 531/viewContent/6422529/View Get the retail item description, quantity sold, price and ta Calculate the subtotal, tax amount and the total. Finally calling functions in the following format: www enter retail item description: Laptop enter quantity purchased: 2 enter price per unit:799.99 enter tax:0.12 ho Sales Receipt: Item Description: Laptop Number of Purchased items: 2. Unit Price: 799.99 Tax Rate: 0.12 Subtotal: 1599.98 Tax: 191.9976 Total: 1791.9776 2 14 o Ü Co >> . . . 3. Create the following functions: Function with the name get_retail_item_description (), the function prompts the user to enter the retail item description and return it. • Function with the Lame get_number_of_purchased_items (), the function prompts the user to enter the quantity sold and returns it. Function with the name get_price_usd_per_unit(), the function prompts the user to enter the price and returns it. Function with the name get_tax_rate (), the function prompts the user to enter the tax rate as a floating point value and returns it. o For example, if the tax rate was 6% the user should enter the value 0.6. • Function with the name calculate_subtotal_usd(), the function takes two parameters the price, and quantity_sold. The function calculates and returns the subtotal amount. Subtotal is calculated by multiplying the price of the retail item times the quantity sold. • Function calculate tax_usd0, the function takes two parameters the subtotal and the tax, the function calculates and returns the tax amount of the given subtotal. 1 14 3 O SAMSUNG
See Answer
Add Answer +20 Points
Community Answer
XGDE3H The First Answerer
See all the answers with 1 Unlock
Get 4 Free Unlocks by registration

# your code goes here #make the function which will take the input from the user for diffrent items def retai_item_description(): titem =input("Enter the item : ") treturn item t def get_number_of_purchased_items(): tquantity =int(input("enter quantity : ")) treturn quantity t t def get_price_per_unit(): tprice=float(input("enter price : ")) treturn price t def get_tax(): ttax =float(input("enter Tax rate : ")) treturn taxt #here this function will calculate the total amount and tax amount def calculate_subtotal(price,quantity): ttotal_amount1=price*quantity treturn total_amount1 def calculate_tax(price,quantity,tax): ttax_total=price*quantity*tax treturn tax_total #call all the user defined functions items=retai_item_description() quantity=get_number_of_purchased_items() price=get_pric ... See the full answer