Question: introduction for computing c++ O False CHALLENGE ACTIVITY 2011 2.9.1: Using constants in expressions. The cost to ship a package is a flat fee of

introduction for computing c++
 introduction for computing c++ O False CHALLENGE ACTIVITY 2011 2.9.1: Using
constants in expressions. The cost to ship a package is a flat

O False CHALLENGE ACTIVITY 2011 2.9.1: Using constants in expressions. 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 ship WeightPounds. 3. Using FLAT_FEE_CENTS and CENTS_PER_POUND constants, assign shipCostCents with the cost of shipping a package weighing shipWeightPounds. 1 #include . Ex abs() computes the absolute value of an integer CHALLENGE ACTIVITY 2.10.1: Coordinate geometry. Determine the distance between point (x1, y1) and point (x2.y2), and assign the result to pointsDistance. The calculations Distance = (x2 - x1)+ (y2 - y1)? Ex: For points (1.0, 2.0) and (1.0, 5.0), pointsDistance is 3.0 1 #include 3 using namespace std; lilia 5 int main() { double x1; double yi; double x2: double y2; double xDist; double yDist; double pointsDistance; RENA xDist 0.0 yDist 0.0 point Distance - 0.0; cin >> X1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!