i=1 sub Total=0 item1 = float(input("What is the cost of first item ? ")) item2 = float(input("What is the cost of second item ? ")) item3 = float(input("What is the cost of third item ? ")) item4 = float(input("What is the cost of fourth item ? ")) item5 = float(input("What is the cost of fifth item ? ")) sub Total =item1 + item2 + item3 + item4 + item5 current TAX = float(input("What is the current tax? (enter decimal value i.e. 0.04, 0.07) ")) print("- print("TOTAL PURCHASE RECEIPT / INFORMATION ") print("===: LimSub Total = round(sub Total,2) limItem1 = round(item1,2) limItem2 = round(item2,2) limItem3 = round(item3,2) limItem4 = round(item4,2) limItem5 = round(item5,2) print(" PRICE #01: \†\f\f\f\t $ \+\t ",str(limItem1).rjust(5)) print(" PRICE #02:\f\f\f\f\t $ \t\t",str(limItem2).rjust(5)) print(" PRICE #03:\†\f\f\f\† $ \+\t ",str(limItem3).rjust(5)) print(" PRICE #04:\f\f\f\f\t $ \t\t",str(limItem4).rjust(5)) print(" PRICE #05:\f\f\f\+\t $ \t\t ",str(limItem5).rjust(5)) print(" # calculate the sales tax and total sales TaxAmount=sub Total*current TAX LimsalesTaxAmount = round(salesTaxAmount,2) totalAmount=sales TaxAmount+subTotal Lim TotalAmount = round(totalAmount,2) # print the calculated data print(" SUB TOTAL :\†\f\f\f\t $\f\t ",str(LimSub Total).rjust(5)) print(" SALES TAX :\f\f\f\f\t $ \+\† ",str(Limsales TaxAmount).rjust(5)) print(" TOTAL SALE:\†\f\f\f\t $\f\t ",str(LimTotalAmount).rjust(5))

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Convert python code into Flowgorithm.

i-1
sub Total=0
item1 = float(input("What is the cost of first item ? "))
item2 = float(input("What is the cost of second item ? "))
item3 = float(input("What is the cost of third item ? "))
item4 = float(input("What is the cost of fourth item ? "))
item5 = float(input("What is the cost of fifth item ? "))
sub Total =item1 + item2 + item3 + item4 + item5
current TAX = float(input("What is the current tax? (enter decimal value i.e. 0.04, 0.07) "))
print(":
print("TOTAL PURCHASE RECEIPT / INFORMATION ")
print("=:
LimSub Total = round(sub Total,2)
limItem1 = round(item1,2)
limItem2 = round(item2,2)
limItem3 = round(item3,2)
limItem4 = round(item4,2)
limItem5 = round(item5,2)
print(" PRICE #01:\†\f\f\f\t $\t\t ",str(limItem1).rjust(5))
print(" PRICE #02:\t\t\f\f\t $ \t\t ",str(limItem2).rjust(5))
print(" PRICE #03:\t\f\f\f\t $ \t\t ",str(limItem3).rjust(5))
print(" PRICE #04:\†\f\f\f\f $ \f\f",str(limItem4).rjust(5))
print(" PRICE #05:\†\t\†\f\+ $ \+\+ ",str(limItem5).rjust(5))
print("===
# calculate the sales tax and total
sales TaxAmount=sub Total* current TAX
Limsales TaxAmount = round(sales TaxAmount,2)
totalAmount-salesTaxAmount+subTotal
Lim TotalAmount = round(totalAmount,2)
# print the calculated data
print(" SUB TOTAL :\†\f\f\f\t $ \+\t ",str(LimSub Total).rjust(5))
print(" SALES TAX :\+\f\f\f\† $\f\t ",str(LimsalesTaxAmount).rjust(5))
print(" TOTAL SALE:\†\f\f\f\t $\f\ ",str(LimTotalAmount).rjust(5))
main()
Transcribed Image Text:i-1 sub Total=0 item1 = float(input("What is the cost of first item ? ")) item2 = float(input("What is the cost of second item ? ")) item3 = float(input("What is the cost of third item ? ")) item4 = float(input("What is the cost of fourth item ? ")) item5 = float(input("What is the cost of fifth item ? ")) sub Total =item1 + item2 + item3 + item4 + item5 current TAX = float(input("What is the current tax? (enter decimal value i.e. 0.04, 0.07) ")) print(": print("TOTAL PURCHASE RECEIPT / INFORMATION ") print("=: LimSub Total = round(sub Total,2) limItem1 = round(item1,2) limItem2 = round(item2,2) limItem3 = round(item3,2) limItem4 = round(item4,2) limItem5 = round(item5,2) print(" PRICE #01:\†\f\f\f\t $\t\t ",str(limItem1).rjust(5)) print(" PRICE #02:\t\t\f\f\t $ \t\t ",str(limItem2).rjust(5)) print(" PRICE #03:\t\f\f\f\t $ \t\t ",str(limItem3).rjust(5)) print(" PRICE #04:\†\f\f\f\f $ \f\f",str(limItem4).rjust(5)) print(" PRICE #05:\†\t\†\f\+ $ \+\+ ",str(limItem5).rjust(5)) print("=== # calculate the sales tax and total sales TaxAmount=sub Total* current TAX Limsales TaxAmount = round(sales TaxAmount,2) totalAmount-salesTaxAmount+subTotal Lim TotalAmount = round(totalAmount,2) # print the calculated data print(" SUB TOTAL :\†\f\f\f\t $ \+\t ",str(LimSub Total).rjust(5)) print(" SALES TAX :\+\f\f\f\† $\f\t ",str(LimsalesTaxAmount).rjust(5)) print(" TOTAL SALE:\†\f\f\f\t $\f\ ",str(LimTotalAmount).rjust(5)) main()
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY