Question: public class Homework1_Q2 { public static void main(String[] args) { //Do not modify the following line of code NumberFormat currencyFormatter = NumberFormat.getCurrencyInstance(Locale.US); //Declare the variables

 public class Homework1_Q2 { public static void main(String[] args) { //Do

public class Homework1_Q2 { public static void main(String[] args) { //Do not modify the following line of code NumberFormat currencyFormatter = NumberFormat.getCurrencyInstance(Locale.US); //Declare the variables used (e.g. availableFund) in the block comment below (add declarations between the following two single-comment dashed lines) //------------------------------------------------------ //------------------------------------------------------ //Remove the block comment when you are ready to test the variables you have declared /* availableFunds = 21030.25; //money available feasibility = true; //possibility of starting the project numMonths = 12; /umber of months monthlyFixedCost = 225.5; //dollars per month costPerUnit = 3.75; //dollars per unit produced numUnits = 400; /umber of units per month - not fractional units allowed investmentName = "Tall Oaks"; companyName = "Woodworks"; /ame of the company qualityOfProduct= 'A'; // A represnts high quality //The following code outputs the variable values to help verify your code is working. There is nothing that needs to be changed in the next 5 lines. totalCost = numMonths * (numUnits*costPerUnit +monthlyFixedCost); System.out.println("Available funds for " + companyName + ": "+ currencyFormatter.format((availableFunds))); System.out.println("Total cost for the " +investmentName + " investment is " +currencyFormatter.format(totalCost) + "."); System.out.println("The company posses enough funds for the project: " + feasibility); System.out.println("The quality of products: " + qualityOfProduct); */ } }

public class Homework1_Q2 { public static void main(String[] args) { //Do not modify the following line of code NumberFormat currencyFormatter = NumberFormat.getCurrency Instance(Locale.us); //Declare the variables used (e.g. availableFund) in the block comment below (add declarations between the following two single-comment dashed lines) //---- //Remove the block comment when you are ready to test the variables you have declared availableFunds = 21030.25; //money available feasibility = true; //possibility of starting the project numMonths = 12; /umber of months monthlyFixedCost = 225.5; //dollars per month costPerUnit = 3.75; //dollars per unit produced numunits = 400; /umber of units per month - not fractional units allowed investmentName = "Tall Oaks"; company Name = "Woodworks"; /ame of the company qualityOfProduct= 'A'; // A represnts high quality //The following code outputs the variable values to help verify your code is working. There is nothing that needs to be changed in the next 5 lines. totalCost = numMonths * (numUnits costPerUnit +monthlyFixed Cost); System.out.println("Available funds or " + company Name + ": "+ currencyFormatter.format((available Funds) System.out.println("Total cost for the " +investmentName + " investment is " +currency Formatter.format(totalCost) + "."); System.out.println("The company posses enough funds for the project: " + feasibility); System.out.println("The quality of products: " + qualityOfProduct)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!