In: Computer Science
Your software company was invited to provide a proposal for a company in Australia. You currently have the cost in US dollars and need to convert the prices to the Australian dollar.
Write a 2-part program using Ruby, Java®, or Python.
Part 1: Write a function to gather the following costs from the user:
Part 2: Write a function to convert the costs from United States dollar (USD) to Australian dollar (AUD). Note: Look up the current USD to AUD exchange rate to use in your function.
Test the program 3 times by providing different costs in USD.
Travel_Cost=int(input("Enter travel cost"))#read all costs
Hotel_Cost=int(input("Enter Hotel cost"))
Rental_Car_Cost=int(input("Rental car cost"))
Labor_Cost=int(input("Enter labour cost"))#store it in appropriate
variables
#1 USD = 1.4625 AUD so,if we multiply this for US dollars we will
get our answer
Travel_Cost_AUD=Travel_Cost*1.4625
Hotel_Cost_AUD=Hotel_Cost*1.4625#calculate into AUD
Rental_Car_AUD=Rental_Car_Cost*1.4625
Labor_Cost_AUD=Labor_Cost*1.4625
print("Travel_Cost in australian dollars:",Travel_Cost_AUD)#print
the costs
print("Hotel_Cost in australian dollars:",Hotel_Cost_AUD)
print("Rental_Car cost in australian
dollars:",Rental_Car_AUD)
print("Labor_Cost in australian dollars:",Labor_Cost_AUD)