Overall Assignment
In this assignment, each section describes the function(s) that you must create. All of them should be contained within a single python file. Make sure that they all work on the Ubuntu OS in the labs. Your program must be written for Python 3.7+.
1 Miles to Kilometers
Using the template provided, create a function that converts Miles to Kilometers. The input will be some number and your function will return some number. Your function should be defined as follows:
defmilesToKilo(miles):#Put your code here
Fill in the other function to test your new Miles to Kilometer function. This function should take two parameters,valueandtest, wherevalueis the input to yourmilesToKilofunction andtestis the value you want to compare with. Your function should return true is the converted number returned bymilesToKilomatchestest, otherwise false.
defmilesToKiloTest():#put your code here.
2 Built-In Functions
Using the template provided, write a function for each of the following using the built in functions ofabs(),round(),pow(),int(), andfloat():
1. Calculatexto the power of 3
2. Convertxto an integer by truncating
3. Convertxto an integer by rounding
4. Take the absolute value ofxand convert it to a floating point number.
You must return the result. Below is the format for the first objective in the list.
defbuiltIn1(x):
#Put your code here