#include<iostream>
using namespace std;
void carPackage();
bool shellPackage();
bool partsProduce();
bool performanceText();
bool surfaceDesign();
int main()
{
	carPackage();
}
void carPackage()
{
     if(shellPackage())
		 cout<<"carPackage OK!"<<endl;
	 else
		 cout<<"carPackage error"<<endl;
}
bool shellPackage()
{
	if(partsProduce())
	{		
                cout<<"shellPackage OK"<<endl;
		return true;
	}
	else
	{
		cout<<"shellPackage error"<<endl;
	    return false;
	}
}
bool partsProduce()
{
	if(performanceText() && surfaceDesign())
	{	
		cout<<"partsProduce OK"<<endl;
		return true;
	}
	else
	{
		cout<<"partsProduce error"<<endl;
	    return false;
	}
}
bool performanceText()
{
	cout<<"If you want a \"OK\" '\n'Please input 1,or input any char"<<endl;
	char b;
	cin>>b;
	if(b!='1')
	{
		cout<<"performanceText error"<<endl;
		return false;
	}
	else
	{
		cout<<"performanceText OK"<<endl;
	    return true;
	}
}
bool surfaceDesign()
{
	cout<<"surfaceDesign OK"<<endl;
	return true;
}

