Reference no: EM131857366
Problem
A small postal system ships parcels within your state. Acceptance of parcels is subject to the following constraints:
a. Parcels are not to exceed a weight of 50 pounds.
b. Parcels are not to exceed 3 feet in length, width, or depth, and may not have a combined length and girth exceeding 6 feet. (The girth of a parcel is the circumference of the parcel around its two smallest sides; the mathematical formula is
Girth = 2 x (S1 + S2 + S3 - Largest)
where Largest is the largest of the three parcel dimensions, S1, S2, and S3.) Your program should process a transaction file containing one entry for each box mailed during the week. Each entry contains a transaction number followed by the weight of the box and its dimensions (in no particular order). The program should print the transaction number, weight, and postal charge for all accepted parcels, as well as the transaction number and weight for all rejected parcels. At the end of the report, the program must print the number of parcels processed and the number rejected.
Input Parcel post table-
weight and cost (contains 25 pairs of values). Store this table in a one-dimensional array of records. You can then determine the postal cost of each parcel by searching the Weight fields and then using the Cost field. If a parcel weight falls between weight categories in the table, your program should use the cost for the higher weight.
Transaction file-
transaction number, weight, and three dimensions for an arbitrary number of transactions. Assume that all weights are whole numbers, and that all dimensions are given to the nearest inch.
Output First line-appropriate headings.
Next N records-transaction number, whether accepted or rejected, weight, and cost.
Last line-number of parcels processed, number of parcels rejected.
How much more money do you estimate you will spend
: As a manager of a software development project, you need to give senior management a report on the status of the project.
|
How many students took the exam
: The correct answers are the first 30 characters; they are followed by an integer number that says how many students took the exam (call it N).
|
How much interest is earned on this investment
: You inherit $50,000 and decide to invest it for 40 days compounded daily at 6% annual interest.
|
Discuss the concept of the balanced scorecard
: Discuss the concept of the balanced scorecard. What are its key benefits and advantages?
|
Determine postal cost of parcel by searching weight fields
: You can then determine the postal cost of each parcel by searching the Weight fields and then using the Cost field.
|
Certificate of deposit that pays compounded interest
: Find the future value of a $18,000 Certificate of Deposit that pays compounded interest every three months at the rate of 7% per year.
|
What are the risk trade offs in your decision
: You are the manager of Strategic Sourcing at Toyota Motor Corp and have just been called by the VP of global sourcing to whom you report.
|
Calculate the future value of an investment
: Calculate the future value of an investment of $8200, after 5 months, earning 6% APR, compounded monthly, by calculate manually.
|
Compare five major search engines
: Compare five major search engines from each continent, based on their local markets, strategies, and national characteristics.
|