## Epic Systems Interview Question for System Administrators

Comment hidden because of low score. Click to expand.
0
of 0 vote

What do you exactly mean?

Comment hidden because of low score. Click to expand.
0
of 0 vote

Epic has worst interview questions ever...

Comment hidden because of low score. Click to expand.
0
of 0 vote

#include<iostream>
#include<stdlib.h>
#include<sstream>
#include<string.h>
using namespace std;

void main()
{
char Cate;

float total_sallary,basic,incre;
cout<<"select the catagory A,B or C"<<endl;
cin>>Cate;
//cout<<"Cate"<<Cate;

cout<<"Enter the basic sallary for the employ"<<endl;
cin>>basic;
//cout<<"Basic:"<<basic;

cout<<"Select the increment:"<<endl;
cin>>incre;
//cout<<"incre"<<incre;

switch(Cate)
{
case 'A':
{
total_sallary = (basic+(basic*(3*incre/100)));
if(total_sallary>=50000)
cout<<"Sallary grater than 50K"<<endl;
else
cout<<"Total Sallary is:"<<total_sallary<<endl;
}break;

case 'a':
{
total_sallary=(basic+(basic*((3*incre)/100)));
if(total_sallary>=50000)
cout<<"Sallary grater than 50K"<<endl;
else
cout<<"Total Sallary is:"<<total_sallary<<endl;
}break;
case 'B':
{
total_sallary=basic+(basic*((2*incre)/100));
if(total_sallary>=50000)
cout<<"Sallary grater than 50K"<<endl;
else
cout<<"Total Sallary is:"<<total_sallary<<endl;
}break;
case 'b':
{
total_sallary=basic+(basic*((2*incre)/100));
if(total_sallary>=50000)
cout<<"Sallary grater than 50K"<<endl;
else
cout<<"Total Sallary is:"<<total_sallary<<endl;
}break;
case 'C':
{
total_sallary=basic+(basic*(incre/100));
if(total_sallary>=50000)
cout<<"Sallary grater than 50K"<<endl;
else
cout<<"Total Sallary is:"<<total_sallary<<endl;
}break;
case 'c':
{
total_sallary=basic+(basic*(incre/100));
if(total_sallary>=50000)
cout<<"Sallary grater than 50K"<<endl;
else
cout<<"Total Sallary is:"<<total_sallary<<endl;
}
}

system("PAUSE");
}

Comment hidden because of low score. Click to expand.
0

you forgot to check whether the increment is greater than 1. Just one more if condition and it will work fine :)

Comment hidden because of low score. Click to expand.
0

why 'A' and 'a' he mentioned only A. If u really want to u can can use toUpperCase() to convert category to upper case then pass it to switch case

Comment hidden because of low score. Click to expand.
0
of 0 vote

please let me know if i was wrong in above code

Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

### Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

### Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.