Epic Systems Interview Question for Developer Program Engineers


Country: United States




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

package interviewQuestions;

import java.io.BufferedReader;

import java.io.InputStreamReader;

public class subStringexm {

	
	public static void operation(float hits, float chances,float games_left){
		
		float hits1,chances1;
		
		hits1=hits;
		chances1=chances;
		float rate1=(hits1)/chances1;
		
		System.out.println(+hits+" "+chances+""+games_left);
		System.out.println(+hits1+" "+chances1);
		System.out.println("Rate of hitting"+rate1);
		
		
		float futurehits,future_chances;
		float rate=(float) 0.45;
		
		future_chances=games_left;
		futurehits=future_chances * rate;
	//	rate= (futurehits)/future_chances;
		
		
		System.out.println("Future hits "+futurehits);
		//System.out.println("Future rate"+rate);
		
	}
	
	public static void main(String[] args) {
		
		try{
		BufferedReader number_hits= new BufferedReader(new InputStreamReader(System.in));
		System.out.println("Enter Number of hits");
		float hits=(Float.parseFloat(number_hits.readLine()));
		
		
		
		BufferedReader number_chances= new BufferedReader(new InputStreamReader(System.in));
		System.out.println("Enter no of chances");
		float chances= Float.parseFloat(number_chances.readLine());
		
		
		BufferedReader number_of_games_left= new BufferedReader(new InputStreamReader(System.in));
		System.out.println("Enter no of games left");
		float games_left= Float.parseFloat(number_of_games_left.readLine());
		
		
		operation( hits, chances,games_left);
		
		  
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}
	}

}

- Srikanth dukuntla June 30, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

package interviewQuestions;

import java.io.BufferedReader;

import java.io.InputStreamReader;

public class subStringexm {


public static void operation(float hits, float chances,float games_left){

float hits1,chances1;

hits1=hits;
chances1=chances;
float rate1=(hits1)/chances1;

System.out.println(+hits+" "+chances+""+games_left);
System.out.println(+hits1+" "+chances1);
System.out.println("Rate of hitting"+rate1);


float futurehits,future_chances;
float rate=(float) 0.45;

future_chances=games_left;
futurehits=future_chances * rate;
// rate= (futurehits)/future_chances;


System.out.println("Future hits "+futurehits);
//System.out.println("Future rate"+rate);

}

public static void main(String[] args) {

try{
BufferedReader number_hits= new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter Number of hits");
float hits=(Float.parseFloat(number_hits.readLine()));



BufferedReader number_chances= new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter no of chances");
float chances= Float.parseFloat(number_chances.readLine());


BufferedReader number_of_games_left= new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter no of games left");
float games_left= Float.parseFloat(number_of_games_left.readLine());


operation( hits, chances,games_left);


}
catch(Exception e)
{
e.printStackTrace();
}
}

}

- Srikanth dukuntla June 30, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

public static void main(String[] args) throws Exception, IOException {
		// TODO Auto-generated method stub
		int num_of_hits, num_of_chances, num_of_remaining_games, number_of_played_games;
		int num_of_future_hits, num_of_future_chances;
		System.out.println("Enter the number of hits");
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		num_of_hits = Integer.parseInt(buf.readLine());
		System.out.println("Enter the number of chances");
		BufferedReader buf2 = new BufferedReader(new InputStreamReader(System.in));
		num_of_chances = Integer.parseInt(buf2.readLine());
		System.out.println("Enter the number of remaining games");
		BufferedReader buf3 = new BufferedReader(new InputStreamReader(System.in));
		num_of_remaining_games = Integer.parseInt(buf3.readLine());
		number_of_played_games = 162 - num_of_remaining_games;
		/*
		 * (num_of_hits + num_of_future_hits)/(num_of_chances + num_of_future_chances) = 0.45
		 * 
		 * number_of_played_games = num_of_chances
		 * num_of_remaining_games = ??? num_of_future_chances
		 * 
		 * 
		  */
		num_of_future_chances = Math.round((num_of_remaining_games * num_of_chances)/number_of_played_games);
		num_of_future_hits = (int) Math.round (((num_of_chances + num_of_future_chances) * 0.45) - num_of_hits);
		System.out.println("The predicted future hits to maintain hit rate of 0.45 is: "+num_of_future_hits);

}

- Anonymous July 22, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

public static void main(String[] args) throws Exception, IOException {
		// TODO Auto-generated method stub
		int num_of_hits, num_of_chances, num_of_remaining_games, number_of_played_games;
		int num_of_future_hits, num_of_future_chances;
		System.out.println("Enter the number of hits");
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		num_of_hits = Integer.parseInt(buf.readLine());
		System.out.println("Enter the number of chances");
		BufferedReader buf2 = new BufferedReader(new InputStreamReader(System.in));
		num_of_chances = Integer.parseInt(buf2.readLine());
		System.out.println("Enter the number of remaining games");
		BufferedReader buf3 = new BufferedReader(new InputStreamReader(System.in));
		num_of_remaining_games = Integer.parseInt(buf3.readLine());
		number_of_played_games = 162 - num_of_remaining_games;
		/*
		 * (num_of_hits + num_of_future_hits)/(num_of_chances + num_of_future_chances) = 0.45
		 * 
		 * number_of_played_games = num_of_chances
		 * num_of_remaining_games = ??? num_of_future_chances
		 * 
		 * 
		  */
		num_of_future_chances = Math.round((num_of_remaining_games * num_of_chances)/number_of_played_games);
		num_of_future_hits = (int) Math.round (((num_of_chances + num_of_future_chances) * 0.45) - num_of_hits);
		System.out.println("The predicted future hits to maintain hit rate of 0.45 is: "+num_of_future_hits);
	}

- Imran July 22, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Aren't u all forgetting number of chances per game , 4.5??
so, num_of_future_chances=162*4.5-num_of_chances_he_had
so futurehits=0.45*num_of_future_chances

- anamika July 24, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

so futurehits=0.45*totalchances - numberofhits

- ron August 10, 2015 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

import java.util.Scanner;

public class HitRate{
	public static void main(String [] args){
				Scanner in = new Scanner (System.in);
				System.out.println("Enter number of hits");
				int numOfHits=in.nextInt();
				System.out.println("Enter the number of chances");
				int numOfChances=in.nextInt();
				System.out.println("Enter the remaining number of games");
				int numOfGamesRemain = in.nextInt();
				int numOfFutHits=0;
				System.out.println("current hit rate: "+(double)Math.round((numOfHits*1000/numOfChances))/1000);
				System.out.println("No. of future hits required: "+Math.ceil((0.45*162*4.5)-numOfHits));
	}

}

- Anonymous September 09, 2015 | Flag Reply


Add a Comment
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.

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