Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instructions Summary Samantha and Vikas are looking to buy a house in a new development. After looking at various models, the three models they like

Instructions

Summary

Samantha and Vikas are looking to buy a house in a new development. After looking at various models, the three models they like are colonial, split-entry, and single-story.

The builder gave them the base price and the finished area in square feet of the three models. They want to know the model(s) with the least price per square foot.

Instructions

Write a program that accepts as input the base price and the finished area in square feet of the three models.

The program outputs the model(s) with the least price per square foot in the following format:

If the colonial model is the least price, output:

  • The price per square foot of the colonial model is the least.

If the split-entry model is the least price, output:

  • The price per square foot of the split-entry model is the least.

If the single-story model is the least price, output:

  • The price per square foot of the single-story model is the least.

If the colonial and split-entry models tie for the least price, output:

  • The price per square foot of the colonial and split-entry models tie for the least.

If the colonial and single-story models tie for the least price, output:

  • The price per square foot of the colonial and single-story models tie for the least.

If the single-story and split-entry models tie for the least price, output:

  • The price per square foot of the single-story and split-entry models tie for the least.

Finally, if all three tie for the least price, output:

  • The price per square foot all three models are the same.

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

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions