The Freemont Automobile Factory has discovered that the longer a worker has been on the job, the more parts the worker can produce. Write an application that computes and displays a worker’s...


The Freemont Automobile Factory has discovered that the longer a worker has been on the job, the more parts the worker can produce. Write an application that computes and displays a worker’s anticipated output each month for 24 months assuming the worker starts by producing 4,000 parts and increases production by 6 percent each month. Also display the month in which production exceeds 7,000 parts (when the worker deserves a raise!) as follows:The month in which production exceeds 7000.0 is month X.


This is what i have but isnt right



public class IncreasedProduction {

publicstaticvoidmain (String[] args) {

// final int month = 24;

double parts =4000.0;

double production =0.06;

double raise =7000.0;

int counter;

System.out.println("The month in which production exceeds 7000.0 is month " + month);

counter = 1;

while(counter >= parts)

{

System.out.print(counter + " ");

counter = counter + 1;


}

System.out.println();

}

}



Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here