Computers and Technology

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.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 16:00, ginaaa20
Which analyst position analyzes information using mathematical models to business managers make decisions?
Answers: 1
image
Computers and Technology, 24.06.2019 05:00, alfarodougoy8lvt
Who is most likely be your target audience if you create a slide presentation that had yellow background and purple text
Answers: 2
image
Computers and Technology, 24.06.2019 13:50, jaystarr9395
Write a program that performs a simple n-body simulation, called "jumping leprechauns." this simulation involves n leprechauns, numberd 1 to n. it maintains a gold value g_i for each leprechaun i, which begins with each leprechaun starting out with a million dollars worth of gold, that is, g_i = 1000000 for each i = 1,. in addition, the simulation also maintains, for each leprachaun, i, a place on the horizon, which is represented as a double-precision floating point number, x_i. in each iteration of the simulation, the simulation processes the leprachauns in order. processing a leprachaun i during its iteration begins by computing a new place on the horizon for i, which is determined by the assignment:
Answers: 3
image
Computers and Technology, 24.06.2019 20:20, jdkrisdaimcc11
Write python code that prompts the user to enter his or her age and assigns the user’s input to an integer variable named age.
Answers: 1
Do you know the correct answer?
From math import *
def main():
firstItemname = input("what is the name of your first ite...

Questions in other subjects:

Konu
Mathematics, 21.07.2019 11:50