* Problem_1
*/
package PROBLEM_1;
import java.util.Scanner;
public class Program_1 {
public static void main(String[] args){
// Create Scanner
Scanner inReader = new Scanner( System.in );
//variables
double totalSales = 0;
int numMonths = 0;
//Request month sales values until summed > 1,000,000
do{
System.out.print("Enter Month Sale Amount: ");
double monthlySale = inReader.nextDouble();
while (monthlySale <= 0){
System.out.println("Amount cannot be negative or 0. Plea
se enter positive value.");
monthlySale = inReader.nextDouble();
}
numMonths++;
totalSales = totalSales + monthlySale;
} while (totalSales < 1000000);
//Prompt with number of months needed to reach $1m
System.out.print("The Number of Months to Reach $1m in Sales is:
" + numMonths);
}// end problem
}// end project
________________________________________________________________________________
________________________________
/**Ben Clark
* Problem_2
*/
package PROBLEM_2;
import java.util.Scanner;
public class Program_2 {
public static void main(String[] args) {
// Create Scanner
Scanner input = new Scanner( System.in );
// Enter loan amount
System.out.print("Enter Loan Amount: ");
double loanAmount = input.nextDouble();
while (loanAmount <= 0){
}
}// End Problem
} // End Project