Computers and Technology, 19.01.2021 19:20 Jaressayf4466
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.
#include
using namespace std;
int main() {
int shipWeightPounds;
int shipCostCents = 0;
const int FLAT_FEE_CENTS = 75;
/* Your solution goes here */
cout << "Weight(lb): " << shipWeightPounds;
cout << ", Flat fee(cents): " << FLAT_FEE_CENTS;
cout << ", Cents per lb: " << CENTS_PER_POUND;
cout << ", Shipping cost(cents): " << shipCostCents << endl;
return 0;
}
Answers: 2
Computers and Technology, 22.06.2019 18:00
Determine whether the following careers would require training or college.
Answers: 1
Computers and Technology, 24.06.2019 15:30
George is working as a programming team lead. which statements correctly describe the skills that he requires?
Answers: 3
Computers and Technology, 24.06.2019 22:30
When can you access the bios setup utility?
Answers: 1
Computers and Technology, 25.06.2019 02:00
Software and services are used to conceive, plan, and execute projects in any field. these tools are excellent methods of increasing the probability of successful projects. open source linux project management mind-mapping
Answers: 2
The cost to ship a package is a flat fee of 75 cents plus 25 cents per pound.
1. Declare a const na...
Health, 02.08.2019 01:30
History, 02.08.2019 01:30
Biology, 02.08.2019 01:30
Social Studies, 02.08.2019 01:30
Health, 02.08.2019 01:30
English, 02.08.2019 01:30
Chemistry, 02.08.2019 01:30
Biology, 02.08.2019 01:30
Geography, 02.08.2019 01:30
Spanish, 02.08.2019 01:30