Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
102 views
3 pages
Find Key
Uploaded by
arun
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save Find key(19) For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
102 views
3 pages
Find Key
Uploaded by
arun
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save Find key(19) For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save Find key(19) For Later
You are on page 1
/ 3
Search
Fullscreen
Gow tc UN Sey PAT Titel Mt a a A ea eae at ee @Mercer | meittl 1. Section 1 ~ oO 1 Question 1 D1 Revisit Later JAVA 6 How to Attempt? ? 8 Find Key: 9 You are provided with 3 numbers: inputt, input2 and input3. 10 Each of these are four digit numbers within the range >=1000 and <=9999. 1 ie. 32 1000 <= input1 <= 9999 a 1000 <= input2 <= 9999 AS 1000 <= input3 <= 9999 aa 7 You are expected to find the Key using the below formula - 1s a9 Key = (Sum of Largest digits of all the 3 numbers) + (Sum of Smallest digits of all the 3 20 numbers) For e.g. if inputt = 3521, input2=2452, input3=1352, then Key = (5+5+5) + 2 (14241) = 19 22 23 24 Assuming that the 3 numbers are passed to the given function, Complete the function to Ee find and return the Key. 26 27 28 29 30 31 D Use = © Need Help? Cont© Test Time: 01:13:04 tempted: 2/2 Compiler: Java - 1.7 9D // Read only region start class UserMainCode { public int findkey(int inputt, int input2,int input3){ // Read only region end // write code here int n1=9,n2=9,n3=9,) },M2=0,m3=0;, nput2+"" ,dn3=input3+""; ' int sum=n14n2+n3+m1+m24m3; ’ return sum; L 2 7 aie oa 3 static int min(String s){ 4 int c=95 5 for(int ics. length() ;i++){ 6 if (coInteger .parseInt(s.charat(i)+"")){ 7 | ceInteger.parsernt(s.charat(i)+""); 8 | 3 9 } rr return ct Use Custom Input ® {33 +1 (800) 265-6038 cz +91 60471-90902 Powere1 2 > ic ~ Attempted: 2/2 yorens 16 mi=max(dn1) ; W m2=max(dn2) 5 18 m3=max(dn3) 5 19 int sum=n1+n2+n3+m1+m2+4m3 ; 20 return sum; 2 22 } 23 static int min(String s){ 2a | int c=95 25 for(int i=0;i
Integer.parseInt(s.charat(i)+"")){ 27 | | c=Integer.parseInt(s.charAt(i)+""); 28 | y 29 ir 30 | return Cc; 31 32 static int max(String s){ 33 | int c=0; 3a for(int i-0;i
You might also like
All Milestone MCQ PDF
PDF
0% (1)
All Milestone MCQ PDF
75 pages
Sample - Core Java Developer Assessment - 1635359098862
PDF
0% (1)
Sample - Core Java Developer Assessment - 1635359098862
10 pages
Ug
PDF
100% (1)
Ug
3 pages
Java PRP Programs
PDF
No ratings yet
Java PRP Programs
12 pages
Assignment 2 - Flow Conrtrol Statement
PDF
0% (1)
Assignment 2 - Flow Conrtrol Statement
8 pages
Core Java
PDF
50% (2)
Core Java
42 pages
Find Key
PDF
100% (1)
Find Key
2 pages
Logical Building 03 09 1 PDF
PDF
17% (6)
Logical Building 03 09 1 PDF
12 pages
RSF Program in Java
PDF
61% (23)
RSF Program in Java
2 pages
207 Jva Programs
PDF
0% (1)
207 Jva Programs
116 pages
LogicBuildingHour Plan Mile1
PDF
0% (3)
LogicBuildingHour Plan Mile1
4 pages
Junit
PDF
33% (3)
Junit
1 page
Java Solved Programs PDF
PDF
100% (5)
Java Solved Programs PDF
59 pages
Krishna Singh Assignments
PDF
No ratings yet
Krishna Singh Assignments
121 pages
Wipro Training Day 2 Assignments
PDF
No ratings yet
Wipro Training Day 2 Assignments
22 pages
Milestone 2
PDF
No ratings yet
Milestone 2
6 pages
Vehicles Detection and Counting Based On Internet of Things Technology and Video Processing Techniques
PDF
No ratings yet
Vehicles Detection and Counting Based On Internet of Things Technology and Video Processing Techniques
9 pages
Wipro Solutions
PDF
100% (3)
Wipro Solutions
14 pages
Wipro Practice Qs
PDF
100% (2)
Wipro Practice Qs
65 pages
Double Tail Comparator
PDF
No ratings yet
Double Tail Comparator
32 pages
File 2
PDF
No ratings yet
File 2
5 pages
Assignment 2
PDF
No ratings yet
Assignment 2
12 pages
Assessment Milestone
PDF
100% (1)
Assessment Milestone
37 pages
TCS NQT Online Test Pattern: Section Order Section # Qs Duration (Minutes)
PDF
No ratings yet
TCS NQT Online Test Pattern: Section Order Section # Qs Duration (Minutes)
34 pages
Milestones BITS Final
PDF
No ratings yet
Milestones BITS Final
87 pages
WEEK - 9 - CODING - Attempt Review Hareesh
PDF
No ratings yet
WEEK - 9 - CODING - Attempt Review Hareesh
7 pages
ML2 All MCQ's
PDF
No ratings yet
ML2 All MCQ's
22 pages
Hexaware 6th FEB 2022
PDF
No ratings yet
Hexaware 6th FEB 2022
12 pages
Answers
PDF
No ratings yet
Answers
6 pages
Nambiar Number
PDF
No ratings yet
Nambiar Number
2 pages
LabVIEW Data Types & Conversions Between These Types
PDF
100% (4)
LabVIEW Data Types & Conversions Between These Types
23 pages
2CE007 IR May 2014
PDF
No ratings yet
2CE007 IR May 2014
4 pages
Accenture QNS 23-08-2023
PDF
No ratings yet
Accenture QNS 23-08-2023
9 pages
WEEK - 08 - CODING - Attempt Review Hareesh
PDF
100% (1)
WEEK - 08 - CODING - Attempt Review Hareesh
7 pages
Milestone 1
PDF
100% (2)
Milestone 1
52 pages
SQL
PDF
No ratings yet
SQL
18 pages
Java Aptitude Inreview Questions N Answers
PDF
100% (1)
Java Aptitude Inreview Questions N Answers
125 pages
Practical - 3: Aim:-Implement Monoalphabetic Cipher Encryption-Decryption. Introduction
PDF
No ratings yet
Practical - 3: Aim:-Implement Monoalphabetic Cipher Encryption-Decryption. Introduction
3 pages
Maximum of Unstable-Minimum of Unstable
PDF
No ratings yet
Maximum of Unstable-Minimum of Unstable
3 pages
What Is A Program
PDF
No ratings yet
What Is A Program
27 pages
WIPRO LOGIC BUILDING JAVA PROGRAMS Most Important (PART-II)
PDF
100% (2)
WIPRO LOGIC BUILDING JAVA PROGRAMS Most Important (PART-II)
2 pages
50 Most Important Programs
PDF
No ratings yet
50 Most Important Programs
54 pages
1.5 Empirical Analysis
PDF
No ratings yet
1.5 Empirical Analysis
8 pages
SAP Model Question Paper: SAP Reasoning Test Questions
PDF
No ratings yet
SAP Model Question Paper: SAP Reasoning Test Questions
28 pages
Problem: Logic Pyramid: Sno. Input Output
PDF
No ratings yet
Problem: Logic Pyramid: Sno. Input Output
28 pages
Prime Encoder
PDF
100% (1)
Prime Encoder
1 page
DICE ID APP FAQs
PDF
No ratings yet
DICE ID APP FAQs
5 pages
Virtusa Paper Pattern
PDF
No ratings yet
Virtusa Paper Pattern
19 pages
PRP Ques
PDF
No ratings yet
PRP Ques
14 pages
AI Experiment No 1 Study of Prolog
PDF
No ratings yet
AI Experiment No 1 Study of Prolog
7 pages
Infosys Test Set 1
PDF
No ratings yet
Infosys Test Set 1
31 pages
Milestone 1 Questions With Answer
PDF
No ratings yet
Milestone 1 Questions With Answer
33 pages
BVA
PDF
No ratings yet
BVA
4 pages
Java Questions
PDF
No ratings yet
Java Questions
14 pages
CinKod Technologies - JD PDF
PDF
No ratings yet
CinKod Technologies - JD PDF
2 pages
Talentnext - 2021 - Learningphase - Mile1 - Mcqs Wipro: Nipoorva Yadav
PDF
100% (1)
Talentnext - 2021 - Learningphase - Mile1 - Mcqs Wipro: Nipoorva Yadav
3 pages
Logic Building Questions
PDF
No ratings yet
Logic Building Questions
6 pages
Wipro Training Program
PDF
No ratings yet
Wipro Training Program
1 page
Collection & Maps Question 1
PDF
No ratings yet
Collection & Maps Question 1
12 pages
Computer Science 11th Records Sanjay
PDF
No ratings yet
Computer Science 11th Records Sanjay
20 pages