The cost to ship a package is a flat fee of 75 cents plus 25 cents...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The cost to ship a package is a flat fee of 75 cents plus 25 cents per pound. 1. Declare a const named CENTS_PER_POUND and initialize with 25. 2. Get the shipping weight from user input storing the weight into shipWeightPounds. 3. Using FLAT_FEE_CENTS and CENTS_PER_POUND constants, assign ship Cost Cents w cost of shipping a package weighing shipWeightPounds. Learn how our autograder works 544144 3202290 qx3zqy7 1 #include <iostream> 2 using namespace std; 3 4 int main() { 5 6 7 8 9 10 11 12 13 14 15 16 17 } int shipWeight Pounds; int shipCost Cents = 0; const int FLAT_FEE_CENTS = 75; V* Your solution goes here */ cout << "Weight (lb): " << shipWeight Pounds; cout << ", Flat fee(cents); " << FLAT_FEE_CENTS; cout << "Cents per lb: " << CENTS_PER_POUND << endl; cout << "Shipping cost (cents): " << shipCostCents << endl; return 0; The cost to ship a package is a flat fee of 75 cents plus 25 cents per pound. 1. Declare a const named CENTS_PER_POUND and initialize with 25. 2. Get the shipping weight from user input storing the weight into shipWeightPounds. 3. Using FLAT_FEE_CENTS and CENTS_PER_POUND constants, assign ship Cost Cents w cost of shipping a package weighing shipWeightPounds. Learn how our autograder works 544144 3202290 qx3zqy7 1 #include <iostream> 2 using namespace std; 3 4 int main() { 5 6 7 8 9 10 11 12 13 14 15 16 17 } int shipWeight Pounds; int shipCost Cents = 0; const int FLAT_FEE_CENTS = 75; V* Your solution goes here */ cout << "Weight (lb): " << shipWeight Pounds; cout << ", Flat fee(cents); " << FLAT_FEE_CENTS; cout << "Cents per lb: " << CENTS_PER_POUND << endl; cout << "Shipping cost (cents): " << shipCostCents << endl; return 0;
Expert Answer:
Answer rating: 100% (QA)
It appears that the question is a programming exercise asking to complete a C program to calculate t... View the full answer
Related Book For
Managing Supply Chain and Operations An Integrative Approach
ISBN: 978-0132832403
1st edition
Authors: Thomas Foster, Scott E. Sampson, Cynthia Wallin, Scott W Webb
Posted Date:
Students also viewed these programming questions
-
A multipurpose utility tool grips a cotter pin at A while 15-lb forces are applied to the handles (Figure P4.27). (a) Complete the free body diagram of the combined upper jaw and lower handle...
-
Let y = tan(3x+6). Find the differential dy when x = 5 and dx = 0.1 Find the differential dy when x = 5 and da = 0.2
-
In the following normal form game: A B C a 12; -7 10:2 0,9 B 10:1 2:4 8:5 8 4:5 8:14 16: -3 (a) (3 points) Find the pure strategy best responses. You may mark the game table but you will loose a...
-
Elmira, Inc had $20,000,000 of bonds outstanding on Dec 31, 2018. The ten year bonds were issued on Jan 1, 2012 for $21,000,000. Elmira can call the bonds at 102% any time after Jan 1, 2018. At the...
-
Jasper Fruits Corporation wholesales peaches and oranges. Barbara Jasper is working with the company's accountant to prepare next year's budget. Ms. Jasper estimates that sales will increase 5...
-
Repeat Problem 25 with the capacitor C S removed and compare results. Problem 25 Determine Z i , Z o , and V o for the network of Fig. 8.76 if V i = 20 mV. Fig. 8.76 +20 V 2 k2 82 o Vo Ipss = 12 mA...
-
When a party may be compelled to defend an action in a particular court?
-
Steve Reese is a well-known interior designer in Fort Worth, Texas. He wants to start his own business and convinces Rob O'Donnell, a local merchant, to contribute the capital to form a partnership....
-
A delegate to the 1837 Pennsylvania convention remarked that the political community was based on white persons. In this age of expanding political participation, analyze how and why some segments of...
-
What are the implications of the statement made by the head of operations that Today, apparel is produced just about everywhere on Earth, and we have basically run out of new low cost places to...
-
Goldfish acquired a 25% interest in Starfish on 1 August 2019 for R22 000. On 1 August 2019, the share capital of Starfish amounted to R80 000. Since 1 August 2019, Goldfish has participated in...
-
You are a legal representative who unsuccessfully represented your client at an administrative hearing. When you receive the decision, you read through the reasons and find that the adjudicator...
-
Cookie Company accumulates the following data concerning a mixed cost, using miles as the activity level. - The unit variable costs using the high-low method for this mixed cost. (Round answer to 2...
-
1. Earlier last month David agreed to sell to Saul 40 bullocks from his farm for $160 per bullock, and David and Saul arranged that they would together select the bullocks, but this did not happen....
-
What does Anibal Quijano's "Coloniality and Modernity/Rationality" tell us about state violence in Latin America and the Southern Cone in recent years? What parts of Quijano's perspective shed light...
-
Global Marine obtained a charter from the state in January that authorized 1,000,000 shares of common stock, $5 par value. During the first year, the company earned $390,000 of net income and...
-
Implementation of Queue using linked list.
-
In Exercises discuss the continuity of each function. f(x) -3 1 x - 4 y 3 2 -1 -2 -3+ 3 X
-
A lumber company makes plywood for commercial construction. A key quality measure is the thickness of the plywood. Every two hours, five pieces of plywood (n = 5) are selected, and the thicknesses...
-
Discuss how a supplier scorecard should be developed to provide supplier feedback.
-
A retail store must decide how many Mothers Day cards to have in stock for this years Mothers Day. Cards must be ordered months in advance, and there is only an opportunity to order one time. The...
-
Evaluate Mephisto Products current approach to sales. Why has it been relatively successful to date?
-
What problems can you anticipate if Tony Bullins goes ahead and changes the sales team and selling philosophy?
-
How does the role of selling tend to differ between: (a) industrial products (B2B)? (b) consumer products (B2C)?
Study smarter with the SolutionInn App