Write a program that reads the subtotal and the gratuity rate, then computes the gratuity and total.