0

# Problem with an assignment the question is-- a user enters the number of days he worked and then must display his pay for each day using 1 penny 2 pennies and 4 pennies and then double each day .How?

Updated: 12/14/2022

Wiki User

16y ago

Try some examples:

Day 1: 1 cent, same as 2 - 1

Day 2: 1 cent + 2 cents = 3 cents, the same as 4 - 1

Day 3: 1 + 2 + 4 = 7, same as 8 - 1

Day 4: 1 + 2 + 4 + 8 = 15, same as 16 - 1

You should be able to see the pattern. Hint: take a look at the binary representations of each number and the sum for each day.

Wiki User

16y ago

Earn +20 pts
Q: Problem with an assignment the question is-- a user enters the number of days he worked and then must display his pay for each day using 1 penny 2 pennies and 4 pennies and then double each day .How?
Submit
Still have questions?
Related questions

### How many pennies in 150?

Assuming the question means \$1.50, then the answer is 150 pennies.

### How much money is 23 pounds of penny's if each of my penny's weigh 3.11 grams?

The question is ambiguous.Is 23 pounds the value of the pennies and you want the weightoris 23 pounds the weight of the pennies and you want the value?The question is ambiguous.Is 23 pounds the value of the pennies and you want the weightoris 23 pounds the weight of the pennies and you want the value?The question is ambiguous.Is 23 pounds the value of the pennies and you want the weightoris 23 pounds the weight of the pennies and you want the value?The question is ambiguous.Is 23 pounds the value of the pennies and you want the weightoris 23 pounds the weight of the pennies and you want the value?

### How many pennies are there in 50P?

The clue is in the question, 50

### How many pennies in an inch?

It is not possible to answer this question because there are very many countries which use pennies as their minor currency unit,- including the US where they call cents pennies! The country in question has not been specified. Furthermore, it is not clear whether the answer is required in therms of the diameter of the coin or its thickness.

### What does each mean in a word problem?

word problem is a problem but that is asked in words instead of 220 + 110 it would be something like kitt had two hundred twenty pennies james had a hundred and ten pennies how many coins in all?

### How many pennies equal an inch?

The answer will depend on which country's pennies the question is about. Many countries have pennies in their currency - including the US where a penny is a cent! Most of these coins are of different and so no answer is possible.

### How many pennies are in 57 dollars?

Five thousand, seven hundred pennies would total 57 dollars. So 5700 pennies is the answer unless this is some sort of trick question.

### Where do collectors think pennies are minted?

Collectors don't need to "think" where pennies are minted, they know.Please see the Related Question for more information.

### How many pennies in a half dollar?

50There are 100 pennies in a dollar. So your question boils down to figuring out how much half of 100 is.

### How many pennies in 440000?

No pennies. 440000 is just a number. If you use a \$ then we would be talking about currency. Then the question would make more cents.

### How much does a 169.00 in pennies?

This question makes no sense. Please reword it.