Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

quick code please

807601May 21 2008 — edited May 21 2008
Hey guys, can someone tell me how to start the code required below:

It is customary to tip the pizza delivery person $1.00 per pizza or 10% of the total cost. Complete the following pizzaTip() method shown below to tip based on the number of pizzas and write an overloaded method to calculate the tip based on the total cost of the pizzas. (Note: You will submit two methods for this question.)

//post condition: return the amount of the tip
public double pizzaTip(int numPizzas)
{
//complete the code for the first method here
}


Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 18 2008
Added on May 21 2008
13 comments
492 views