# programmning code

Is this code right?

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
End Module

1. 👍
2. 👎
3. 👁

## Similar Questions

1. ### Imperialism and World War I

what effect did john hay's open door policy letter have on the imperial powers of britain france germany russia and japan? A) It provoked the imperial powers to declare war on the United States. B) It caused the imperial powers to

2. ### Social Studies

what effect did john hays open door policy letter have on imperial powers of britain france germany and japan? 1. it provoked the imperial powers to declare war on the united states. 2. it caused the imperial powers to restrict

3. ### Social Studies

the XYZ affair outraged many americans. what was president john adams initial stance on how to handle the issue? Select 2. a. Adams asked Congress for a vote to declare war on France** b.Adams sent diplomats to negotiate with

4. ### Government

All of the following are enumerated powers of Congress EXCEPT the power to A. tax. B. coin money. C. declare war. D. *** regulate agriculture.

1. ### Programming

Write a program (pseudocode) that would calculate and display the results for the multiplication table for values ranging from 1 to 100. This what I have so far: Declare X, Y, Z As Integer Write “10 x 10 Multiplication Table”

2. ### Is My Pseudocode Correct? - Programming

I am supposed to make a pseudocode for a fat gram calculator. These are the instructions: Design a program that asks for the number of fat grams and calories in a food item. Validate the input as follows: - Make sure the number of

3. ### computer science

Declare a structure whose tag name is Emp and that contains these fields (in the following order): a double field named d, a character pointer named str, and an array of eleven integers named arr. * I'm good till here. In

4. ### Programming

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

1. ### college

What will the following pseudocode program display? Module main( ) Declare Integer x = 1 Declare Real y = 3.4 Display x, " ", y Call changeUs(x, y) Display x, " ", y End Module Module changeUs(Integer a, Real b) { Set a = 0 Set b

2. ### statistics

Data on number of days of work missed and annual salary increase for a company's employees show that in general exployees who missed more days of work during the year received smaller raises than those who missed fewer days. A

3. ### computer science

Can you find the reason that the following pseudocode function does not return the value indicated in the comments? // The calcDiscountPrice function accepts an item’s price and // the discount percentage as arguments. It use

4. ### 8th Grade Social Studies

Under the Articles, each state sent one delegate to Congress. Thus each state, no matter size or population, had one vote. Congress did have the power to declare war. It could appoint military officers, coin money, and operate