1. Suppose you are given 1 cent on day 1 and on day 2 you are
given twice as much. If each day you are given twice as much
as on the previous day, then on day 10, how many pennies will
you receive? Can you program that? (HINT: use loops)
I think you're in the wrong place. This is a forum, a social mixer where everyone is on the same level.[1] This is not the place to downsize your competition or get an advantage over people. You come here for at least one of two things: to get and/or receive help. If you're not doing at least one of those things, you shouldn't be here.
And no, giving out the answer to a copy-pasted homework assignment is not helping. You are just making it worse for that person in the long run. I think you already know why.
What keeps this site going is an understood mutual relationship: People post on this site trusting that they will get the most useful help for solving their problem. People answer questions (generating useful content) knowing that if they continue to do so, the site will keep running and will be up when they have questions of their own (and also to learn stuff in the process of figuring out answers to questions).
When you post something that hurts people now or in the long run (and has no useful content for future readers), you are degrading the very foundation of this relationship. People who actually want to understand will stop posting good questions because they'll just be getting a block of code back. Eventually, people will stop posting answers and the site will shut down.
Please think about what you are doing. Thank you.
[1]: To clarify, everyone's getting or giving help, there's no way you can get some advantage over people. It doesn't make any sense.