When the price is more than 100 and the weight is more


Prompt the user to enter two values of type double: price and weight.

Decide the shipping cost based on the following rules:

When the price is more than 100 ($) and the weight is more than 10 (lbs) shipping is $20

When the price is less than or equal to 100 ($) and the weight is more than 10 (lbs) shipping is $15

When the price is more than 100 ($) and the weight is less than or equal to 10 (lbs) shipping is $10

When the price is less than or equal to 100 ($) and the weight is less than or equal to 10 (lbs) shipping is $5

Sum the price and the shipping cost and output: "Your total price is X" where X is the total price

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: When the price is more than 100 and the weight is more
Reference No:- TGS02903675

Expected delivery within 24 Hours