Program Body
#include <iostream>
#include <string>
using namespace std;
class goku{
private:
string a,an;
string b,d;
public:
void input(){
string in;
cout<<" GOKU's transformation hub"<<endl;
cout<<endl;
cout<<"Loop will run two times."<<endl;
cout<<"do you wanna see goku's transformation and details so enter 'show'"<<endl;
cout<<"or you wanna create your own transformation so enter 'create'"<<endl;
cin>>in;
an=in;
cout<<"put 'as' in create section"<<endl;
string ssj;
cin>>ssj;
b=ssj;
}
void transformm(){
for(int i=0;i<=1;i++){
if(an=="show"){
if(b=="ssj1"){
a="100K";
d="super power";
cout<<"goku's form now is "<<b<<endl<<"goku's power level now is "<<a<<endl;
cout<<"goku's special ability now is "<<d;
}
if(b=="ssj2"){
a="10M";
d="instant kamehameha";
cout<<"goku's form now is "<<b<<endl<<"goku's power level now is "<<a<<endl;
cout<<"goku's special ability now is "<<d;
}
if(b=="ssj3"){
a="2.5B";
d="dragon's wrath";
cout<<"goku's form now is "<<b<<endl<<"goku's power level now is "<<a<<endl;
cout<<"goku's special ability now is "<<d;
}
if(b=="ssj4"){
a="100B";
d="(Ozaro+super saiyan) dragon's ultimate wrath";
cout<<"goku's form now is "<<b<<endl<<"goku's power level now is "<<a<<endl;
cout<<"goku's special ability now is "<<d;
}
if(b=="ssg"){
a="100T-200T";
d="universe destruction + god KI";
cout<<"goku's form now is "<<b<<endl<<"goku's power level now is "<<a<<endl;
cout<<"goku's special ability now is "<<d;
}
if(b=="ssgss"){
a="uncontable lols";
d="god KI ultimate control and super strength";
cout<<"goku's form now is "<<b<<endl<<"goku's power level now is "<<a<<endl;
cout<<"goku's special ability now is "<<d;
}
if(b=="SsbKioken"){
a="uncountable x2";
d="super time skip";
cout<<"goku's form now is "<<b<<endl<<"goku's power level now is "<<a<<endl;
cout<<"goku's special ability now is "<<d;
}
if(b=="UI"){
a="uspecified/unkown";
d="Infinite speed and master of movement";
cout<<"goku's form now is Ultra Instinct"<<endl<<"goku's power level now is "<<a<<endl;
cout<<"goku's special ability now is "<<d;
}
}else if(an=="create"){
string m,l,n;
cout<<"enter name of transformation (without space,use '-' for spacing)"<<endl;
cin>>n;
cout<<"what could be the power level of goku at time in "<<n<<endl;
cin>>m;
cout<<"what special ability goku has in "<<n<<endl;
cin>>l;
a=m;
d=l;
cout<<"goku's form now is "<<n<<endl<<"goku's power level now is "<<a<<endl;
cout<<"goku's special ability now is "<<d;
}
}
}
};
int main(){
goku t;
t.input();
t.transformm();
}
Working
this program has two parts
- part 1 it allows you to see the power level and other features of that particular form
- second part allows you to create your vary own forms of goku and name it as well.