Answer:
//Program is written in C++ language
// Comments explains difficult lines
#include<iostream>
using namespace std;
int main (){
//Variable declaration
double price, shipping;
cout<<"Item Price: ";
cin>>price;
//Test price for shipping fee
shipping = 0; //Initialise shipping fee to 0 (free)
if(price <100)
{
shipping = 0.2 * price;
}
//The above if statement tests if item price is less than 100.
//If yes, then the shipping fee is calculated as 20% of the item price
//Else, (if item price is at least 100), shipping fee is 0, which means free
if(shipping != 0)
{
cout<<"Shipping fee is "<<shipping;
}
else
{
cout<<"Item will be shipped for free";
}
return 0;
}