So your saying number of occupied rooms / number rooms shoupdnt give you .75.
20/15 is .75 im Not Concerned With Having It Print As A Percentage.
My Instructions Were To Print Average...
Type: Posts; User: morrism35
So your saying number of occupied rooms / number rooms shoupdnt give you .75.
20/15 is .75 im Not Concerned With Having It Print As A Percentage.
My Instructions Were To Print Average...
It Should Be 75 or .75 as A Decimal. This Shouldnt Be Complicated. I Can Use Decimalformat To have It Show As A Percent If It At Least Computed As The Correct Decimal.
--- Update ---
My if else...
Im Plugging In 20 for numRooms Divided By 15 numroomsoccupied And Getting 1.0 futhermore None Of My If Else Staements Are being Executed. Getting Very frustrated Havent Failed An Assignment Yet.
import java.text.DecimalFormat; //Needed to format occupancy rate as percentage
import java.util.Scanner; //Needed for the scanner class
// This program was created by Michael Morris
/** This...
import java.text.DecimalFormat; //Needed to format occupancy rate as percentage
import java.util.Scanner; //Needed for the scanner class
// This program was created by Michael...
not sure how to do that. Im a beginner
--- Update ---
using jgrasp
--- Update ---
my occupancy rate doesn't compute right also all my if else if statements aren't being executed to get my...
import java.text.DecimalFormat; //Needed to format occupancy rate as percentage
import java.util.Scanner; //Needed for the scanner class
// This program was created by Michael Morris
/** This...
Having major problems getting this program due tonight. Never had a problem with the basic programs as a beginner but this is too much. It's due tonight and no I didn't procrastinate I'm just not...