Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MUST BE IN JAVA.. a party planner is organizing a party. Write a program CostEstimate.java that preforms the following... 2. (14 Points) A party planner

MUST BE IN JAVA.. a party planner is organizing a party. Write a program CostEstimate.java that preforms the following...

image text in transcribed

2. (14 Points) A party planner is organizing a party. Write a program CostEstimate.java that performs the following, Rental cost is $100. Food cost is as follows: For groups with 1-5 people, cost is $20 per person For groups with 6-10 people, cost is $18 per person For groups with 11-15 people cost is $16 per person For groups with more than 15 people, cost is $15 per person. Define a method called cost which takes one parameters, the number of people in the . party, calculates the per person price (food cost with rental cost), then returns the cost per person. . Call cost method in the program to produce a cost stimate table that shows the party size from 2, 4, up to 20 people. Sample output: Party Size (#people) Cost Estimate Per Person $70.00 $45.00 $34.67 $30.50 $28.00 $24.33 4 10 12 20 $20.00

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

Students also viewed these Databases questions