I need to write a Java program for a Lion Hunt. The program should calculate the number of hours it will take a group of hunters to find the lion in the worst-case scenario. The lion has "b" Hiding spots. there are "s" number of groups and "g" number of hunters, who need to be in a group to travel safely where 1 ≤ g ≤ s  it takes a group 1 hour to search any of the lions hiding spots. The input consists of a single line containing three integers "b", "s", and "g" where 2≤b≤1000 is the number of hiding spots in the jungle. 1≤ e. Input should be 3 numbers (The number of hiding spots, the number of groups, and the number of people per group). Sample input/output is shown in the attached photo

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

I need to write a Java program for a Lion Hunt. The program should calculate the number of hours it will take a group of hunters to find the lion in the worst-case scenario. The lion has "b" Hiding spots. there are "s" number of groups and "g" number of hunters, who need to be in a group to travel safely where 1 ≤ g ≤ s  it takes a group 1 hour to search any of the lions hiding spots. The input consists of a single line containing three integers "b", "s", and "g" where 2≤b≤1000 is the number of hiding spots in the jungle. 1≤ e. Input should be 3 numbers (The number of hiding spots, the number of groups, and the number of people per group). Sample input/output is shown in the attached photo

Sample Input 1
521
Sample Output 1
2
Sample Input 2
10 5 2
Sample Output 2
Transcribed Image Text:Sample Input 1 521 Sample Output 1 2 Sample Input 2 10 5 2 Sample Output 2
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY