Suppose you have a lot of change in your pocket. You pull it all out and separate the coins into different piles: one for all the pennies, one for nickels, one for dimes, and one for quarters. Then you determine the worth of each pile.

Complete the program below, so the it prompts for and reads in the number of coins in one of the piles, as well as a String containing a single letter to indicate the type of coin in that pile: "P" for pennies, "N" for nickels, "D" for dimes, and "Q" for quarters. The program then computes the value of that pile of coins and prints it out.

• P : one penny is worth one cent,
• N : one nickel is worth five cents,
• D : one dime is worth ten cents, and
• Q : one quarter is worth twenty-five cents.

Hence, for example, if the input is 17 followed by the letter 'N', then there are seventeen nickels, worth eighty-five cents. This example would produce the output 0.85.

Your program should also include input validation, printing the word "Error" if the coin type is not valid.

Complete the following file: