Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | Apr 2017 |
Last Sign in: | 10 Weeks Ago, 6 Days Ago |
Questions Answered: | 4870 |
Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
I am not sure how to do part b. I have completed part a. Can someone help
Â
Â
Â
import java.util.Scanner;Â
public class CondoSalesÂ
{Â
public static void main(String args [])Â
{Â
Scanner scan = new Scanner(System.in);Â
System.out.println("Press 1 for Parkview, 2 for Golf Course View, or 3 for Lake View");Â
int choice = scan.nextInt();Â
if(choice == 1)Â
System.out.println("Park View: $150,000");Â
else if(choice == 2)Â
System.out.println("Golf Course View: $170,000");Â
else if(choice == 3)Â
System.out.println("Lake View: $210,000");Â
elseÂ
System.out.println("Invalid Code: $0");Â
}Â
}