{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

HouseHold - public static double rent(double r double...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
public class HouseHold { public static void main(String[] args) { int residence = 45; double income = 6000.00; rent(residence); rent(income); } public static int rent(int r) { int monthlyIncome = r * 200; System.out.println("The monthly income is " + monthlyIncome);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } public static double rent(double r) { double monthlyMorgage = r/2; System.out.println("The monthly morgage is " + monthlyMorgage); }}...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online