# Question Solved1 Answerhow 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