Question
Write a C++ or Java application that creates a linked list of Circle objects/structures (i.e., class must be created). The application can use the IntSLLNode
Write a C++ or Java application that creates a linked list of Circle objects/structures (i.e., class must be created). The application can use the "IntSLLNode" and "IntSLList" classes (pp. 78 - 83) as a guide . The application must provide the following features. Allow insertion of multiple "Circle" objects/structures. The Circle contains a "radius" data member. The Circle also uses functions/methods "setRadius", "getRadius" and calculateArea (returns a double data type). Invoke a method/function "DisplayAllElements" (i.e., must be written, traversal required; refer to "isInList" method, pg. 80) that receives a "reference/pointer" formal parameter. This formal parameter specifies the "head" of the list. The function/method must display all elements "position", "radius" , and "area"
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