Financial Managementproblem Descriptionlarry graduated this year and finally have a job. He's making a lot of money, but somehow never seems to has enough. Larry has decided the he needs to grab hold of his financial portfolio and solve his financing problems. The first step is to a figure out what's been going on with the he money. Larry has the He bank account statements and wants to see how the much money he had. Help-Larry by writing-a program-to-take he closing balance from each of the past twelve months and calculate his average Account balance.
Inputthe input would be twelve lines. Each line would contain the closing balance of his bank account for a particular month. Each number is positive and displayed to the penny. No dollar sign would be included.
Outputthe output is a single number and the average (mean) of the closing balances for the twelve months. It'll be rounded to the nearest penny, preceded immediately by a dollar sign, and followed by the End-of-line. There'll be is no other spaces or characters in the output.
Sample Input100.00 489.12 12454.12 1234.10 823.05 109.20 5.27 1542.25 839.18 83.99 1295.01 1.75
Sample output$1581.42
1#include <stdio.h>2 intMain ()3 {4 Doublea[ -],b=0;5 inti;6 for(i=0;i< A; i++)7 {8scanf"%LF",&a[i]);9b+=A[i];Ten } OneB/= A; Aprintf"$%.2lf\n", b); - return 0; -}
Financial management--hdu1064