• Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • English APP
  • login
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • Walkins
    • Corporate Job Exam
    • Government Job Exam
    • Entrance Exam
  • Training
    • Internship
  • Placement Questions

Frequently Asked Interview Questions and Answers

Company

  • 3i-Infotech 345
  • Accenture 548
  • ADITI 81
  • Athenahealth 72
  • CADENCE 37
  • Capgemini 519
  • CMC 49
  • Cognizant 29
  • CSC 480
  • CTS 1340
  • Dell 49
  • Elitmus 44
  • GENPACT 516
  • Google 55
  • HCL 217
  • Hexaware 92
  • Huawei 81
  • IBM 1714
  • IGate 169
  • Infosys 2050
  • L&T 299
  • Microsoft 61
  • Miscellaneous 204
  • Oracle 74
  • Other 95
  • Patni 199
  • Sapient 44
  • Sasken 31
  • Self 38
  • Syntel 530
  • TCS 9109
  • Tech Mahindra 500
  • Wipro 1182

Exam

  • ACIO 119
  • AIEEE 334
  • AMCAT 2636
  • Assessment 108
  • Bank 22
  • CAT 988
  • CMAT 82
  • Cocubes 39
  • Elitmus 2952
  • Exam 39
  • Gate 846
  • GMAT 107
  • Gmate 29
  • GRE 469
  • IIT-JEE 471
  • ITC 28
  • Maths Olympiad 205
  • MBA 3481
  • MCA 32
  • Other 159
  • Others 25
  • R-SAT 111
  • Self 68

Government Jobs Exams

  • Bank Exam 478
  • CDS 57
  • CTET 21
  • IBPS 1258
  • IES EC 44
  • KVPY 364
  • NDA 481
  • NTSE 36
  • REVENUE OFFICE 53
  • RRB 1029
  • SSC 1294
  • UPSC 441

Interview

  • HR Interview 426
  • HR Round 41

Maths Puzzle

  • A website 299
  • Book 23779
  • Campus 250
  • CMAT 49
  • Exam 86152
  • General 399
  • Interview 141
  • M4maths 295
  • Maths 226
  • Orkut 27
  • Other 72
  • Others 1356
  • Reasoning 101
  • Self 3157

Programming and Technical

  • Android 118
  • ASP.NET 60
  • C 459
  • C++ 448
  • DATA STRUCTURE 66
  • DBMS 77
  • ELECTRONICS 39
  • Java 261
  • OOPs Concepts 117
  • Operating Syst 103
  • RDBMS 109
  • UNIX 70
Keep an EYE (0)Interview Experience (261)
Solved Question (6040) UnSolved Question (153944)
Pages: 11
Advertisements

(#M40165443) JAVA QUESTION Circles and distance Keep an EYE Keep an eye puzzle Keep an eye puzzle

Circles and Distances
Problem Description
Task is to calculate the straight line distance between the two objects moving in a circular path. They may move at different velocities. The distance has to be calculated after N seconds.

The figure and commentary below it, explains the problem in detail.

com.tcs.cv.automata.ei.middleware.DocxToHtmlConverter@491cde5b:image1.png

We have two point objects B and C at rest on a straight line at a distance r1 and r2 units from a point A. At time t=0 seconds, the objects start moving in a circular path with A at the center with velocity v1 and v2 degrees per second.

Given inputs v1, v2, r1 and r2, calculate the distance between the B and C after N seconds.

Distance should be printed up to an accuracy of 2 places after the decimal point. Use Rounding Half-up semantics.

Input Format
First line contains velocity of object B in degrees per second (v1)

Second line contains distance of object B from A (r1)

Third line contains velocity of object C in degrees per second (v2)

Fourth line contains distance of object C from A (r2)

Fifth line contains time in seconds after which the distance between B and C, is to be measured (N)

Output
The distance between B and C, N seconds after they are set in motion

Constraints

v1, v2, r1, r2 > 0 and all are integer values.

r2 > r1

0 < n <= 100

The objects move in anticlockwise direction

v1, v2 <=360

r2 <= 100


Explanation
Example 1

Input

90

5

270

10

1

Output

15.00

Explanation

After 1 second, the object at B would cover 90 degrees and the object at C would cover 270 degrees. Both the objects would be vertically opposite to each other and would lie in a straight line.

So the distance between them would be equal to the sum of their distance from the origin A=5+10= 15

Asked In Java joshika (7 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (2)   (0) Submit Your Solution
Keep an EYE (0)Interview Experience (261)
Solved Question (6040) UnSolved Question (153944)
Pages: 11
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

no image
Dimple
India
Punjab
Time: 00:01:33
Points
19

Maths Quotes

Mathematics has 25%formulas, 25%proofs and apply 25%thinking and 25%efforts. In real life situations proofs are nothing but already existed stories(we know the solutions from all experienced people). formulas are nothing but goals. we have so many goals b

K. Mounika

"IF YOU DON'T KNOW MATHS , IT MEAN YOU ARE FAR AWAY FROM LIFE."

Ayush

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 5 years ago

Thanks m4 maths for helping to get placed in several companies.
I must recommend this website for placement preparations.

yash mittal 5 years ago

Now enjoy Offline Access of latest Question.

Get M4maths app to avail expert's solution and latest selected questions.

Download m4maths app now

  • 2533K+Registerd user
  • 1774K+Engineers
  • 759K+MBA Asprirant
  • 3K+Enginnering College
  • 250+Company Exam
  • 150K+Interview Questions
  • Site Links
  • Home
  • Result
  • Today's Puzzle
  • Discussion Board
  • Maths Tricks
  • Advertise with us
  • Contact Us
  • Useful Info
  • Maths Quotes
  • Previous Puzzles
  • Prize
  • Privacy Policy
  • Disclaimer and Copyright
  • Terms and Conditions
  • Sitemap
  • Placement papers
  • TCS Placement Paper
  • HCL Placement Paper
  • INFOSYS Placement Paper
  • IBM Placement Paper
  • SYNTEL Placement Paper
  • TECHNICAL Interview
  • HR Interview
All rights are reserved to @m4maths.com