- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
5 Posted Topics
This is the code i have for my stack program: public class MyStack { private int top; private int[] store; Stack(int capacity) { if (capacity <= 0) throw new IllegalArgumentException("Stack's capacity must be positive"); store = new int[capacity]; top = -1; } void push(int value) { if (top == store.length) … | |
anyone enlighten me? i have to find the median...below i found the mean and read the question wrong. how do calculate the median? i have my text input file which has 7 ints, 1-7, so i kno #3 will show up for median...but i dont know how to code it...pls … | |
basically i have created a program which reads integers from a txt file and works out the averages etc. now the below code i wrote to simply state which month has the highest or lowest rainfall. below i have created the code but on compiling says there an error....can someone … | |
i am trying to comapre the contents of two text files in linux at same time and two text files windows at same time , but im not sure how to do this in windows or linux? i have tried any ideas? thanks | |
write a program which asks the user how many days they will be working. then using your program calculate and print the amount of money they will earn if paid £1 for day 1, £3 for day 2, £9 for day 3 etc.....i have coded the inputing of name and … |
The End.