Could I buy A WAY better one this one for a lower price
Answer:
price = float(input("Enter amount of a purchase: "))
shipping_price = 0.12* price
NJ_sales_Tax = 0.07*price
print('The price of item is {}'.format(price))
print('The Cost of Shipping is {}'.format(shipping_price) )
print('New Jessey Sales Tax is {}'.format(NJ_sales_Tax))
total_bill = shipping_price+NJ_sales_Tax+price
print('Total Bill {} ' .format(total_bill))
Explanation:
- Prompt User for input of the amount of purchase
- Calculate the shipping cost (12% of purchase price)
- Calculate the tax (7% of the purchase price)
- Use python's .format method to output an itemized bill
Answer:
The pseudocode is as given below while the flowchart is attached.
Explanation:
The pseudocode is as follows
input customer name, number of texts
Set Basic bill=5 $;
if the number of texts is less than or equal to 60
Extra Charge=0;
If the number of texts is greater than 60 and less than 200
number of texts b/w 60 and 200 =number of texts-60;
Extra Charge=0.1*(number of texts b/w 60 and 200);
else If the number of texts is greater than 200
number of texts beyond 200 =number of texts-200;
Extra Charge=0.25*(number of texts beyond 200)+0.1*(200-60);
Display Customer Name
Total Bill=Basic bill+Extra Charge;
Total Bill after Tax=Total Bill*1.12;