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

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:00
Kyle wants to access his school’s home page. how can he do this?
Answers: 1
question
Computers and Technology, 22.06.2019 02:40
Respecting individual differencespre-test active2time remaining48: 47nina is exploring her gender identity and sexual orientationwhich best describes how the role of the media might influence nina during this time in her life? the media would her decide because television shows are always unbiased about gender issues and do notstereotypethe media could make things difficult for her because television sometimes portrays rigid ideas about gender roles.all forms of media will her decide because the media always portrays rigid ideas about gender roles.all forms of media will make things easy for her because the media always portrays open and fair ideas about gender roles.
Answers: 1
question
Computers and Technology, 22.06.2019 19:50
Write a car class having two private member variables called tank and speed. write public methods called pumpgas and gofast. the method pumpgas gets an integer for gas that must be pumped. that value needs to be added to tank (no more than 20 gallons). it must return the amount of gas that is purchased ($4 per gallon). the method gofast should increase the speed by 5 each time it is called.write a constructor for the above class that initialized both variables to zero.write a tostring to display both the tank and speed when the car is printed.modify the car class to implement the interface comparable and an interface called carinter having the public methods in carinter.write the main program to create an array of size 5 of type car. create 5 car objects having each location of the array to refer to one of the cars. test the pumpgas, gofast, equals method on the array items. write an enhanced loop to print all the car values (using a tostring written last time).write a generic method to find the minimum of four items. pass int, double, char, string and car objects to test this method.
Answers: 1
question
Computers and Technology, 23.06.2019 06:20
What is a point-in-time measurement of system performance?
Answers: 3
You know the right answer?
From math import *
def main():
firstItemname = input("what is the name of your first ite...
Questions
question
World Languages, 31.12.2019 00:31
Questions on the website: 13722367