Epic Systems Interview Question Software Engineer / Developers

  • epic-systems-interview-questions
    0
    of 0 votes
    2
    Answers

    you are to write a program that figures out the total cost of an airline ticket.  The base-fare is $40, tax rate is 4%, a customer is charged $10 per segment but only a maximum of 2 segments will ever be charge, and $10 per security screens but only a maximum of 3 security segments will ever be charged.  Something like that, simple linear programming.

    - oh no on July 26, 2011 Report Duplicate | Flag
    Epic Systems Software Engineer / Developer Algorithm



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

#include<iostream.h>
#include<conio.h>
void main()
{
int bfare=40, trate, tcost,seg, sscr;
trate=(4/100)*40;
tcost=bfare+trate;
cout<<"Segment";
cin>>seg;
cout<<"Security Screens";
cin>>sscr;
if(seg<=2)
tcost=tcost+10;
if(sscr<=3)
tcost=tcost+10;
cout<<"Total cost is:"<<tcost;
}

- Shivi on November 21, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

there should be a check on the min value entered for both seg and sscr. Also, value 10 should be multiplied by seg/sscr in both lines as $10 is rate for one unit.

- Testasp on November 29, 2011 | Flag Reply


Add a Comment
Name:

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

Books

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

Learn More

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.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More