subject

From math import *
def main():
firstItemname = input("what is the name of your first item? ")
firstItem = input("what is the price of your first item? ")
firstShiping = input("What is the price of shipping for the item? ")
secondItemName = input("what is the name of your second item? ")
secondItem = input("what is the price of your second item? ")
secondShiping = input("What is the price of shipping for the item? ")
thirdItemname = input("what is the name of your third item? ")
thirdItem = input("what is the price of your third item? ")
thirdShiping = input("What is the price of shipping for the item? ")
print("The subtotal for " + firstItemname + " is " + str(firstItem))
print("The subtotal for " + secondItemName + " is " + str(secondItem))
print("The subtotal for " + thirdItemname + " is " + str(thirdItem))
totalFirstitem = float(firstItem) + float(firstShiping)
print("Total cost for " + firstItemname + " Is " + str(totalFirstitem))
totalSeconditem = float(secondItem) + float(secondShiping)
print("Total cost for " + secondItemName + " Is " + str(totalSeconditem))
totalthirditem = float(thirdItem) + float(thirdShiping)
print("Total cost for " + thirdItemname + " Is " + str(totalthirditem))
totalNotax = float(firstItem) + float(firstShiping) + float(secondItem) + float(secondShiping) + float(thirdItem) + float(thirdShiping)
print("Your total without tax is " + str(totalNotax))
tax = .065 * (totalNotax)
print("The total tax is " + str(tax))
totalWithtax = float(tax) + float(totalNotax)
print("The total with tax is " + str(totalWithtax))

main()
Can someone convert this to work in java. it is currently in python.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 20.06.2019 18:04, theman300045
What is secondary exchange ? - apex a. returning a product you are unhappy with b. buying the same product more than once c. buying from people instead of companies d. recycling a previously recycled product
Answers: 2
image
Computers and Technology, 22.06.2019 17:30, babyface1686
How do you make a lenny face? plz, brailiest to who can answer first.
Answers: 1
image
Computers and Technology, 24.06.2019 18:30, HavenShort3075
These factors limit the ability to attach files to e-mail messages. location of sender recipient's ability to open file size of file type of operating system used
Answers: 1
image
Computers and Technology, 25.06.2019 08:10, ruslffdr
Memory aids that organize information for encoding are
Answers: 3
You know the right answer?
From math import *
def main():
firstItemname = input("what is the name of your first ite...

Questions in other subjects:

Konu
Mathematics, 04.05.2021 14:00
Konu
Mathematics, 04.05.2021 14:00
Konu
Biology, 04.05.2021 14:00