Why is this not outputting anything?
#include <iostream> using namespace std; string getName() { string name, surname; cout<<"Please enter your first name....."; cin>>name; cout<<"Please enter your last name....."; cin>>surname; return name+' '+surname; } float getHours(string theName, float theRate) { float grossPay, nettPay; int hours, totalHours=0; cout<<"Please enter number of hours worked for Monday....."; cin>>hours; totalHours+=hours; cout<<"Please enter number of hours worked for Tuesday....."; cin>>hours; totalHours+=hours; cout<<"Please enter number of hours worked for Wednesday....."; cin>>hours; totalHours+=hours; cout<<"Please enter number of hours worked for Thursday....."; cin>>hours; totalHours+=hours; cout<<"Please enter number of hours worked for Friday....."; cin>>hours; totalHours+=hours; grossPay=theRate*totalHours; if(totalHours<40) nettPay=grossPay-(grossPay*0.10); else if(totalHours>40) nettPay=grossPay+(grossPay*0.10); else nettPay=grossPay; return nettPay; } int main() { string fullName; float pay; fullName=getName(); pay=getHours(fullName, 80.00); cout.setf(ios::fixed); cout.precision(2); cout<<"Employee "<<fullName<<" is paid : R"<<pay<<endl; return 0; }