Question: Create a program called ConferenceCostYourLastName.java that accepts the number of days per week the attendee will attend and a tier level. Pass those to a

Create a program called ConferenceCostYourLastName.java that accepts the number of days per week the attendee will attend and a tier level. Pass those to a method called determineConferenceCost that returns the cost to charge the attendee. Return the cost to the console. Continue to prompt for days and tier levels until a sentinel value of 999 is entered for number of days.
Tiered Conference Levels
Days per week
Tiers 12345
Tier 1100190270340400
Tier 290170250320380
Tier 385160240310370
Tier 475150230300360
To save time, you can use my array declaration and initialization:
int rates[][]={{100,190,270,340,400},
{90,170,250,320,380},
{85,160,240,310,370},
{75,150,230,300,360}};
Create a JUnit test program to test your method to verify it is receive the correct value back. When testing be sure to test thoroughly. You may wish to refer back to the video showing how to mock up data for a JUnit test.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!