Relativistic quantum electrodynamics, which describes the electromagneticinteractions of electrons and atomic nuclei, provides the basis for modeling the electronic structure of atoms, molecules and solids and of their interactions with photons and other projectiles. The theory underlying the widely used GRASP relativistic atomic structure program, the DARC electron-atom scattering code and the new BERTHA relativistic molecular structure program is presented in depth, together with computational aspects relevant to practical calculations. Along with an understanding of the physics and mathematics, the reader will gain some idea of how to use these programs to predict energy levels, ionization energies, electron affinities, transition probabilities, hyperfine effects and other properties of atoms and molecules.