#!/bin/bash

#loop until acceptable input 
while true; do
	#display menu options to user
	echo "Currency Converter"
	echo "1. GBP to USD"
	echo "2. GBP to EUR"
	echo "3. GBP to JPY"
	echo "4. Exit"

	#prompt user for choice
	read -p "Please select your choice (1-4): " choice

	#perform action based on the users choice
	case $choice in
		1)
		#Call the GBP to USD conversion script
		./GBP_to_USD.sh
		;;
		2)
		#call the GBP to EUR conversion script
		./GBP_to_EUR.sh
		;;
		3)
		#call the GBO to JPY conversion script
		./GBP_to_JPY.sh
		;;
		4)
		#exit script
		exit 0
		;;
		*)
		#Display error message
		echo "Invalid Input. Please enter a valid option."
		;;
	esac
done

