/**
*@author bnwchbammer
*Assume all classes mentioned are in their own files and do in fact exist
*
*/
public class FridayNite{
private Person ben;
private ArrayList<Person> customers;
private int numCustomers;
private double benPissed;
private int seconds;
public FridayNite(){
ben = new Person();
numCustomers = 50;
for(int i = 0; i <= numCustomers; i++){
customers.add(i, Person());
}
benPissed = 0;
seconds = 0;
}
public void Pissed(){
while(customers.size() > 10){
ben.read(Magazine);
seconds ++;
if(pissed > 0){
pissed -= .05;
}
if(seconds == 10){
customers.remove(0);
pissed ++;
seconds = 0;
}
}
}
/*
Alright
Iunno where I'm going with this.
It's hard to find a practical use for java in this case...
Anyway
My nite went something like this.
I read a magazine.
10 seconds later a customer comes.
I'm all - arrrgh.
Then I go back to reading my magazine
Get less argh.
Then another customer comes.
It eventually slowed down
hence the while it's bigger than 10
Cuz only 10 customers came after it slowed down...
this is all an estimate...
But still
it was quite annoying.
Well
Time to mess around on the computer till 2:30
whooo
so that's it...
...
Peace!
*/
*@author bnwchbammer
*Assume all classes mentioned are in their own files and do in fact exist
*
*/
public class FridayNite{
private Person ben;
private ArrayList<Person> customers;
private int numCustomers;
private double benPissed;
private int seconds;
public FridayNite(){
ben = new Person();
numCustomers = 50;
for(int i = 0; i <= numCustomers; i++){
customers.add(i, Person());
}
benPissed = 0;
seconds = 0;
}
public void Pissed(){
while(customers.size() > 10){
ben.read(Magazine);
seconds ++;
if(pissed > 0){
pissed -= .05;
}
if(seconds == 10){
customers.remove(0);
pissed ++;
seconds = 0;
}
}
}
/*
Alright
Iunno where I'm going with this.
It's hard to find a practical use for java in this case...
Anyway
My nite went something like this.
I read a magazine.
10 seconds later a customer comes.
I'm all - arrrgh.
Then I go back to reading my magazine
Get less argh.
Then another customer comes.
It eventually slowed down
hence the while it's bigger than 10
Cuz only 10 customers came after it slowed down...
this is all an estimate...
But still
it was quite annoying.
Well
Time to mess around on the computer till 2:30
whooo
so that's it...
...
Peace!
*/