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 04:30
Which of the statements below is true? the formatting, standard, and drawing commands are unavailable. the formatting, standard, and drawing commands have been used. the formatting, standard, and drawing toolbars are displayed. the formatting, standard, and drawing toolbars are hidden.
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
Hyperactive media sales has 10 windows 7 laptop computers used by sales-people in the organization. each laptop computer has several customized applications that are used during the sales process as well as customer relationship management software. all of the applications on the laptops are difficult to configure and have large data files. if all of the laptops have current hardware, what is the easiest way to install windows 10 on them?
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. which step can possibly increase the severity of an incident? a. separating sensitive data from non-sensitive data b. immediately spreading the news about the incident response plan c. installing new hard disks d. increasing access controls
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
The more powerful, 60 volt cables and the main power shut off on an hev are both colored orange
Answers: 1
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
History, 02.12.2020 20:20
question
Mathematics, 02.12.2020 20:20
question
Mathematics, 02.12.2020 20:20
question
Mathematics, 02.12.2020 20:20
question
Mathematics, 02.12.2020 20:20
question
Mathematics, 02.12.2020 20:20
Questions on the website: 13722360