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.

Showing Answers 1 - 3 of 3 Answers

avinash

  • Apr 21st, 2016
 

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

  Was this answer useful?  Yes

mssodhi

  • May 19th, 2016
 

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

  Was this answer useful?  Yes

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);

}
}

Code
  1. public class Test4 {

  2.  

  3.         public static void main(String[] args) {

  4.                

  5.                

  6.                 double contract;

  7.                 String days;

  8.                 int worker;

  9.             double dailypaid;

  10.                 double Total;

  11.                 double profit;

  12.                

  13.  

  14.                 @SuppressWarnings("resource")

  15.                 Scanner sc = new Scanner(System.in);

  16.                

  17.                 System.out.println("Enter contract amount: ");

  18.                 contract = sc.nextDouble();

  19.                

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

  21.                 days=sc.next();

  22.                

  23.                

  24.                 System.out.println("How many person needed for work: ");

  25.                 worker = sc.nextInt();

  26.                

  27.                 System.out.println("Enter the daily wage has to paid to worker: ");

  28.                 dailypaid = sc.nextDouble();

  29.                

  30.                 Total = worker * dailypaid;

  31.                

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

  33.                

  34.                 profit=Total - contract;

  35.                

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

  37.                

  38.         }

  39.  

  40. }

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions