I am enclosing my code and as you can see below the Event Recorded Banner the event type will not display. I would appreciate if you could show me what my problem may be. Everything else works properly. I am stuck.
#include <iomanip>
#include <cmath>
#include "EventBooker.h"
EventBooker::EventBooker()
{
displayForm();
}
// setters
void EventBooker::setEventName(string name) {eventName = name;}
void EventBooker::setEventTime(string time) {eventTime = time;}
void EventBooker::setEventLocation(string location) {eventLocation = location;}
void EventBooker::setEventType(string type) {eventType = type;}
void EventBooker::setEventBookingFee(double fee) {eventBookingFee = fee;}
// getters
string EventBooker::getEventName() {return eventName;}
string EventBooker::getEventTime() {return eventTime;}
string EventBooker::getEventLocation() {return eventLocation;}
string EventBooker::getEventType() {return eventType;}
double EventBooker::getEventBookingFee() {return eventBookingFee;}
void EventBooker::displayForm()
{
string input;
double input1;
cout<<"===============> Hot Rod's Booking System <=============== \n\n";
cout<<" Enter the name of the event: \t";
getline(cin, input);
setEventName(input);
cout<<" Enter the time of the event: \t";
getline(cin, input);
setEventTime(input);
cout<<" Enter Location of the event: \t";
getline(cin, input);
setEventLocation(input);
cout<<" Enter the Fees of the event: \t";
cin>>input1;
setEventBookingFee(input1);
if(eventBookingFee>=1 && eventBookingFee<30)
cout<<" 10 foot jump"<<endl;
else if(eventBookingFee>=31 && eventBookingFee<40)
cout<<" 20 foot jump"<<endl;
else if(eventBookingFee>=41 && eventBookingFee<60)
cout<<" 20 foot jump with fireworks"<<endl;
else if(eventBookingFee>=61 && eventBookingFee<74)
cout<<" 30 foot jump"<<endl;
else if(eventBookingFee>=74 && eventBookingFee<100)
cout<<" 40 foot jump ofer a pool with ambulance ready"<<endl;
else if(eventBookingFee>100)
cout<<" Price range out of criteria"<<endl;
else cout<<"Error: Invalid entry. Entry out of range \n";
}
void EventBooker::displayEventInformation()
{
cout<<"\n\n\n****************************** EVENT RECORDED ****************************** \n\n";
cout<<" Event Name:\t\t"<<getEventName()<<endl;
cout<<" Event Time:\t\t"<<getEventTime()<<endl;
cout<<" Event Location:\t"<<getEventLocation()<<endl;
cout<<" Event Fees:\t\t $"<<setprecision(2)<<fixed<<getEventBookingFee()<<endl;
cout<<" Event Type:\t\t"<<getEventType()<<endl;
cout<<"\n\n\n ================================================================= \n\n";
}