Monday

December 22, 2014

December 22, 2014

Posted by **Shannon** on Friday, May 28, 2010 at 10:46am.

You will have to write a class to represent one of the following items. Note

that each class must a proper constructor even though the constructor is not

explicitly named.

1. a Fraction that has a numerator and a denominator. The class should

have methods that can: (1) add and subtract two Fractions together and

return the resulting Fraction, (2) create a duplicate of itself and return

the duplicate, (3) see if another Fraction is equivalent to itself and return

True or False appropriately and (4) reduce itself to the lowest equivalent

Fraction.

2. a Student that has a name, point and course count. The class should

have methods that can: (1) add a grade to the GPA and GPA should be

calculated and returned appropriately, (2) create duplicate of itself and

return that duplicate, and (3) see if another student has the same name

and GPA as itself and return True or False appropriately.

3. a Clock that has a minute and hour hand. The class should have methods

that can: (1) add and subtract minutes appropriately, (2) return an ap-

propriate textual representation of itself (either 12 or 24 hour clock), (3)

duplicate itself and return that duplicate, and (4) see if another clock is

of equal time as itself and return True or False appropriately.

3

- computer science -
**Jen**, Friday, May 28, 2010 at 11:18amWe don't know the classes that are offered at your school, and the descriptions for each. Classes vary slightly from college to college. To answer these, you should get a course catalog and read all the descriptions for the math courses.

- computer science -
**SraJMcGin**, Friday, May 28, 2010 at 1:41pmTry the first search to see if those links will help you:

http://search.yahoo.com/search?fr=mcafee&p=how+to++plan+a+class+to+teach+fractions

Sra

- computer science -
**SraJMcGin**, Friday, May 28, 2010 at 1:43pmTry this search for the 2nd part of your post:

http://search.yahoo.com/search?fr=mcafee&p=how+to+plan+a+computer+class+to+teach+GPA

For the 3rd part, I found nothing to do with a computer class, but here are links on things to do with a clock:

http://search.yahoo.com/search?fr=mcafee&p=how+to+plan+a+computer+class+to+teach+how+to+use+a+clock+with+minute+hand

Sra

**Answer this Question**

**Related Questions**

math - Greg teaches martial arts. He charges a one time processing fee of $5.00 ...

probability - out of 250 students interviewed at a community college, 90 were ...

computer science - write a program to select the classes that you are taking(Ex...

Computer Science - Java - Hi, For an assignment I am doing, we have to have 2 ...

math - For every girl taking classes at a Martin martial arts school there are 3...

math - For every girl taking classes at the martial arts school, there are 3 ...

Math - For every girl taking classes at the martial arts school, there are 3 ...

Math - for every girl taking classes at the school, there are 3 boys who are ...

Grades - I need some help on calculating my current high school GPA. So far, I'...

Writing - If you are interested in going into a career as an author, what ...