#include <iostream>
#include <cstdlib>
using namespace std;

int main()
{
	const short int MAX_BRIEFGEWICHT=1000;
	float gewicht=0, porto=0;
	cout<<"PORTORECHNER"<<endl<<endl;
	cout<<"Bitte Briefgewicht in g eingeben: ";
	cin>>gewicht;
	
	//Ausgaben
	if(gewicht<=20)
	{
		porto=1.0;

	}
	else if(gewicht<=50)
	{
		porto=1.7;
	}
	else if(gewicht<=100)
	{
		porto=2.4;
	}
	else if(gewicht<=250)
	{
		porto=3.2;
	}
	else if(gewicht<=500)
	{
		porto=4.0;
	}
	else if(gewicht<=1000)
	{
		porto=4.8;
	}
	//Paket?
	if(gewicht>MAX_BRIEFGEWICHT) cout<<"Das wird ein Paket"<<endl; 
	else cout<<"Das Porto betraegt "<<porto<<"EUR."<<endl;
}

