Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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++
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions

Question

Solve. x+3 + 7x x 23 x+34

Answered: 1 week ago