## Problem with -negative output

Hey everybody, I am writing a java program that asks the user for a ship name that they are on, the amount of people on it, the amount of people that will fit into life boats and the amount of lifeboats on the ship.

I have it nearly complete but after testing it I am getting a negative output.

For example here is the output:

______________________________________________________

Person-per-LifeBoat Calculation Program

______________________________________________________

How many people are on board the Princeton?800
What is the maximum number of people that can be carried in one lifeboat? 100
How many lifeboats are avaiable on the ship? 9

The results are...

A minimum of 8 lifeboats are required to rescue everybody on board the Princeton.
900 people (112.5%) would be rescued.
-100 people (-12.5) would be likely to drown.

I am lost on how the program calculates 900 people @ 112.5%. I know the 100 extra it see's is from the -100 people that would drown, but how can I correct it so it would display:

A minimum of 8 lifeboats are required to rescue everybody on board the Princeton.
800 people (100%) would be rescued.
0 people (0%) would be likely to drown.

Any suggestions to help this novice?

Code:
```import java.util.Scanner;

public class LifeBoats

{
public static void main(String[] args)
{
// Display a title
System.out.println("          ______________________________________________________\n");
System.out.println("                 Person-per-LifeBoat Calculation Program\n");
System.out.println("          ______________________________________________________\n");

// Create a Scanner object for receiving user input
Scanner input = new Scanner(System.in);

// Ask the user for the name of the ship - can include spaces
String shipName = input.nextLine();

// Ask the user for the number of people on board the ship
System.out.print("How many people are on board the " + shipName + "?");
int numPeople = input.nextInt();

// Ask the user the maximum number of people that can be carried by one lifeboat
System.out.print("What is the maximum number of people that can be carried in one lifeboat? ");
int peopleBoat = input.nextInt();

// Ask the user how many actual lifeboats are available on the ship
System.out.print("How many lifeboats are avaiable on the ship? ");
int boatsAvail = input.nextInt();

// Calculate the min number of lifeboats required to carry all the people
int totalBoats = numPeople / peopleBoat;

// Display results
System.out.println("\nThe results are...\n");
System.out.println("A minimum of " + totalBoats + " lifeboats are required to rescue everybody on board the " + shipName + ".");

// Calculate the number of people to be rescued
int peopleRescu = boatsAvail * peopleBoat;
double rescuPerc = (double)100 * peopleRescu / numPeople;

// Calculate the number of people likely to drown.
int peopleDrown = numPeople - peopleRescu;
double drownPerc = 100.0 * peopleDrown / numPeople;

// Display rescued calculation with percentage

System.out.println(peopleRescu + " people ("+ rescuPerc +"%) would be rescued.");
System.out.println(peopleDrown + " people ("+ drownPerc +") would be likely to drown.");

} // end main

} // end class```