Show Bid Request
Java Program with Methods
Bid Request Id: 45576
|
|
|
Posted by: |
Loli10 (10 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Very Good - 8.33%
|
Posted: |
Jan 27, 2003 4:52:13 PM EDT
|
Bidding Closes: |
Jan 29, 2003 4:55:03 PM EDT
|
Viewed (by coders): |
169 times
|
Deadline: |
1/31/2003
TIME EXPIRED
|
|
|
|
Description:
WRITE A METHOD TO CALCULATE THE VOLUME: 1. The formula for the volume of a cylinder is: v = Pi r^2 h. 2. The paint method invokes a method called cylinderVolume. Write a header for the cylinderVolume method that is consistent with the two calling statements. 3. Complete the cylinderVolume method to calculate and return the volume of a circular cylinder using the volume formula above. WRITE A METHOD TO CALCULATE THE SURFACE AREA: 1. The formula for the surface area of a circular cylinder is: a = 2 Pi r h + 2-Pi r^2 2. The paint method invokes a method called cylinderArea. Write a header for the cylinderArea method that is consistent with the two calling statements. 3. Complete the cylinderArea method to calculate and return the surface area of a circular cylinder using the area formula given above. The partial program is listed below. import java.awt.*; java.applet.Applet; import public class Cylinder extends Applet public void paint (Graphics g) double radius; 11 Radius of cylinder double height; 11 Height of cylinder double volume; 11 Volume of cylinder double surfaceArea; 11 Surface area of cylinder
radius = 1; height = 10; volume = cylinderVolume (radius, height); surfaceArea = cylinderArea (radius, height); g.drawString ("Cylinder with radius " + radius + " and height " + height, 100, 100); g.drawString (" has volume " + volume, 100, 125); g.drawString (" and surface area " + surfaceArea, 100, 150); radius = 1.5; height = 6; volume = cylinderVolume (radius, height); surfaceArea = cylinderArea (radius, height); g.drawString ("Cylinder with radius " + radius + " and height " + height, 100, 200); g.drawString (" has volume " + volume, 100, 225); g.drawString (" and surface area " + surfaceArea, 100, 250); g.drawString ("Lori Limberg",100, 375); 1/WRITE YOUR METHODS HERE
Beginning Program class, must be basic as shown above. Also must contain comments.
Deliverables: 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Complete ownership and distribution copyrights to all work purchased.
Platform:
Borland Jbuilder 6.0 Professional
Must be 100% finished and received by buyer on:
Jan 31, 2003 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$8 (USD)
|
Jan 27, 2003 9:52:10 PM EDT
|
10
(Excellent)
|
|
|
me again :-) Thank you for the oppurtunity to bid on this project.
--> Xponential Design Solutions |
|
|
|
|
|