SHARE
SPREAD
HELP

The Tradition of Sharing

Help your friends and juniors by posting answers to the questions that you know. Also post questions that are not available.


To start with, Sr2Jr’s first step is to reduce the expenses related to education. To achieve this goal Sr2Jr organized the textbook’s question and answers. Sr2Jr is community based and need your support to fill the question and answers. The question and answers posted will be available free of cost to all.

 

#
Authors:
Barbara Dolye
Chapter:
Programming Based On Events
Exercise:
Programming Exercises
Question:9 | ISBN:9781285096261 | Edition: 4

Question

Create aWindows application for purchasing floor covering. Allow the length
and width (feet and inches) of a room to be entered. Be sure to include program
statements that will keep your program from crashing if they enter nonnumeric
characters for the room dimensions. Have a control that displays
different types along with the prices of floor covering. Using the tab control,
provide selections such as Hardwood, Carpet, and Laminate. On each tab allow
the user to select a type and price. Include, for example, options like Oak,
Maple, Walnut, and Cherry Hardwood floors with prices such as $34.95 per
square yard for Oak and $41.95 per square yard for Cherry. After the users enter
their room dimensions and selects the floor covering and price, display the total
cost to cover the room. Include an option to clear selections. Place both the
type of floor covering and the price in a single control, such as a ComboBox
and use string manipulation techniques to strip the price out of the string.

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Sorry the answer is not available at the moment…

If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.

Spread the 'tradition of sharing'.