Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Write an application for a construction company to handle a costumer's order to build a new home. Use separate ButtonGroups to allow the customer to select one of four modells, the number of...

1 answer below »
Write an application for a construction company to handle a costumer's order to build a new home. Use separate ButtonGroups to allow the customer to select one of four modells, the number of bedrooms, and a garage type. Assume that the modells are the Aspen, $10,000; the Bryttany, $120,000; the Colonial $180,000; or the Dartmoor, $250,000; Assume that any model can have two, three or four bedrooms and that each bedroom adds $10500 to the base price. Assume that the garage type can be zero-, one-,two-, or three car, and that each car adds $7,775 to the price. Save the file as JMyNewHome.java. Exercise 4. Thanks George
Answered 109 days After May 18, 2022

Solution

Aditi answered on Sep 05 2022
75 Votes
Solution
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class NewHome extends JFrame implements ItemListene
{
int newHome1 = 100000;
int newHome2 = 120000;
int newHome3 = 180000;
int newHome4 = 250000;
JCheckBox homeBox1 = new JCheckBox("Aspen $" + newHome1,true);
JCheckBox homeBox2 = new JCheckBox("Brittany $" + newHome2,false);
JCheckBox homeBox3 = new JCheckBox("Colonial $" + newHome3,false);
JCheckBox homeBox4 = new JCheckBox("Dartmoor $" + newHome4,false);
JLabel homeBuildersLabel = new JLabel("Home Builders...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here