Calculate Shipping Cost
Uppgift
Swipe to start coding
- Create a shipping cost calculator. The initial shipping cost is set at 10% of the product's price.
- If the product's weight exceeds 25 pounds, an additional $2.25 is added to the shipping cost.
- 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.
- Calculate and display the final shipping cost for the product.
Lösning
solution.cpp
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 4
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Awesome!
Completion rate improved to 7.69
Calculate Shipping Cost
Svep för att visa menyn
Uppgift
Swipe to start coding
- Create a shipping cost calculator. The initial shipping cost is set at 10% of the product's price.
- If the product's weight exceeds 25 pounds, an additional $2.25 is added to the shipping cost.
- 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.
- Calculate and display the final shipping cost for the product.
Lösning
solution.cpp
Var allt tydligt?
Tack för dina kommentarer!
Awesome!
Completion rate improved to 7.69Avsnitt 2. Kapitel 4
single