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, 22.06.2019 00:30
These tools give presenters more freedom to move about the room and interact with their audience. laptop computer laser pointer lcd projector remote control
Answers: 2
question
Computers and Technology, 23.06.2019 01:20
Write a function balancechemical to balance chemical reactions by solving a linear set of equations. the inputs arguments are: reagents: symbols of reagents in string row array products: symbols of products in string row array elements: elements in the reaction in string row array elcmpreag: elemental composition of reactants in two dimensional numeric array elcmpprdcts: elemental composition of prducts in two dimensional numeric array hint: the first part of the problem is setting up the set of linear equations that should be solve. the second part of the problem is to find the integers from the solution. one way to do this is to mulitiply the rational basis for the nullspace by increasing larger integers until both the left-and right-side integers exist. for example, for the reaction that involves reacting with to produce and : reagents=["ch4", "o2"]; products =["co2", "h2o"]; elements =["c","h", "o"] elcmpreag=[1,4,0;
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. peter has launched a website that features baby products. however, clients often find they are unable to access the website because the server is down. which feature of cybersecurity should peter focus on for his website? a. data authenticity b. data privacy c. data availability d. data integrity e. data encryption
Answers: 3
question
Computers and Technology, 24.06.2019 00:00
Consider the series where in this problem you must attempt to use the ratio test to decide whether the series converges. compute enter the numerical value of the limit l if it converges, inf if it diverges to infinity, minf if it diverges to negative infinity, or div if it diverges but not to infinity or negative infinity.
Answers: 1
You know the right answer?
From math import *
def main():
firstItemname = input("what is the name of your first ite...
Questions
question
Biology, 08.11.2019 18:31
Questions on the website: 13722363