Evan Cristofori

Greenhorn
+ Follow
since Feb 02, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Evan Cristofori

Thank you. I had just found that out and was comming back here to to post that I didn't need help anymore. But, thank you very much. I am going to continue the program and will post back if I need help.
16 years ago
I keep getting an error with this:



symbol : constructor Rectangle()
location: class Rectangle
public Box(int width, int height, int depth) {
^
1 error

Process completed.
16 years ago
Sorry for the delay. I went out of town. This is what I have so far...


On my list to finish is the following...

Box subclass
- extend Rectangle,
- define a private (or possibly protected) variable d (depth),
- add a constructor taking width, height and depth,
- override (replace) the area method of Box and instead supply the Box surface area,
- add a volume method.

Am I on the right track?
16 years ago
Hello All,
I missed a few lectures in class and I got very behind. My assignment is to:

Create a base class named "Rectangle" that contains length and width data members. From this class, derive a class named "Box" having an additional data memner named "depth". The method members of the base "Rectangle" class should consist of a constructor and an override method named "area()" method. The derived "Box" class should have a constructor and an override method named "area()" that retuns the surface area od the box and a "volume()" method.

Include in the classes constructed for the previous exercise in a working Java program. Have yoru program call all of the member methods in each class and explain the result when the area method is called using the two "box" objects.


Can someone guide me in the right direction? Can you show me how to set up the first part? I am very thankful for any help I get.
16 years ago
Here is my assignment:



Here is what I came up with:


And the output I am getting looks like this:


Any insight?
17 years ago
Hi and thank you for the help.

Can you show me what the code would look like with the changes?

Evan
[ February 21, 2007: Message edited by: Evan Cristofori ]
17 years ago
Hi All,
Very new programmer here...

I know i was hoping for something that might work to sovle this problem, but it didnt. What I need to do is make it so the user can type in an expression (ie: "1 + 1", "2 - 1", "1 * 1", "2 / 1") and my program will recognize the expressions and perform the calculation... To my knowlege the part that makes no sence is the "if", "else if" statement part, but I did try!

Please Help!!



The error I get is incompatible types @ line 33, 35 (listed twice), 37 (listed twice), and 39 (listed twice).

Thanks
17 years ago
What the guys said about flash... it is the way to go.

In flash you could simply import the song and then use the timeline to have your words come up in sync with the music.

Give it a try...
17 years ago
Hey,

I was going to... I just wanted to compare my results to someone elses.

Here is my code I came up with:



How does it look?
17 years ago
Hi All,

I was wondering if someone could show me an example of a future value calculator:

" F = P(1+rate)^t "

where
F = future value
P = initial deposit (principal)
rate = (annual) interest rate (expressed as a fraction, e.g. 0.06)
t = number of years invested

Also,

The user needs to be able too input each parameter:

"Please input the principal: ______"
"Please input the annual interest rate: ______"
"Please input the number of years invested: ______"

Then,

The program should run the calculator and output the information:

"The future value of your investment after ___ years is : ______"

Thanks,
Evan
17 years ago
Hello Everyone,

I am doing a business plan as part of the cohort program at my school. It is going to be a business based around the Netflix and Blockbuster Total Access models. I was wondering if anyone had any information on how they aquire the right to sell/rent movies and how much it costs. Also, does anyone have any idea how much a bulk package of 500,000 to 1,000,000 terabyte harddrives would cost?

Thanks,
Evan
17 years ago
Thank you all for your help.

Assignment has been submitted...

Yay!

-Evan
17 years ago
Here is what I got now:



I am getting an error that reads... "cannt find symbol class var1 and var2"

The assignment was posted above...

I am having problems with this part:
Print the following output, without using literal characters "a", "b" and "c" in the print() or println() method

Thanks
[ February 03, 2007: Message edited by: Evan Cristofori ]
17 years ago
Hi,

Alright, I understand that much now, thanks. How would I do this part of the assignment?

Print the following output, without using literal characters "a", "b" and "c" in the print() or println() method

[ February 02, 2007: Message edited by: Evan Cristofori ]
[ February 02, 2007: Message edited by: Evan Cristofori ]
17 years ago