input: Write a function to install a given software using a Bash script. The function should take the name and version of the software as input and return the Bash script as output.
  
  assert install_software("Python", "3.8.5")=="""#!/bin/bash
  
  # Download latest version of Python
  curl -O https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tgz
  
  # Extract the tgz file
  tar -xzf Python-3.8.5.tgz
  
  # Move into the Python directory
  cd Python-3.8.5
  
  # Run the configure script
  ./configure
  
  # Compile and install
  make
  make install"""
  
  assert install_software("Java", "11.0.1")=="""#!/bin/bash
  
  # Download latest version of Java
  curl -O https://download.java.net/java/GA/jdk11/13/GPL/openjdk-11.0.1_linux-x64_bin.tar.gz
  
  # Extract the tar.gz file
  tar -xzf openjdk-11.0.1_linux-x64_bin.tar.gz
  
  # Move into the Java directory
  cd jdk-11.0.1
  
  # Run the configure script
  ./configure
  
  # Compile and install
  make
  make install"""
output: def install_software(name, version):
      if name == "Python":
          return f"""#!/bin/bash
  
  # Download latest version of Python
  curl -O https://www.python.org/ftp/python/{version}/Python-{version}.tgz
  
  # Extract the tgz file
  tar -xzf Python-{version}.tgz
  
  # Move into the Python directory
  cd Python-{version}
  
  # Run the configure script
  ./configure
  
  # Compile and install
  make
  make install"""
      elif name == "Java":
          return f"""#!/bin/bash
  
  # Download latest version of Java
  curl -O https://download.java.net/java/GA/jdk{version.split('.')[0]}/{version.split('.')[2]}/GPL/openjdk-{version}_linux-x64_bin.tar.gz
  
  # Extract the tar.gz file
  tar -xzf openjdk-{version}_linux-x64_bin.tar.gz
  
  # Move into the Java directory
  cd jdk-{version}
  
  # Run the configure script
  ./configure
  
  # Compile and install
  make
  make install"""