subject
Computers and Technology, 24.04.2020 19:54 chops85

I AM IN NEED OF HELP AND CANT DO COMPUTER SCIENCE TO SAVE MY LIFE PLEASE HELP!
ArrayList Card Collector

Directions: SHOW ALL YOUR WORK. REMEMBER THAT PROGRAM SEGMENTS ARE TO BE WRITTEN IN Java.

Notes:
Assume that the classes listed in the Quick Reference have been imported where needed.
Unless otherwise noted in the question, assume that parameters in method calls are not null and that methods are called only when their preconditions are satisfied.
In writing solutions for each question, you may use any of the accessible methods that are listed in classes defined in that question. Writing significant amounts of code that can be replaced by a call to one of these methods may not receive full credit.

Consider this implementation of the class Card, that stores information related to a cards monetary value, name, condition, and number in a set of collectible cards:

public class Card
{
private double value;
private String name;
private int setNum;
private String condition;

public Card (String Name, String Condition, double Value, int numSet){
name = Name;
condition = Condition;
value = Value;
setNum = numSet;
}

public String getName(){
return name;
}

public String getCondition(){
return condition;
}

public double getValue(){
return value;
}

public int getSetNum(){
return setNum;
}
}

QUESTIONS :

A subsequent class CardCollection has been created with the instance variable ArrayList collection that stores a collection of cards. When instantiated, the CardCollection class takes an ArrayList as a parameter, and copies that ArrayList to the Collection instance variable. In this question, you will write three methods in the CardCollection class.

A) Write a method totalValue() which returns the total value of all cards in a card collection.

B) Write a method checkPerfect() that prints the name of the Cards in a collection that are in "perfect" condition.

C) Write a method orderNumerically() that reorders the ArrayList collection in numerical order by set number. Assume that the set includes 151 cards.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:20
Octothorpe is another name for what common computer keyboard symbol?
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
When creating a presentation in libre office impress, where does the editing of slides take place?
Answers: 1
question
Computers and Technology, 23.06.2019 15:30
The processing of data in a computer involves the interplay between its various hardware components.
Answers: 1
question
Computers and Technology, 24.06.2019 00:30
Setting up a home network using wireless connections is creating a a. vpn b. lan c. wan d. mini-internet
Answers: 2
You know the right answer?
I AM IN NEED OF HELP AND CANT DO COMPUTER SCIENCE TO SAVE MY LIFE PLEASE HELP!
ArrayList Card...
Questions
question
Social Studies, 30.09.2019 09:30
question
English, 30.09.2019 09:30
question
History, 30.09.2019 09:30
Questions on the website: 13722363