Question: Java First, launch NetBeans and close any previous projects that may be open (at the top menu go to File ==> Close All Projects). Then

Java

First, launch NetBeans and close any previous projects that may be open (at the top menu go to File ==> Close All Projects).

Then create a new Java application called "Mogul" (without the quotation marks) that will compute the profitability of a real estate investment over a 1-year period.

Request the following values from the user at the command line:

Cost of the property (assume that it is in dollars)

The inflation rate (e.g., 0.05 for an inflation rate of 5%)

Property appreciation rate (e.g., 0.10 for an appreciation rate of 10%)

Your program should output: "Your investment's net profit is $X." Where $X is the net profit.

Net profit for one year is calculated as: Net profit = (Value of property * Rate of appreciation) - (Value of property * Rate of inflation).

package mogul;

import java.util.Scanner;

public class Mogul {

public static void main(String[] args) { System.out.println("Enter the property value"); Scanner scanner= new Scanner (System.in); double propertyCost=scanner.nextDouble(); double inflationRate=0.05; double apperciationRate=0.10; double netProfit; netProfit = (propertyCost * apperciationRate) - (propertyCost * inflationRate); }

i dont know what to do next

Help

Please and thank you

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!