Saturday

February 28, 2015

February 28, 2015

Posted by **Ant** on Friday, May 21, 2010 at 1:51pm.

I have the code but i do not know if it works PLEASE HELP!!!!!:

Declare Integer days, counter = 1

Declare Real penny = 1, salary, total + 0

Display "Enter a number of days."

Input days

Display "Days",TAB,"Salary"

While counter<= days

Set salary = penny/100

Display counter, TAB, salary

Set penny = penny * 2

Set counter = counter + 1

Set total = total + salary

End While

Display "The total of your payment is$," total

- Programming -
**Marth**, Friday, May 21, 2010 at 8:09pmIt looks like it should work.

- Programming -
**Ant**, Friday, May 21, 2010 at 8:11pmwell i need help with the desk check as well to test it

**Answer this Question**

**Related Questions**

Programming - Design a program in pseudocode that calculates the amount of money...

programming - I have been stuck on this problem in my software design class and ...

Programming - Design a program in pseudocode that calculates the amount of money...

Computer Programming - I must write a program using Java that calculates the ...

Math (logic) - The first day you will earn 1/10 of a penny. The second day you ...

algorithm&pseudocode - write an algorithm for each of these two problems in ...

Programming Logic and Design - This is my 3rd time posting this problem because ...

Math - A goblin miner earns 1 cent the first day, 2 cents the second day, 4 ...

Sequential and Selection Processing Control Struct - You are an accountant ...

c++ programming - Solve the following problem. Apply all the steps i.e ...