import java.util.*;
public class Local {
public static void main(Strings[] args){
Scanner reader;
String address, typepay, credit, cash;
int space,localcost, totalinstallation, months, paint=100;
double monthlycost, interest, painting, finalcost;
public void initialize(){
reader=new Scanner(System.in);
System.out.println("Type your address and construction company");
address=reader.nextLine();
System.out.println("What's the space of your local?");
space=reader.nextInt();
System.out.println("What's the cost of your local?");
localcost=reader.nextInt();
System.out.println("Choose a form of payment. Credit or Cash");
typepay=reader.nextLine();
System.out.println("How many months are you willing to pay?");
months=reader.nextInt();
}
public void calculate(){
totalinstallation=(space*localcost) + 2000;
}
public void credits(){
if(typepay==credit) {
monthlycost=(localcost/months)*(1.15);
} else if (typepay==cash) {
monthlycost=localcost;
}
}
public void calculateinterest(){
if(typepay==credit){
interest=localcost*(1.15);
} else if (typepay==cash) {
interest=localcost;
}
}
public void costpaint(){
paintingpaint*space)*(1.15)) + 2000;
}
public void calculatefinal(){
finalcost=interest + totalinstallation + painting;
}
public void print(){
System.out.println("Your address is " + address);
System.out.println("The space of your local is " + space);
System.out.println("The cost of your local is " + localcost);
System.out.println("The cost of your local with installations is " + totalinstallation);
System.out.println("You chose as way of payment: " + typepay);
System.out.println("Your monthly cost is: " + monthlycost);
System.out.println("Your cost with interest is: " + interest);
System.out.println("The service of the paint will cost you: " + painting + " including the workforce");
System.out.println("The final cost of your local is: " + finalcost);
}
public static void main(String [] args) {
Local local1;
local1=new Local();
local1.initialize();
local1.calculate();
local1.credits();
local1.calculateinterest();
local1.costpaint();
local1.calculatefinal();
local1.print();
}
}