You are going to create a console based program to keep track of a small business...

90.2K

Verified Solution

Question

Programming

You are going to create a console based program to keep track ofa small business that sells Doodads.

First you will need to create a class Doodad that keeps track oftwo integers and two Strings.

Next, create a constructor for the Doodad.

Next, add getters and setters for each of the fields (twointegers and two Strings).

You need to use Doodad.java (see the starter code)

Inside your main method ask the user to read in the two integersand two Strings. Create a Doodad object and add it to an array of100 Doodad objects. Allow the user to keep entering in Doodadobjects until the user wishes to quit.

Once the user is done entering Doodad objects, show theinformation about the Doodads they entered.

You will show the first number, followed by a space, followed bythe first word.

Answer & Explanation Solved by verified expert
4.0 Ratings (838 Votes)
Answer Hey dear student finds the solution ofyour query if you have any doubt feel free to ask ThanksC Code this code had Doodad class has two integertype data members two String type data members Class has aparametrized constructor In Main read values for integers andstrings and create array of object Doodad class and passing thevalues to set data    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students