Recent Feedback
FOR ATL PROGPART I Basic Requirements [COMMENTS REQUIRED]Write a driver and fraction class that performs addition, multiplication, prints the fraction, and prints as a double. LastNameFirstNameProg7.javaProvide a driver class, LastNameFirstNameProg7, that demonstrates this Fraction class. The driver class should contain this main method:public static void main(String[] args){Scanner stdIn = new Scanner(System.in);Fraction c, d, x; // Fraction objectsSystem.out.println("Enter numerator; then denominator.");c = new Fraction(stdIn.nextInt(), stdIn.nextInt());c.print();System.out.println("Enter numerator; then denominator.");d = new Fraction(stdIn.nextInt(), stdIn.nextInt());d.print();x = new Fraction(); // create a fraction for number 0System.out.println("Sum:");x.add(c).add(d);x.print();x.printAsDouble();x = new Fraction(1, 1); // create a fraction for number 1System.out.println("Product:");x.multiply(c).multiply(d);x.print();x.printAsDouble();System.out.println("Enter numerator; then denominator.");x = new Fraction(stdIn.nextInt(), stdIn.nextInt());x.printAsDouble();} // end main PART IIFraction.javaWrite a Fraction class called Fraction.java that implements these methods:add - This method receives a Fraction parameter and adds the parameter fraction to the calling object fraction.multiply - This method receives a Fraction parameter and multiplies the parameter fraction by the calling object fraction.print - This method prints the fraction using fraction notation (1/4, 21/14, etc.)printAsDouble - This method prints the fraction as a double (0.25, 1.5, etc.)Separate accessor methods for each instance variable in the Fraction class.
I can help you with this
Great!! I was crossing my fingers that you would be able to
It seems like a difficult program but thats probably cause programming still isnt my glitch :-) I just need the program files prior to 12 CST tonight. Will that be possible?
Is there anything else you need from my end or do i just need to await your response?
yes i will start working on it now
Please download the program from Answer Link
my apologies...i got disconnect. reviewing the program now.
ok
On my last program from this past week, the instructor gave me 64 out of 80. He noted Your program class name for the driver is wrong, won't allow it to compile."Your style is also way off, the {'s are in the wrong place and you have many un-needed accessor methods. It looks like you used eclipse or netbeans, they both do it wrong."
Will he be encountering the same error message with this program?
what do you mean by {'s are in wrong place
thats what he had on his feedback
i do use Eclipse
i didnt change or modified anything that you sent me. I just saved it under a different name and sent it to him
i can change it so that { are in the next line instead of same line
maybe thats what would satisfy him
could you please
does it really make that big of a difference
thanks a bunch :-)
no as such
its just progamming style
oh ok....
infact if you see
http://java.sun.com/docs/codeconv/html/CodeConventions.doc6.html
the braces are always on the same line and not a new line
as i do it
yes i see what you are referring to on the link you provided
and the program before that i think you did it the same way and he gave me a 95
if you could just redo whatever he is referring to just to please him then I will go ahead and accept :-) I just want a passing grade in this stupid class LOL
i guess we are good to use what i have sent to you
as it has braces in same line
oh ok
cool
when you said you got 95
was it for Cat program
perfect...I will be taking programming fundamental next semester so I will be looking for you once i get into that class.
let me check
that was the phone number program
even in that program braces are in same line
if I wanted to added a tip again, do i have to do it now or can I still add it tomorrow?
i am not sure..I guess it be better/safer if you could do it right away (if you want to obviously)
ok cool...doing it now!! Thanks again and will be chatting with you again in 2 more weeks. THANKS so much for all your help this semester. It is greatly appreciated!!
sure would love to help again
Experience: MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML