Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Objective: This activity has the purpose of helping students to use lists to solve problems ( Objective 2 ) . Students Instructions: Students in this
Objective:
This activity has the purpose of helping students to use lists to solve problems Objective
Students Instructions:
Students in this discussion board create a thread and answer the following question:
Question: Santa Claus allegedly keeps lists of those who are naughty and those who are nice. On the naughty list are the names
of those who will get coal in their stockings. On the nice list are those who will receive gifts. Each object in this list contains a
name a string and a list of that person's gifts an instance of an ADT list Design an ADT for the objects in the nice list. Specify
each ADT operation by stating its purpose, describing its parameters, and writing preconditions, postconditions, and a
pseudocode version of its header. Then write a template interface for the ADT. Write implementation of at least the two following
methods: Insert a new name along with a list of its gifts, Add one more gift to the list of gifts for a given kid's name. No need
to describe constructors or destructors.
After you answered the above question, read the code posted by one of your classmates and evaluate if the ADT they designed
a is correct b efficient and. Therefore you must have a total of two posts. The deadline for participating in the Discussion
Board is indicated on "Tools", which is located in "Calendar" in the "Blackboard" platform. The value of this activity is points.
points for posting your code and explanation and points for discussing your classmates' code.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started