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

  What is the asymptotic time complexity of algorithm

Suppose an algorithm has two parts. The first part involves sorting and takes (10 nlog n) steps, where n is the input size. What is the asymptotic time complexity of the overall algorithm, in Big Theta notation?

  Components of a warehouse management system

components of a warehouse management system

  Transform the query into a query on fragments

Transform the query into a query on fragments.

  Information technology security for small business

Then write an information security white paper that can be used to market your firm's security consulting services to small businesses in the Washington, DC, area. Your white paper must:

  Prepare disaster recovery plan for organization

Prepare a Disaster Recovery (DR) Plan for following organization; Company; Widget Works Electronics, Employees; 250, Infrastructure; 1 Central Office building housing primary datacenter. 10 satellite sales branches.

  Write a class called employee that has the following fields

Finally, write an appropriate toString() method that prints the state of the object. Example: Name: Mark Jones ID Number: 39119 Department: IT Position: Programmer

  Technology aided in the evolution of instrument

Identify one musical instrument that has evolved over the centuries (e.g., the piano or guitar) so that you can enlighten us about the evolution of this instrument.

  Explaining data-tlb hit and data-cache hit

Upon a load instruction, event "data-TLB hit" followed by "data-cache hit" is the most probable to occur among four possibilities of Cartesian product.

  A direct-mapped cache with 8 two-word blocks

Based on the following sequence of word addresses generated by the processor:1, 134, 212, 1, 135, 213, 162, 161, 2, 44, 41, 221a) Given a direct-mapped cache with 8 two-word blocks that is initially empty

  Write a class that encapsulates the evolution

Write a class (and a client class to test it) that encapsulates the evolution of the sales tax rates in the 50 U.S states over the last 10 years. Your only instance variable should be a two-dimensional array of values representing the sales tax ra..

  Assignment on microsoft visio

In your Visio document, use a rectangle to diagram the name of each system and the area of business it affects. Use a triangle to indicate the challenges and business process changes. Use a rounded square to list likely future affects of the syst..

  Perform the arithmetic encoding and decoding

Perform the arithmetic encoding and decoding of the following message ABBCAB$.

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