NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

package homework2package;
import java.util.Scanner;
public class Homework2class {

public static void main(String[] args) {
// TODO Auto-generated method stub
// Boran Kanat 150119051
Scanner input = new Scanner(System.in);

System.out.println ("Thank you dear customer for using Boran Real Estate Agency");

System.out.println ("Choose a block (A-B-C-D)");

String block = input.nextLine();
switch (block) {
case "A" :
System.out.println("(1)= 1+1 ");
System.out.println("(2)= 2+1)");
System.out.println("Which house type you prefer ? ");
int type= input.nextInt();


if (type == 1) {
System.out.println("Select storey (max 10)");
int storey= input.nextInt();
System.out.println("This house has no furnished option");
int BlockAOne=45000;
double BlockAOnestoreyvalue = 1.65;
double BlockArealstorey = BlockAOnestoreyvalue*storey/100;
double BlockAOneBase= BlockAOne+BlockArealstorey;

double KDVtypeone =BlockAOneBase/100;
double KDVtypetwo = BlockAOneBase*8/100;
if (BlockAOneBase < 100000) {
double finalpayment = BlockAOneBase+ KDVtypeone;
System.out.println("You chosen Block A, 1+1 type " );
System.out.println(storey); System.out.println("This is the floor of your house");
System.out.println("Your house is not furnished");
System.out.println(BlockAOneBase); System.out.println("This is the cost of your house without kdv");
System.out.println(finalpayment); System.out.println("This is the final cost of your house thank you for using our agency");





}
else if (BlockAOneBase >= 100000) {
double finalpayment = BlockAOneBase+KDVtypetwo;

if (type == 2) {
System.out.println("Select storey (max 10)");
int storey2= input.nextInt();
System.out.println(" this house has already been furnished by default (with additional cost");
int BlockATwo=65000;
double furniture2 = 19000;
double BlockATwostoreyvalue = 1.74;
double BlockATworealstorey = BlockATwostoreyvalue*storey2/100;
double BlockATwoBase= BlockATwo+BlockATworealstorey+furniture2;

double KDVtypeone2 =BlockATwoBase/100;
double KDVtypetwo2 = BlockATwoBase*8/100;


if (BlockATwoBase<= 100000) {
double finalpayment2 = BlockATwoBase+ KDVtypeone2;
System.out.println("You chosen Block A, 2+1 type " );
System.out.println(storey2); System.out.println("This is the floor of your house");
System.out.println("Your house has already been furnished by default (with additional cost");
System.out.println(BlockATwoBase); System.out.println("This is the cost of your house without kdv");
System.out.println(finalpayment2); System.out.println("This is the final cost of your house thank you for using our agency");

}

else if (BlockATwoBase >= 100000) {
double finalpayment2 = BlockATwoBase+ KDVtypetwo2;
break ;
     
 
what is notes.io
 

Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 14 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.