Write a function sugar_content that has one parameter - the number of desserts the person is purchasing for Thanksgiving Dinner. The function reads the sugar content (in grams) for each dessert. The function finds and returns the total sugar content for all desserts.
Write main that reads the number of desserts purchased. Use function sugar_content to find the total sugar content for all desserts. According to the American Heart Association (AHA), the maximum amount of added sugars per day should be about 30 grams. The program checks if the total sugar content satisfies the recommendations of the American Heart Association (AHA) and prints an appropriate message.
Write main to test your function.