1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
r-ruslan [8.4K]
3 years ago
6

- A blacksmith is shoeing a miser's horse. The blacksmith charges ten dollars for his work. The miser refuses to pay. "Very well

", says the blacksmith, "there are eight nails in each horseshoe. The horse has four shoes. There are 32 nails in all. I will ask you to pay one penny for the first nail, two pennies for the next nail, four pennies for the next nail, eight pennies for the next nail, sixteen pennies for the next, etc. until the 32nd nail". How much does the miser have to pay?​
Computers and Technology
1 answer:
34kurt3 years ago
8 0

Answer:

1+ 2^31= 2,146,483,649 pennies.

in Dollars- $21,464,836.49

edit for total=

42, 929,672. 97

Explanation:

,

You might be interested in
Write a loop that reads positive integers from standard input and that terminates when it reads an integer that is not positive.
puteri [66]

Answer:

import java.util.Scanner;

public class num4 {

   public static void main(String[] args) {

     Scanner in = new Scanner(System.in);

     int sumOdds =0;

     int sumEvens =0;

     int num;

     do{

         System.out.println("Enter positive integers");

         num = in.nextInt();

         if(num%2==0){

             sumEvens+=num;

         }

         else if (num%2!=0){

             sumOdds+=num;

         }

     }while (num>0);

       System.out.println("The sum of evens: "+sumEvens);

       System.out.println("The sum of odds: "+sumOdds);

   }

}

Explanation:

  • Import Scanner class to prompt and receive user input
  • Declare the following variables and initialize them int sumOdds =0, int sumEvens =0, int num;
  • Create a do....while loop That continously prompts user to enter a positive number. The loop should terminate when a negative number is enters (n<=0)
  • Within the while loop use an if condition with the modulo (%) operator to determine even and odd numbers and add to the respective variables
  • Outside of the while loop Print sum of odds and sum of evens

5 0
3 years ago
What are the six things you will learn this week on Scratch?
notka56 [123]

Answer:

1 You can learn to draw

2 You can learn to code

3 You can learn to make a thumbnail

4 You can learn how to follow yourself

5 You can learn  to remix your own projects

6 You can learn how to make a featured project you've never shared

Explanation:

8 0
3 years ago
What is the school wifi password trying to do my class work in school on different devices.
lara31 [8.8K]
This cant be answered unless you name your school and someone goes to your school
4 0
3 years ago
Which of the following is NOT an argument used to determine how a shot is fired from an A. object the shot itself being instanti
Firdavs [7]
C. The color of the shot...
7 0
3 years ago
Select the correct answer.
IrinaK [193]
The answer is the letter (D)
4 0
3 years ago
Other questions:
  • Constructors ________. initialize instance variables when overloaded, can have identical argument lists when overloaded, are sel
    11·1 answer
  • The ____ is a single user, nonportable computer designed to perform engineering, cad, and software development work.
    9·1 answer
  • Element will you include to present numerical data on the slide
    13·1 answer
  • What is the difference between C and C++. If I know C, will it be hard to lean C++?
    15·1 answer
  • Is downloading like installing?
    13·1 answer
  • Which of the following is an example of the rewards &amp; consequences characteristic of an organization?
    10·2 answers
  • When Google created its China-based search engine www..cn, they did not foresee eventually abandoning it because of censorship i
    12·1 answer
  • Write your question here (Keep it clear and simple to get the best answer)
    13·2 answers
  • Any computer expert to help me answer this question.. am giving brainliest
    13·1 answer
  • Write the steps involving coping and pasting a file in a folder​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!