Write the code segments based on the given descriptions:
FILElocation.txtCONTENTS
Location>
UTM 1.5523763 103.63322
KLCC 3.153889 101.71333
UM 3.1185 101.665
UMS 6.0367 116.1186
UNIMAS 1.465174 110.4270601
Ask the user to enter a location. Check if the user’s location can be found in the text file. If found, display thelocation, latitudeandlongitudeas shown below.
SAMPLE OUTPUT
Enter a location: UM
Location : UM
Latitude : 3.1185
Longitude : 101.6650
Otherwise display“Sorry, location could not be found”.
Enter a location : MMU
Sorry, location could not be found
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here