Design a program in pseudocode that calculates the amount of money a person would earn over a period of time if their salary is one penny the first day, and then doubles each day. The program should ask the user for the number of days. Display what the salary was for each day, and then show the total pay for the end of the period. The output should be displayed in dollar amount, not number of pennies.

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

Your pseudocode looks correct and should work as intended. However, I notice a small error in the last line. Here is the corrected version of your code:

```
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
```

This program will correctly calculate the salary for each day and display it. It will also calculate the total payment at the end and display it in the form of a dollar amount.

Your pseudocode looks mostly correct. However, there are a few errors that need to be fixed:

1. In the line `Declare Real penny = 1, salary, total + 0`, you should change `total + 0` to `total = 0`. The `+` should be an assignment operator `=`.

2. In the line `Set salary = penny/100`, you should change `/` to `*` because you need to multiply `penny` by 100 to convert it from pennies to dollars.

3. In the line `Display "The total of your payment is$," total`, you forgot to concatenate the dollar sign `$` with the `total` variable. It should be like `Display "The total of your payment is $" concatenate total`.

Here is the corrected pseudocode:

```
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 $" concatenate total
```

Now, you can implement this pseudocode in your desired programming language to see if it works correctly.

It looks like it should work.

well i need help with the desk check as well to test it