Simple algorithm

Status
You're currently viewing only Thunder's posts. Click here to go back to viewing the entire thread.
Not open for further replies.

Thunder

Wise, Aged Ars Veteran
108
In my intro to c++ class the professor gave us an assignment to write up an algorithm and she didnt tell us what an algorithm should look like. So I was wondering if someone could help me out, so here it goes. Mr thomas has negotiated a salary schedule for his new job. He will be paid one cent (.01) the first day with the daily rate doubling each day. What is his total earnings for 30 days?

Here is what I came up n=2(n-1) 1<=n=>30. Is there anything else I need?
 
Status
You're currently viewing only Thunder's posts. Click here to go back to viewing the entire thread.
Not open for further replies.