November 13th, 2013, 04:12 PM
Assistance with Pennies for Pay problem.
I am currently taking a programming class and we are using Visual Studios Express 2010, working out of the Starting Out With Visual C# 2010 2nd edition by Tony Gladdis.
I am completely stuck on a problem, the Pennies for Pay were you earn 1 penny for the first day, 2 pennies for the second day, 4 for the 3rd day and so on.
I am trying to write the code so that you input how many days you work in a textbox and then it shows you how much you made.
Im sure I need to use a loop for this problem and decimal since I will be working with 0.01m but beyond that I have no clue were to start.
Im dont want the anwser just some guidance on were to start and a good reference to view a simular problem.
Thanks in advance for any help
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.