Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Fast freight shipping company charges the rates listed in the following table: Weight of the Package ( in kgs ) Shipping Rate per Mile

The Fast freight shipping company charges the rates listed in the following table:
Weight of the Package (in kgs) Shipping Rate per Mile
2kg or less $0.01
Over 2kg, but not more than 6kg $0.015
over 6kg, but not more than 10kg $0.02
over 10kg, but not more than 20kg $0.025
Create an application using visual studio that allows the user to enter the weight of the package and the distance it is to be shipped, and then displays the charges in a label.
*Input validation: do not accept values of 0 or less for the weight of the package. Do not accept weights of more than 20 kg (this is the maximum weight the company will ship). Do not accept distances of less than 10 miles or more than 3000 miles. these are the company's minimum and maximum shipping distances. Suggestion: use the || operator to combine the two range conditions that check for package weights that are too small or too large. Use exception handling to check for the non-numeric data.

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

More Books

Students also viewed these Databases questions

Question

2. How were various roles filled?

Answered: 1 week ago