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

hi i'm taking compsci and I need someone to give me some examples of these classes, thanks!

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:18am
We 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:41pm
Try 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:43pm
Try 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

- Computer Science - Write a Class to represent one of the following items. Note ...
- Computer Sci Help pls - Write a Class to represent one of the following items. ...
- Computer Science - Java - Hi, For an assignment I am doing, we have to have 2 ...
- math - Greg teaches martial arts. He charges a one time processing fee of $5.00 ...
- math - a class has 18 classes with 35 students in each class. in order to reduce...
- math - An elementary school is offering 3 language classes: one in Spanish, one ...
- computer - Write a menu driven program that either accepts words and their ...
- algebra - Classes A and B have 35 students each. If seven girls shift from class...
- algebra - Classes A and B have 35 students each. If seven girls shift from class...
- math - In a freshman class of 3500 students at a particular college, 20000 are ...

More Related Questions