Write an application for the summerdale condo sales

Assignment Help Basic Computer Science
Reference no: EM13900269

Write an application for the Summerdale Condo Sales office; the program determines the price of a condominium. Ask the user to choose 1 for park view, 2 for golf course view, or 3 for lake view. The output is the name of the chosen view as well as the price of the condo. Park view condos are $150,000, condos with golf course views are $170,000, and condos with lake views are $210,000. If the user enters an invalid code, set the price to 0. Save the file as CondoSales.java.
Adda prompt to the CondoSales application to ask the user to specify a

  1. garage or a
  2. parking space, but only if the condo view selection is valid.

Add $5,000 to the price of any condo with a garage. If the parking value is invalid, display an appropriate message and assume that the price is for a condo with no garage. Save the file as CondoSales2.java.

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");
}
}

Reference no: EM13900269

Questions Cloud

Explain a file management system : Explain a file management system, and list and describe five file organizations.
What kind of crimes are women incarcerated for? : What kind of crimes are women incarcerated for?
How would you respond to gwens last comment : Why is Ashley concerned about the inventory and accounts receivable turnover ratios and Gwen's responses to them? What action may Ashley need to take? How would you respond to Gwen's last comment?
Publication at a professional website by substantially : publication at a professional website by substantially revising
Write an application for the summerdale condo sales : Write an application for the Summerdale Condo Sales office; the program determines the price of a condominium. Ask the user to choose 1 for park view, 2 for golf course view, or 3 for lake view. The output is the name of the chosen view as well as th..
Summary of the human resurce article into one paper : Find any Human Resurce Articles and summary the article into one paper. be carful about the plagiarism. HR Recruitment- http://catalog.flatworldknowledge.com/bookhub/reader/28091?e=portolesedias_1.0-ch04
Powerpoint slides for jive software optional : Powerpoint slides for Jive software. optional (handouts and sources)
What will be the optimal portfolia for agents : How would you model explicitly these two factors' impact on equities A and B? What assumptions will be required to assure general applicability of the standard APT framework to this model?
Identify characteristic of companies with accounts turnover : Categorize each of the preceding companies as to whether its turnover ratio is above or below 15. Based upon (2), identify a characteristic of companies with accounts receivable turnover ratios above 15.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Using the division remainder method

Using the Division Remainder Method, give a concrete example of a hash function for a storage array with 10 storage locations addressed 0 through 9. Call your hash function h, define your function mathematically as h(x) = x mod 10

  The multiplexer and expected simulation report

Write a Verilog testbench for the multiplexer and expected Simulation Report.

  Describe database elements primary key foreign key metadata

Describe a database and its various elements. Define Primary Key, foreign key, and metadata.

  Discuss its usage in programming

What is a ? Discuss its usage in programming

  What kinds of cable will work to make this connection

What kinds of cable will work to make this connection?

  Set all paragraph text to the hexadecimal color

Set all paragraph text for paragraphs nested inside div tags to the hex color #CC0000. (What color will they turn if they've already been told in step #1 to be #00E5EE? See the Hint!)

  Discuss measures that could be taken to reduce the risks

Discuss measures that could be taken to reduce the risks

  Explain various kinds of storage devices

Explain what storage devices are, comprising the explanation of storage media. Write examples of at least three various kinds of storage devices.

  What are online communities

What are online communities. How do online communities differ from traditional communities

  A detailed discussion of current technology

Literature Review & State of the Art - A detailed discussion of current technology and practices and how the problems or issues arise, are solved and/or how the technology is utilized.

  Consider a market with two firms and a market

Consider a market with two firms and a market inverse demand:p= 90 - q , where q is the total market outputFirms have different marginal and fixed costs:Firm 1: c1 = 50 and FC1 =0Firm 2: c2 = 0 and FC2 = 50Assume the two firms choose prices simultane..

  Knowledge management systems important-modern organization

Describe in scholarly detail why knowledge management systems would be so important to a modern organization where the organization would initiate.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd