see the attachments please
In the English measurement system, 1 yard equals 3 feet and 1 foot equals 12 inches. Use this
information to create an application that lets the user convert distances to and from inches, feet and
yards.
Figure 4-35 on page 265 shows an example of how the application’s form might appear. In the example,
the user enters the distance to be converted into a TextBox. A ListBox allows the user to select the units
being converted from, and another ListBox allows the user to select the units being converted to.
Note: Be sure to handle the situation where the user picks the same units from both list boxes. The
converted value will be the same as the value entered.
CS 165 01
Program Assignment 03
Chapter 04
20 Points
In the English measurement system, 1 yard equals 3 feet and 1 foot equals 12 inches. Use this
information to create an application that lets the user convert distances to and from inches, feet and
yards.
Figure 4-35 on page 265 shows an example of how the application’s form might appear. In the example,
the user enters the distance to be converted into a TextBox. A ListBox allows the user to select the units
being converted from, and another ListBox allows the user to select the units being converted to.
Note: Be sure to handle the situation where the user picks the same units from both list boxes. The
converted value will be the same as the value entered.
Add the following comments to the beginning of the program.
Name:
Your Name
Class and Section:
CS 165 01
Assignment:
Program Assignment 03
Due Date:
See above
Date Turned in:
Program Description: You write a short description of what the program will do
Programming Problems
265
Figure 4-35 shows an example of how the application’s form might appear. In the
example, the user enters the distance to be converted into a TextBox. A ListBox
allows the user to select the units being converted from, and another ListBox allows
the user to select the units being converted to
Figure 4-35 The Distance Converter form
Distance Converter
x
Enter a distance to convert
10
From
To
Inches
Inches
Fee
Yards
Yards
Converted Distance
120
Convert
Ed
6.
.
.
Note: Be sure to handle the situation where the user picks the same units from both
list boxes. The converted value will be the same as the value entered.
Book Club Points
Serendipity Booksellers has a book club that awards points to its customers based
on the number of books purchased each month. The points are awarded as follows:
If a customer purchases 0 books, he or she earns 0 points.
If a customer purchases I book, he or she earns 5 points.
If a customer purchases 2 books, he or she earns 15 points.
If a customer purchases 3 books, he or she earns 30 points.
If a customer purchases 4 or more books, he or she earns 60 points.
Create an application that lets the user enter the number of books that he or she has
purchased this month and displays the number of points awarded.
Software Sales
A software company sells a package that retails for $99. Quantity discounts are
given according to the following table:
Quantity
Discount
10-19
20%
20-49
30%
50-99
40%
100 or more
50%
Create an application that lets the user enter the number of packages purchased.
The program should then display the amount of the discount (if any) and the total
amount of the purchase after the discount.
Body Mass Index Program Enhancement
Programming Problem 6 in Chapter 3, you were asked to create an application
that calculates a person’s body mass index (BMI). Recall from that exercise that the
BMI is often used to determine whether a person is overweight or underweight for
their height. A person’s BMI is calculated with the following formula:
BMI = Weight x 703 + Height
8.
Essay Writing Service Features
Our Experience
No matter how complex your assignment is, we can find the right professional for your specific task. Achiever Papers is an essay writing company that hires only the smartest minds to help you with your projects. Our expertise allows us to provide students with high-quality academic writing, editing & proofreading services.Free Features
Free revision policy
$10Free bibliography & reference
$8Free title page
$8Free formatting
$8How Our Dissertation Writing Service Works
First, you will need to complete an order form. It's not difficult but, if anything is unclear, you may always chat with us so that we can guide you through it. On the order form, you will need to include some basic information concerning your order: subject, topic, number of pages, etc. We also encourage our clients to upload any relevant information or sources that will help.
Complete the order form
Once we have all the information and instructions that we need, we select the most suitable writer for your assignment. While everything seems to be clear, the writer, who has complete knowledge of the subject, may need clarification from you. It is at that point that you would receive a call or email from us.
Writer’s assignment
As soon as the writer has finished, it will be delivered both to the website and to your email address so that you will not miss it. If your deadline is close at hand, we will place a call to you to make sure that you receive the paper on time.
Completing the order and download