urgent User-employee interface code

a code for number of users/passengers and uber drivers for a company: assume the number to be 10 for bothe drivers and passengers. the code should contain the number of downloads of uber apps in a day, number of use.
A code for number of users/passengers and uber drivers for a company: assume the number to be 10 for bothe drivers and passengers. the code should contain the number of downloads of uber apps in a day, number of use.

Can you post your full assignment? I don't understand what you mean.
As a programmer, your task is to design a program to enable an Uber company to obtain information on registered accounts both(both passengers and drivers), number of downloads, number of usage per day. Design an efficient and user friendly software using c++. Provide comprehensive flow chart to support your program design....hellpppp
#include <iostream>
#include <cmath>
using namespace std;

int main(){
int x, y, z,l,m,n;
cout<<"Driver 1 kindly accept booking: "<<endl;
cin>>x;
cout<<"Driver 2 kindly accept Booking: "<<endl;
cin>>y;
cout<<"Driver 3 kindly accept booking: "<<endl;
cin>>z;

// assume number of uber users and dormant downloads
x= 3;
l=0;
y=4;
z=2;
z= x + y; //number of actively registered drivers and users

m= z + l; //number_of_app_downloads

n= m-l; //number of use

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

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

return 0;
}










didnt work
closed account (48T7M4Gy)
http://www.cplusplus.com/forum/general/202880/
Topic archived. No new replies allowed.