Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Calculate Shipping Cost | Conditional Control Flow Practice
C++ Conditional Statements

Swipe to show menu

book
Calculate Shipping Cost

Task

Swipe to start coding

  1. Create a shipping cost calculator. The initial shipping cost is set at 10% of the product's price.
  2. If the product's weight exceeds 25 pounds, an additional $2.25 is added to the shipping cost.
  3. For products weighing over 25 pounds, you have to choose between three delivery options from the slowest to the fastest. Each of these options add an extra cost of $0.3, $0.5, and $1.75, respectively.
  4. Calculate and display the final shipping cost for the product.

Solution

cpp

solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 4
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

Awesome!

Completion rate improved to 7.69

book
Calculate Shipping Cost

Task

Swipe to start coding

  1. Create a shipping cost calculator. The initial shipping cost is set at 10% of the product's price.
  2. If the product's weight exceeds 25 pounds, an additional $2.25 is added to the shipping cost.
  3. For products weighing over 25 pounds, you have to choose between three delivery options from the slowest to the fastest. Each of these options add an extra cost of $0.3, $0.5, and $1.75, respectively.
  4. Calculate and display the final shipping cost for the product.

Solution

cpp

solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

close

Awesome!

Completion rate improved to 7.69

Swipe to show menu

some-alt