Reference no: EM131911159
Assignment
Objective: The goal of this assignment is to practice linked lists.
Background: Suppose that you like traveling and you are planning on visiting your friends who live in different towns of Texas during Spring Break. Use a linked list to plan and organize the sequence of your visits to your friends.
Task: Write a class named Friend. The Friend class must contain the following three private data fields.
the name of the friend,
city name where your friend lives,
price/budget of the gift you are planning to purchase for this friend.
Note that you will need an additional reference field to link to the next Friend of the list. This reference field can be public. Write appropriate setter and getter methods to set and access all the private fields.
Write a different class named Organizer to maintain a linked list containing Friend elements.
Write methods within the Organizer class:
for starting a linked list with the first person,
for inserting a new friend to the list,
for deleting a friend from the list,
for searching whether a given friend is on your list,
for printing the entire list of friends you are planning to visit, and
for computing the total amount of money you are planning to spend to buy gift items for your friends.
In the main method of the Organizer class, test your methods by filling in information about at least five different friends to visit, and by printing the resulting list. Also, display the total amount of money you are planning to spend on gifts. To test insertion and deletion, add one of your friends who is not already in the list, and show that you can search for this friend. Delete a friend from the list to demonstrate that your delete method works perfectly.
Show a grid of all homework and scores of all students
: Show a grid of all homework and scores of all students. Show a grid of all exams and scores of all students. Project, includes title, due date, average score.
|
What is the amount of total costs allowed
: What is the amount of total costs allowed if the 20% normal profit target is desired at the 500 sales target? Show amount for fixed and variable costs
|
Prepare a short description of the health issue covered
: Prepare a short description of the health issue covered in the YouTube video. Be sure to include the location and population affected.
|
Calculate the gross profit of widget distributors
: AFE3691 - FINANCIAL ACCOUNTING 1A - Prepare the statement of profit or loss & other comprehensive income for Amigo CC for the year ended 30 June 20x2
|
Write appropriate setter and getter method to set and access
: The goal of this assignment is to practice linked lists. Write appropriate setter and getter methods to set and access all the private fields.
|
Prepare income statements for both years using absorption
: As the lots are sold, they are cleared at an average cost of $5,000. Prepare income statements for both years using both absorption and variable costing methods
|
What is the? bond coupon? rate
: Suppose a? five-year, $ 1 000 bond with annual coupons has a price of $ 903.57 and a yield to maturity of 6.1 %. What is the? bond's coupon? rate?
|
Examine the role of the institutional animal care
: Examine the role of the Institutional Animal Care and Use Committee in protecting animals in research and the Institutional Review Board.
|
Calculate the overhead assigned to each product
: Total estimated overhead costs are $503,250, of which $224,400 is assigned to the material handling cost pool, Calculate the overhead assigned to each product
|