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, 21.06.2019 21:00
When a rectangular region is defined using an appropriate style, which value matches the specified edge of the clipping region to the edge of the parent element?
Answers: 3
question
Computers and Technology, 22.06.2019 20:10
Assume that minutes is an int variable whose value is 0 or positive. write an expression whose value is "undercooked" or "soft-boiled" or "medium-boiled" or "hard-boiled" or "overcooked" based on the value of minutes. in particular: if the value of minutes is less than 2 the expression's value is "undercooked"; 2-4 would be a "soft-boiled", 5-7 would be "medium-boiled", 8-11 would be "hard-boiled" and 12 or more would be a "overcooked".
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
Perform the following tasks: a. create a class named testclass that holds a single private integer field and a public constructor. the only statement in the constructor is one that displays the message “constructing”. write a main()function that instantiates one object of the testclass. save the file as testclass.cpp in the chapter 08 folder. run the program and observe the results. b. write another main()function that instantiates an array of 10 testclass objects. save the file as test class array.c . run this program and observe the results.
Answers: 1
question
Computers and Technology, 23.06.2019 00:10
My has been slow anyone else’s ?
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
English, 18.03.2021 03:00
question
Mathematics, 18.03.2021 03:00
question
Chemistry, 18.03.2021 03:00
question
Mathematics, 18.03.2021 03:00
question
Biology, 18.03.2021 03:00
question
Mathematics, 18.03.2021 03:00
question
Mathematics, 18.03.2021 03:00
question
Mathematics, 18.03.2021 03:00
Questions on the website: 13722361