#include<iostream>
using namespace std;
int main(){
float post,time, rate, total_price;
cout<<"\n Please enter the weight of the courier \n"<<endl;
cin>>post;
cout<<"\n The weight of the courier is: \n"<<post<<endl;
cout<<"\n Please enter the total time taken to deliver the courier: \n"<<endl;
cin>>time;
if(post>50){
rate=time*95;
total_price=rate+rate*8.5/100 + rate*5/100;
cout<<"\n The rate of the courier will be: \n"<<total_price<<endl;
}else{
cout<<"\n Rate of the courier will be: 80Rs. \n"<<endl;
total_price=80+80*8.5/100 +80*5/100 ;
cout<<"\n After including the insurance and priority, total charge \n"<<total_price<<endl;
}
return 0;
}
Comments
Leave a comment