# Calculate Money Paid to Each Worker

A carpenter is paid a contract fee of \$2000.00 for 3 days work. He hires 3 workers who work for the 3 days at \$75.00 a day: calculate and print the amount of money paid to each worker; the total paid to all workers and the amount the carpenter is left with.

#### avinash

• Apr 21st, 2016

paid to each worker - \$235 ; the total payment is \$705 ; and left - \$1295

#### mssodhi

• May 19th, 2016

\$75/day. (3 days * \$75) = \$225. (\$225 * 3 workers) = \$675. \$2000 - \$675 = \$1325 left for the carpenter

#### asd

• May 17th, 2017

Public class Test4 {
public static void main(String[] args) {

double contract;
String days;
int worker;
double dailypaid;
double Total;
double profit;

@SuppressWarnings("resource")
Scanner sc = new Scanner(System.in);

System.out.println("Enter contract amount: ");
contract = sc.nextDouble();

System.out.println("Enter how many days work will run: ");
days=sc.next();

System.out.println("How many person needed for work: ");
worker = sc.nextInt();

System.out.println("Enter the daily wage has to paid to worker: ");
dailypaid = sc.nextDouble();

Total = worker * dailypaid;

System.out.println("Total amount paid to worker are: " + Total );

profit=Total - contract;

System.out.println("Remaining Profit to Carpenter= "+ profit);

}
}

```Codepublic class Test4 {

public static void main(String[] args) {

double contract;
String days;
int worker;
double dailypaid;
double Total;
double profit;

@SuppressWarnings("resource")
Scanner sc = new Scanner(System.in);

System.out.println("Enter contract amount: ");
contract = sc.nextDouble();

System.out.println("Enter how many days work will run: ");
days=sc.next();

System.out.println("How many person needed for work: ");
worker = sc.nextInt();

System.out.println("Enter the daily wage has to paid to worker: ");
dailypaid = sc.nextDouble();

Total = worker * dailypaid;

System.out.println("Total amount paid to worker are: " + Total );

profit=Total - contract;

System.out.println("Remaining Profit to Carpenter= "+ profit);

}

}```