Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

chapter 10 case problem 1.a In Chapter 8, you created an Event class for Carlys Catering. Now extend the class to create a DinnerEvent class.

chapter 10 case problem 1.a

In Chapter 8, you created an Event class for Carlys Catering. Now extend the class to create a DinnerEvent class. In the extended class, include four new integer fields that represent numeric choices for an entre?e, two side dishes, and a dessert for each DinnerEvent object. Also include three final arrays that contain String menu options for entre?es, side dishes, and desserts, and store at least three choices in each array. Create a DinnerEvent constructor that requires arguments for an event number and number of guests, and integer menu choices for one entre?e, two side dishes, and one dessert. Pass the first two parameters to the Event constructor, and assign the last four parameters to the appropriate local fields. Also include a getMenu() method that builds and returns a String including the Strings for the four menu choices. Save the file as DinnerEvent.java.

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

Step: 3

blur-text-image

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

Database Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

More Books

Students also viewed these Databases questions

Question

2. What appeals processes are open to this person?

Answered: 1 week ago