Please Help correct this

I need to run a program that enables a company to obtain information of number of registered drivers and users, number of app downloads and number of usage of apps per day. you can make assumptions on variables like number of drivers etc where necessary: a user friendly program. My code is not running....

am a novice: any kind assistance would be highly appreciated. MY CODE Not GIVING DESIRED RESULTS

#include <iostream>
using namespace std;

int main(){
int a, b, c,d,e,f;
cout<<"booking1: "<<endl;
cin>>a;
cout<<"Booking2: "<<endl;
cin>>b;
cout<<"booking3: "<<endl;
cin>>c;

// assume number of uber users and dormant downloads
a= 3;
d=0;
b=4;
c=2;
c= a + b;

e= c + l; //number_of_app_downloads

f= e-l; //number of use

switch(n) {
case 1:
if (f>=c)
{
cout<<"total number of registered accounts is : "<< c <<endl;}
break;
case 2:
if (f>=e)
{
cout<<"total number of downloads is: "<< e <<endl;}
break;
case 3:
if (f>=f)
{
cout<<"number of usage"<< f <<endl;}
break;

default:
cout<<"Please re-book"<<endl;
break;}

return 0;
}
Please don't post the same problem multiple times.
http://www.cplusplus.com/forum/general/202943/

Last edited on
Topic archived. No new replies allowed.