Question: please do in visual basic these are the text files txt file re upload txt file: 1 2 5 5 5 5 1 1 1






Available Imagine you are given a large bag of money and told that it contains an unknown number of United States Federal Reserve Notes (cha ching. The benefactor says you can keep it all as long as you provide a count of each denomination: $1. $2.55, $10 $20, $50, and $100. You decide to create adjacent stacks for each denomination. As you extract a note from the bag, you determine its vatue and place it on the appropriate stack. After placing the final note. you tally each stack and create the report shown below. Count 21 6 23 Denomination $1 $2 $5 $10 $20 $50 $100 19 17 11 13 Unfortunately, I do not have a bag of money for you. Instead, I will provide you with a text file that represents the money bag. MoneyBarata First, create pseudocode to design an algorithm that accomplishes the same results as described above. Second, develop the program Your program must 1. Use an array to hold the contents of Money Bag text file Do NOT explicitly size the array 2. Use an array to hold the counts for each possible denomination 3. Use constants to represent the indexes for each denomination element 4. Use the Form Load event 5. Display the results in a list box control, formatted neatly as two columns: Denomination and Count 6. Use String.Format to position the numbers into columns - UT UT UT UN 1 1 NH 8 " " LUB 88888 20 5 5 10 1 1 1 1 1 100 5 5 5 10 1 1 1 1 100 20 100 100 100 5 10 2 5 2 20 50 100 1 un un stv 1 1 50 1 1 1 100 1 1 1 1 100
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
