Reviewer for project 16

2 views
Skip to first unread message

Steve Curtis

unread,
Aug 5, 2011, 6:13:59 PM8/5/11
to BYU 142 Summer 2011
hey could someone review my project 16 for me?

my email is steve.c...@gmail.com


thanks


-steve

Benjamin Kemer

unread,
Aug 5, 2011, 7:04:26 PM8/5/11
to byu-142-s...@googlegroups.com
I could review, and would you mind doing likewise, or meet to review a little about how it should work as well?

-Benjamin Kemer

Steve Curtis

unread,
Aug 5, 2011, 7:32:05 PM8/5/11
to BYU 142 Summer 2011
alright. I couldn't get together today cause live like 20 minutes from
BYU campus, but if you have any questions, you can ask me. What's your
email? I'll send you my code.

thanks

-steve

Benjamin Kemer

unread,
Aug 5, 2011, 7:39:58 PM8/5/11
to byu-142-s...@googlegroups.com
My questions relate to asking you about the driver, because otherwise, the remainder of the project is debugged,

I have a statement within the project in which I am trying to print out the profit results from the other classes,

I could send you the code if you knew how to do proofreading marks or something, but here is the driver code in general.

package poly;

public class Driver {
    public static void main(String[] args){
       
     double currentValue = 2500;
     double purchasePrice = 2750;
     int yearsOwned = 5;
     int AnnualIncome = 2000;
   
     System.out.println("Profits on Stock are");
     System.out.println("Profits on ");
         
    }

    }

Then, by all means, send your code over sometime today and I would review it within 30 minutes of receiving it.
If you don't mind, I could also send you the compressed set of my own code to review as well,

Benjamin Kemer

Steve Curtis

unread,
Aug 5, 2011, 7:58:10 PM8/5/11
to BYU 142 Summer 2011
what I did was use constructors in each of my different classes, and
when you call the profit method, you can just pass in the different
arguments for each of the classes. i'm not sure how I'd do it the way
you are showing. I'm going to send you my code right now so that you
can review it. just ask if you have any more questions.

thanks

-steve

Benjamin Kemer

unread,
Aug 5, 2011, 8:00:13 PM8/5/11
to byu-142-s...@googlegroups.com
Okay, sounds good
Reply all
Reply to author
Forward
0 new messages