Computes the cost to ship a package based on the input

Assignment Help Other Subject
Reference no: EM13283216

Write a program that asks the user for information and then computes the cost to ship a package based on the input.

The program first asks the user for a shipping address.

It then asks the user for a delivery type: parcel or overnight.

Then the user is prompted for the dimensions of the package: length, width, height.

The program then asks for the weight of the package.

Based on this information, compute the cost to ship the package based on the following tables:

Volume Parcel Overnight

---------------------------------

>4 cuft Not accepted

>3 cuft $19.99 $59.99

>2 cuft $9.99 $29.99

>1 cuft $6.99 $19.99

>0 cuft $5.99 $15.99

Weight Additional Charge

-----------------------------

>10 pounds Not accepted

>5 pounds $8.49

>2 poinds $1.99

>0 pounds $0.00

Add 6% sales tax.

Display the Shipping address, the box dimensions, volume, and weight ( to 2 decimal places ), type of shipment selected (parcel/overnight), and finally the cost, sales tax, and total (cost + sales tax). All dollar amouts must be formatted correctly, i.e. $4.50 not 4.5.

Input validation: Do not accept values <= 0 for any input.

Reference no: EM13283216

Questions Cloud

Barriers to integration that required a strategic change : What were the barriers to integration that required a strategic change for Baylor Health Care? What were the six principles of high performance for IT? How did organizing around core competencies facilitate delivery of IT for Baylor Health Care?
Christ better within their community and culture : Provide 2 or 3 specific and practical steps Christians can take to help the church to reflect Christ better within their community/culture. Why do you think this will change perception of the church?
Nursing research is used to study a dilemma : Nursing research is used to study a dilemma or aproblem in nursing.Examine a problem you have seen in nursing.why should it be studied?justify your rationale.
Descriptive epidemiology : Give your opinion on the most important characteristic and/or behavior, modifiable and un-modifiable, which makes a person more or less likely to develop a disease
Computes the cost to ship a package based on the input : Write a program that asks the user for information and then computes the cost to ship a package based on the input.
Drive video clip from learning activity : Review the RSA Animate - Drive video clip from Learning Activity. What two ideas does the narrator reveal about the assumptions that "A whole set of unbelievably interesting studies" were challenged?
Major tensions-alliance with a biotechnology firm : What do you think are the possible major tensions that exist when a pharmaceutical firm forms an alliance with a biotechnology firm? How would you try to address those tensions?
What are the pros and cons of contracting : What are the pros and cons of contracting with the local company to custom-produce your product line? Since you do not plan to be in the store during all the hours it is open, what specific decision-making authority would you delegate to the two assi..
Appraisal and estimate a well-supported value opinion : You complete an appraisal and estimate a well-supported value opinion. However the client calls to inform you the zoning of the property may change. The client now wants to know how the value would be affected.

Reviews

Write a Review

Other Subject Questions & Answers

  Diet and fitness level of the average american

What actions would you suggest to improve the diet and fitness level of the average American?

  Determining presidential powers

Presidential power and influence are often thought to be greater in the foreign policy arena than in the domestic policy arena. Why? Besides the power to pass legislation, what other powers does congress have to influence the policy-making process..

  What each view imply about child development

At same time, corporal punishment has increasingly come to be regarded as a form of child abuse also is penalized by today's child protection laws. What each view imply about child development also how parents may most effectively foster positive d..

  Well-researched and informed report

For the purpose of this assignment, you will have to recap your previous assignment and then to provide a well-researched and informed report to the CEO.

  Weaknesses of governmental-private social work

Discuss the strengths and weaknesses of both governmental and private social work organizations

  Explanation for chronic diseases of non-infectious origin

Was it John Cassel that argued that the agent, host, and environment triad provided an adequate explanation for chronic diseases of non-infectious origin

  What population is served at the agency

What Services are provided by the agency? What Population is served at the agency? Is there a Requirements for agency interns?

  About unemployment during the new deal

What did Grover Cleveland believe that the government’s economic policy should be?  Why did Langston Hughes’s white patron withdraw her support of him?  What was true about unemployment during the New Deal?

  Describing the fiduciary duties of an attorney

Eugene H. Emmick hired L.S. Hamm, an attorney, to draft his will. The will named Robert Lucas and others (Lucas) as beneficiaries.

  Identfy sex or gender as a requirement for legal marriage

You are going to address the Virginia State Legislature conceringng your support for legislation to not identfy sex/gender as a requirement for legal marriage. What techniques, and why, would you use in attemping to get the legislature to consider..

  Observable artifacts-espoused values-google''s culture

What are the observable artifacts, espoused values, and basic assumptions associated with Google's culture? Explain.

  How mature is the industry you work in or hope to enter

How mature is the industry you work in or hope to enter? How do you know? Concerning your industry (if mature) or a mature industry of your choosing, which of the strategies discussed so far in assigned chapters might you apply and why?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd