Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This content is controlled by your instructor, and is not zyBooks content. Direct questions or concerns about this content to your instructor. If you have

image text in transcribed

This content is controlled by your instructor, and is not zyBooks content. Direct questions or concerns about this content to your instructor. If you have any technical issues with the zyLab submission system, use the "Trouble with lab?" button at the bottom of the lab. Introduction This lab consists of more practice with flow control. You can either use if or switch statements, either would be appropriate. Let's Sell Some Apartments ApartmentSales.java You've been hired to automate the Summerdale Sales Office's apartment price estimation system. It will need to: Ask the user to choose: -1 for park view -2 for golf course view -3 for lake view Park view apartments are $150k, apartments with gold course views are $170k, and apartments with the lake views are $210k. If the user enters an invalid code, set the price to 0. It should also ask the user to specify if they want a: -1 garage -2 parking space but only if the view selection is valid. Add $5k to the price of any apartment with a garage. If the parking value is invalid, display an appropriate massage and assume that the price for a apartment with no garage. Sample expected output for a park view with a parking space: Please select a view: Park Golf Course Lake Please select a parking option: Garage Space Your choice: Park view with a parking space Estimated price: $150000

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions