Please, Help me with the attach files
Category: Uncategorized
Computer Science
I need help with writing a java test case for the following FourRowSolitaire program class:
/* This file is a part of Four Row Solitaire Copyright (C) 2010 by Matt Stephen Four Row Solitaire is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Four Row Solitaire is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with FourRowSolitaire. If not, see <http://www.gnu.org/licenses/>. */package FourRowSolitaire;import java.awt.*;import java.awt.event.*;import javax.swing.*;/** * Class: ChangeAppearance * * Description: The ChangeAppearance class manages the ability to change the background or card backs. * * @author Matt Stephen */public class ChangeAppearance extends JDialog implements ActionListener{ public static final int NUM_DECKS = 3; public static final int NUM_BACKGROUNDS = 3; public static final int FRS_DECK = 3; public static final int FRS_BACKGROUND = 2; private JRadioButton[] decks = new JRadioButton[NUM_DECKS]; private JRadioButton[] backgrounds = new JRadioButton[NUM_BACKGROUNDS]; private JButton ok = new JButton(“Choose This Setup”); public int deckNumber = 3; public int backgroundNumber = 2; private boolean exited = true; //To hold the image previews private JLabel cardBackLabel = new JLabel(); private JLabel backgroundLabel = new JLabel(); public ChangeAppearance(JFrame parent, int deckNumber, int backgroundNumber) { setTitle(“Change Appearance”); setSize(400,300); setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE); setModalityType(JDialog.ModalityType.APPLICATION_MODAL); setLocationRelativeTo(parent); this.deckNumber = deckNumber; this.backgroundNumber = backgroundNumber; setup(); setVisible(true); } private void setup() { //Card backs JPanel cardBackPanel = new JPanel(); cardBackPanel.setLayout(new FlowLayout()); ButtonGroup cardBacks = new ButtonGroup(); for(int i = 0; i < NUM_DECKS; i++) { decks[i] = new JRadioButton(“Deck ” + (i + 1)); cardBacks.add(decks[i]); cardBackPanel.add(decks[i]); decks[i].addActionListener(this); } if(deckNumber <= decks.length) { decks[deckNumber – 1].setSelected(true); } else { decks[2].setSelected(true); } //Backgrounds JPanel backgroundPanel = new JPanel(); backgroundPanel.setLayout(new FlowLayout()); ButtonGroup backgroundsBG = new ButtonGroup(); for(int i = 0; i < NUM_BACKGROUNDS; i++) { backgrounds[i] = new JRadioButton(“Background ” + (i + 1)); backgroundsBG.add(backgrounds[i]); backgroundPanel.add(backgrounds[i]); backgrounds[i].addActionListener(this); } if(backgroundNumber <= NUM_BACKGROUNDS) { backgrounds[backgroundNumber – 1].setSelected(true); } else { backgrounds[0].setSelected(true); } JPanel buttonPanel = new JPanel(); buttonPanel.setLayout(new FlowLayout(FlowLayout.CENTER)); buttonPanel.add(ok); cardBackLabel.setIcon(new ImageIcon(this.getClass().getResource (“images/cardbacks/cardback” + deckNumber + “.png”))); JPanel cardBackViewer = new JPanel(); cardBackViewer.add(cardBackLabel); backgroundLabel.setIcon(new ImageIcon(this.getClass().getResource (“images/backgrounds/background” + backgroundNumber + “small.jpg”))); JPanel backgroundViewer = new JPanel(); backgroundViewer.add(backgroundLabel); JPanel p2 = new JPanel(); p2.setLayout(new GridLayout(2, 2, 0, 0)); p2.add(cardBackPanel); p2.add(backgroundPanel); p2.add(cardBackViewer); p2.add(backgroundViewer); //Put everything together JPanel p1 = new JPanel(); p1.setLayout(new BorderLayout()); JLabel note = new JLabel(“Note: Deck changes will take effect on new game”); note.setHorizontalAlignment(JLabel.CENTER); p1.add(note, BorderLayout.NORTH); p1.add(p2, BorderLayout.CENTER); p1.add(buttonPanel, BorderLayout.SOUTH); add(p1); ok.addActionListener(this); } public int getDeckNumber() { if(!exited) { return deckNumber; } return -1; } public int getBackgroundNumber() { if(!exited) { return backgroundNumber; } return -1; } public void actionPerformed(ActionEvent e) { if(e.getSource() == decks[0]) { deckNumber = 1; cardBackLabel.setIcon(new ImageIcon(this.getClass().getResource (“images/cardbacks/cardback” + deckNumber + “.png”))); } else if(e.getSource() == decks[1]) { deckNumber = 2; cardBackLabel.setIcon(new ImageIcon(this.getClass().getResource (“images/cardbacks/cardback” + deckNumber + “.png”))); } else if(e.getSource() == decks[2]) { deckNumber = 3; cardBackLabel.setIcon(new ImageIcon(this.getClass().getResource (“images/cardbacks/cardback” + deckNumber + “.png”))); } else if(e.getSource() == backgrounds[0]) { backgroundNumber = 1; backgroundLabel.setIcon(new ImageIcon(this.getClass().getResource (“images/backgrounds/background” + backgroundNumber + “small.jpg”))); } else if(e.getSource() == backgrounds[1]) { backgroundNumber = 2; backgroundLabel.setIcon(new ImageIcon(this.getClass().getResource (“images/backgrounds/background” + backgroundNumber + “small.jpg”))); } else if(e.getSource() == backgrounds[2]) { backgroundNumber = 3; backgroundLabel.setIcon(new ImageIcon(this.getClass().getResource (“images/backgrounds/background” + backgroundNumber + “small.jpg”))); } else if(e.getSource() == ok) { exited = false; setVisible(false); } }}
Communications
There are three questions that need to be answered based on a case study. I’ve attached the case study. And the case study guideline. Here are the three questions that have to be answered based on the case study:1. Is dog food an attractive category?2. How well is Pedigree been doing?3. What marketing strategy do you recommend going forward?
1. Is dog food an attractive category? Dog food is an attractive category because of the number of people who own dogs and those whoown them are very possessive about them. Dog food was a major…
Art & Design
Analytical Listening 2 – Something Old, Something New
listen to the following pieces. Links are in the PDF:
- The Lost Chord by Sir Arthur Sullivan, Recorded 1888
- A Day in the Life by the Beatles
- Radioactive by Imagine Dragons feat. Kendrick Lamar
1) tangibility,portability,repeatability,temorality,receptivity, or manipulabilit?
Foreign Languages
InstructionsCompleta el párrafo utilizando la forma correcta de los verbos reflexivos correspondientes.Word Bank
acostarse afeitarse cepillarse ducharse irse lavarse levantarse maquillarse ponerse quitarse secarse vestirse
Los domingos por la noche, Carlos y Elena (1) tarde y por la mañana tardan mucho en despertarse. Carlos es el que (2) primero, (3) el pijama y (4) con agua fría. Después, Carlos (5) la barba. Cuando Carlos termina, Elena entra al baño. Mientras ella termina de ducharse, de (6) el pelo y de (7) , Carlos prepara el desayuno. Cuando Elena está lista, Carlos y ella desayunan, luego (8) los dientes y (9) las manos. Después, los dos (10) con ropa elegante y (11) al trabajo. Carlos (12) la corbata en el carro; Elena maneja.
Biology
NEED- GIVING AND RECEIVING FEEDBACK AND conflict resolution and negotiation ANSWER ALL 7 questions for both
- conflict resolution and negotiation:
- answer in 150 words or less
Write a guide that outlines your tips for employees to improve the effectiveness of their skills with these types of organizational communication. Address the following in no more than 150 words for each skill:
- 1.Current barriers to improving this skill and how to prevent or overcome them
- 2.How different audiences perceive this skill and its importance to the organization
- 3.Different cultural approaches to solving problems related to this skill
- 4.Potential ethical and legal dilemmas of using this skill in the organization
- 5.Ways to measure the effectiveness of this communication skill
- 6 Appropriate uses of this skill with technology and in social mediA
7.0Strategies and best practices for using this skill effectively
and GIVING AND RECEIVING FEEDBACK
Write a guide that outlines your tips for employees to improve the effectiveness of their skills with these types of organizational communication. Address the following in no more than 150 words for each skill:
- 1.0Current barriers to improving this skill and how to prevent or overcome them
- 2.How different audiences perceive this skill and its importance to the organization
- 3Different cultural approaches to solving problems related to this skill
- 4Potential ethical and legal dilemmas of using this skill in the organization
- 5Ways to measure the effectiveness of this communication skill
- 6Appropriate uses of this skill with technology and in social media
7Strategies and best practices for using this skill effectively
Information Systems
CISCO. “Securing the Internet of Things.” ( see the article attach)
Read article and then prepare a short report, preferably within
6-8
double-spaced pages
Each
report
should include two parts: (1)
summary of the article,
and (2) comments to the article
Literature
A Critical Review of The Anabaptist Story: An Introduction to Sixteenth-Century Anabaptism.
The Anabaptist Story is a book by William Estep, a professor of church history who wanted to demonstrate who Anabaptism was not just an ordinary reformation movement but one that fully transformed evangelical Christianity landscape. In this work, Estep sought to make a succinct summary of the Anabaptist movement, its early leaders, its doctrines, and the comparisons between present-day evangelical denominations and Anabaptism. Estep began his book by taking a stance that the 16th century Anabaptist movement has always been portrayed in a bad light and there has been no other Christian group has ever been more unjustly judged. Write an essay titled ‘A Critical Review of The Anabaptist Story: An Introduction to Sixteenth-Century Anabaptism’.
HR Management
Plz prepare a PowerPoint presentation consisting of 5 slides, 100 words per slide not including the cover slide and the reference slide.
APA format must use at least one reference, You need to use in-text citations.
Topic for PowerPoint Presentation
Discuss best practices for hiring top talent and the process for developing top talent from within the organization. ( I have uploaded a file as an example to know what it should look like)