Cost Ship Package Flat Fee 75 Cents Plus 25 Cents Per Pound 1 Declare Const Named Centsper Q43893755
C++

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 shipCostCents with the cost of shipping a package weighing shipWeightPounds. 1 #include <iostream> 2 using namespace std; Nm7ONO 4 int main() { int shipWeightPounds; int shipCostCents = 0; const int FLAT_FEE_CENTS = 75; /* Your solution goes here */ 10 11 cout << “Weight(lb): ” « shipWeightPounds; cout << “, Flat fee(cents): ” « FLAT_FEE_CENTS; cout << “, Cents per lb: ” « CENTS_PER_POUND << endl; cout << “Shipping cost(cents): ” « shipCostCents << endl; A6 return 0; 17 } Show 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 shipCostCents with the cost of shipping a package weighing shipWeightPounds. 1 #include 2 using namespace std; Nm7ONO 4 int main() { int shipWeightPounds; int shipCostCents = 0; const int FLAT_FEE_CENTS = 75; /* Your solution goes here */ 10 11 cout
Expert Answer
Answer to 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 a…
OR