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

  Countercurrent contactor is most effiecent

If you have to separate an ideal mixture of 3 components how many ideal separators will you use? Prove that a countercurrent contactor is most effiecent than a concurrent one

  Fed implement monetary policy

How does the Fed implement monetary policy to manage the economy and is the Fed currently using Expansionary Monetary Policy? Why? Why Not?

  How does the media positively

The media, and Hollywood in particular, is one avenue in which the general public becomes familiar with the role of nurses. How does the media positively or negatively influence the public’s image of nursing?

  Standing on the earth''s equator

If you were standing on the Earth's equator, which of the following points in the sky would pass through your zenith at some time during one full day (24 hours)?

  Give suggestion to students regarding career

A fellow student says, "So, I am not good writer. But I have other places to put my study time. I am management major. Provide this student your best suggestion, as well as the reasoning behind it.

  Byproduct of adding chlorine to the water is thms

The byproduct of adding chlorine to the water is THMs (trihalomethanes). Some studies have shown that THMs might cause miscarriage and other health effects.

  Research in the community

Explain what you have learned about yourself in the context of completing this assignment

  Why did the leading scholars of the sixteenth century

Why did the leading scholars of the sixteenth century make the ideas of Zhu Xi the unshakable center of Confucian thought?

  Compared to the population of the state

Compared to the population of the state, which of the following groups is over-represented in the Texas legislature?

  Global political economy-washington consensus

Do you agree with the statement that the 'Washington Consensus' led to the transformation of the Bretton Woods institutions into 'Third World debt collecting agencies'?

  Tryptophan codons within the leader peptide of trp operon

Suppose the two tryptophan codons within the leader peptide of the trp operon were changed from tryptophan to asparagine. Predict if attenuation (premature termination of transcription) of the trp operon will occur if bacteria are grown on media cont..

  Courts and the litigation process

Courts and the Litigation Process. Given a dispute, explain the litigation process, starting with the selection of a court with proper jurisdiction, and moving through the basic steps leading to a resolution of the litigation.

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