Answer:
See explaination
Step-by-step explanation:
balloon.h
#ifndef BALLOON_H
#define BALLOON_H
enum Color {red, orange, yellow, green, blue, indigo, violet};
#endif
main.cpp
#include <iostream>
#include <string>
#include <vector>
#include "balloon.h"
using namespace std;
int main( )
{
vector<Color> colors;
Color color;
string input;
while(true){
cout<<"What color do you want to add? ";
cin>>input;
if(input=="end"){
break;
}else if(input=="red"){
color = red;
colors.push_back(color);
}else if(input=="orange"){
color = orange;
colors.push_back(color);
}else if(input=="yellow"){
color = yellow;
colors.push_back(color);
}else if(input=="green"){
color = green;
colors.push_back(color);
}else if(input=="blue"){
color = blue;
colors.push_back(color);
}else if(input=="indigo"){
color = indigo;
colors.push_back(color);
}else if(input=="violet"){
color = violet;
colors.push_back(color);
}
}
for(int i=0;i<colors.size();i++){
cout<<colors[i]<<endl;
}
return 0;
}