JAVA - Computer Science
I have to write a code All the instruction for assignment is in the folder/*
* Code provided for Lab 3 in CSCI282
* author: C.Anderson
* modified on 1-31-2014
*/
//package shipping_problem;
import java.io.*;
import java.util.*;
import javax.swing.*;
/**
*
* @author canderson
*/
public class Fleet2 {
private Ship[] shipsOfFleet;
private int MARK_LIMIT = 32000;
/**
* Class constructor
*/
public Fleet2()
{
String intro = This program will initialize a fleet of cargo, cruise\n+
and battle ships from the data in the file you will be\n+
asked to select. It will than print out a fleet Roster\n+
and a record of resources;
JOptionPane.showMessageDialog(null, intro,Fleet introduction,1);
// Create Cargo fleet
String fileName = enterFileName(Select fleet ship information file);
boolean status = loadShipsFromFile(fileName);
if(status)
{
// Make display
JOptionPane.showMessageDialog(null, Fleet Roster:\n+makeFleetRoster()+\n+countTheFleet(), Fleet Roster, 1);
JOptionPane.showMessageDialog(null, Program terminating, exiting program, 1);
}
}
/**
* Will load the ship data from file to shipOfFleet array
* to the class array shipsOfFleet
* @param fileName
*/
public boolean loadShipsFromFile(String fileName)
{
JOptionPane.showMessageDialog(null, You need to delete line 49-51 in Fleet2 and+
\n implement the code needed to read fromfile in. , Error,2);
return false;
///////////////////////////////////////
///// Type code here to read from file
///// delete lines 50-52
//////////////////////////////////////////
}
/**
* Will return a file handle for the file selected for the purpose
* stated in the argument string
* @param purpose
* @return
*/
public static String enterFileName(String purpose)
{
String fileName = ;
// Creating a new JFilechooser with the argurment that states the directory to start in
// This might be a good parameter to pass from the enterFileName method (currently no arguments
// instead of hard coding it.
JFileChooser chooser = new JFileChooser();
chooser.setDialogTitle(purpose);
int returnVal = chooser.showOpenDialog(null);
if(returnVal == JFileChooser.APPROVE_OPTION) // checking to make sure a non-null value was returned
// or that you did not just hit cancel
{
fileName = chooser.getSelectedFile().getAbsolutePath(); // This will return the full
// path to the file
}
else
{
System.err.print(No file was chosen, program terminating.\nTry again when you are serious about the reports!);
/*
* Code provided for Lab 2 in CSCI282
* author: C.Anderson
* modified on 8-31-2016
*/
class Ship
{
private String name; // Ship name
private int yearBuilt; // 4 digit year built
private String nation; // Nation of registry
/**
Constructor
@param n The ships name.
@param y The year the ship was build.
*/
public Ship(String n, int y, String na)
{
name = n;
yearBuilt = y;
nation = na;
}
/**
setName method
@param n The ships name.
*/
public void setName(String n)
{
name = n;
}
/**
setYearBuilt method
@param y The year the ship was built.
*/
public void setYearBuilt(int y)
{
yearBuilt = y;
}
/**
getName method
@return The ships name.
*/
public String getName()
{
return name;
}
/**
getYearBuilt method
@return The year the ship was built.
*/
public int getYearBuilt()
{
return yearBuilt;
}
/**
toString method
@return A string indicating the ships name
and the year it was built.
*/
public String toString()
{
return name + , +
yearBuilt + , +
nation;
}
}/*
* Code provided for Lab 2 in CSCI282
* author: C.Anderson
* modified on 8-31-2016
*/
//package shipping_problem;
import java.util.*;
import javax.swing.*;
public class Fleet {
private Ship[] shipsOfFleet;
/**
* Class constructor
*/
public Fleet()
{
String intro = This program will initialize a fleet of cargo, cruise\n+
and battle ships. It will than print out a fleet Roster\n+
and a record of resources;
JOptionPane.showMessageDialog(null, intro,Fleet introduction,1);
//Create Cargo fleet
shipsOfFleet = new Ship[12];
shipsOfFleet[0] = new CargoShip(Balinda, 1998, USA, 20000,4500 );
shipsOfFleet[1] = new CargoShip(Sassy Boy, 2008,UK, 2400, 3300.5);
shipsOfFleet[2] = new CargoShip(Gut Frau, 1976,Germany, 3600, 7533);
shipsOfFleet[3] = new CargoShip(Atlas, 1983,Porta Rico, 6600, 1000);
shipsOfFleet[4] = new CargoShip(Big Hauler, 2000,Russia, 16600, 4536);
//Create Cruise fleet
shipsOfFleet[5]= new CruiseShip(Small World, 1998, USA,100, 250, 500);
shipsOfFleet[6]= new CruiseShip(Ocean Skipper, 2012, UK,200, 750, 1500);
shipsOfFleet[7]= new CruiseShip(Light Sail, 1967, Brasil, 50, 200, 1200);
shipsOfFleet[8]= new CruiseShip(Pleasant Berth, 1985,Germany, 120, 200, 300);
shipsOfFleet[9]= new CruiseShip(Fast and Loose, 2013,USA, 45, 51, 129);
//Create War fleet
shipsOfFleet[10] = new BattleShip(Tough Guy, 1998,USA, 100,500);
shipsOfFleet[11] = new BattleShip(Angry One, 2008, UK, 300,1500);
JOptionPane.showMessageDialog(null, Fleet Roster:\n+makeFleetRoster()+\n+countTheFleet(), Fleet Roster, 1);
JOptionPane.showMessageDialog(null, Program terminating, Exiting program, 1);
}
/**
* Will return a summery of fleet resources
* @return
*/
private String countTheFleet()
{
String fleetCount =\n\nResources of Fleet:\n;
int cargoShipCount = 0;
int totalFreezerSpace = 0;
int totalCargoCapacity =0;
int cruiseShipCount = 0;
int passengerBerthing = 0;
int battleShipCount = 0;
int totalWeaponsCapacity =0;
int totalFighterCapacity =0;
for(int dex = 0; dex < shipsOfFleet.length; dex++)
{
if(shipsOfFleet[dex] instanceof CargoShip)
{
cargoShipCount++;
totalCargoCapacity += ((CargoShip)shipsOfFleet[dex]).getMaxTonnage();
totalFreezerSpace += ((CargoShip)shipsOfFleet[dex]).getFreezerSpace();
}
else if(shipsOfFleet[dex] instanceof CruiseShip)
{
cruiseShipCount++;
passengerBerthing += ((CruiseShip)shipsOfFleet[dex]).getDoubleCabins()*2 +
CA,Balinda,1998,USA,20000,4500
CA,Sassy Boy,2008,UK,2400,3300
CA,Gut Frau,1976,Germany,3600,7533
CA,Atlas,1983,Porta Rico,6600,1000
BA,The Wasp,2018,USA,1100,2500
CA,Big Tank,2000,Japan,16600,4536
CR,Small World,1998,USA,100,250,500
CR,Ocean Skipper,2012,UK,200,750,1500
CR,light Sail,1967,Brasil,50,200,1200
CR,Pleasant Berth,1985,Germany,120,200,300
CR,Make-a-freind,1991,Japan,1100,2300,4500
CR,Fast and Loose,2013,USA,45,51,129
BA,Tough Guy,1998,USA,100,500
BA,Angry One,2008,UK,300,1500
BA,Nemesis,2015,USSF,30000,45000
BA,Enterprize,2017,USSF,76000,93000CSCI 282 Object Oriented Design M2-Lab: Shipping FLeet
Name(s):
Remember, when you submit your code, all files needed to run the code, including images and data files MUST be bundled in the zip file with your source code file I the proper position that so that when your program is compiled and run OUTSIDE of the IDE, it will show the same GUI, complete with images, that are shown on your images in this
lab sheet.
PLEASE note: there is a large penalty for there being a difference between the images you submit in your lab sheet and what the results look like when I run it. And I will make allowances for the different look and feel between Windows and MAC.
Going forward, the lab sheet will not “earn” points. BUT heavy penalty (-50) will be given if lab sheet is missing or in a format other than MSWord or pdf formats.
Only one image needed this week: Please provide a clipped screen shot of your PART 2 ship roster, showing your name(s) properly inserted per lab manual instructions.CSCI 282 Object Oriented Design M2-Lab: GUI Temperature Converter
Name(s):
Remember, when you submit your code, all files needed to run the code, including images and data files MUST be bundled in the zip file with your source code file I the proper position that so that when your program is compiled and run OUTSIDE of the IDE, it will show the same GUI, complete with images, that are shown on your images in this
lab sheet.
PLEASE note: there is a large penalty for there being a difference between the images you submit in your lab sheet and what the results look like when I run it. And I will make allowances for the different look and feel between Windows and MAC.
Going forward, the lab sheet will not “earn” points. BUT heavy penalty (-50) will be given if lab sheet is missing or in a format other than MSWord or pdf formats.
Please provide a clipped screen shot of each of the three test cases given in the lab manual.
Fahrenheit Tempurature 1: 32
Fahrenheit Tempurature 2: 100
Fahrenheit Tempurature 3: -21Module 1 Labs
DR. CATHERINE ANDERSON MCNEESE STATE UNIVERSITY
CSCI 282 OBJECT ORIENTED PROGRAMMING
CHAPTER 1
Shipping
Fleet
Practicing inheritance with the super-
class Ship and another class called Fleet
SHIPPING FLEET
1. Read data from Arrays - create subclasses
2. Read from File - populate fleet from data in file
SECTION 1
Problem Description
You are to use the Ship class you created in last weeks lab to
create three subclasses. In the bundle of files that accompa-
nies this lab, there is a Fleet Class. The Fleet Class requires
these three sub classes inherited from the Ship class: specifi-
cally the CruiseShip, the CargoShip and the BattleShip.
These sub classes will use all methods from the super class in
addition to new attributes and methods unique to the specific
class.
The additional attribute per subclass are as follows:
• The Cargo Ship subclass has both maximum cargo
weight and freezer space.
• The Cruise ship subclass has the number of state rooms
(each berthing two passengers), number of double rooms
(each berthing 2 passengers) and number of economy rooms
(each berthing a single passenger).
• The battle ship subclass has weapon capacity and troop
carrying capacity.
What are the names of these attributes? Well you know
from the convention of writing getters which is to name the
method getVariableName(), where variable name is the name
of the attribute. So if you know the name of the getter, you
know what the attribute should be called. In addition, in the
file Fleet.java, you will see that both setters and getters for
these subclasses are being used, so you know what the attrib-
utes name should be.
2
There is no code-along for this lab. There will still be code-
alongs in future labs, but fewer of them. I have provided you
with a file bundle that contains the following file
For part 1:
• Ship.java ( my implementation of last weeks class)
• fleet.java
For part 2:
• ship_info.java
• fleet2.java
Part 1: Creating the subclasses
Your task for the first part of this exercise, is to write the sub
classes with all the methods needed to run the Fleet class with-
out changing anything in the Fleet class. In fact you, MAY
NOT CHANGE ANY CODE within the Fleet class. Looking
at the method calls in the Fleet class will also tell you the
names of setters and getters methods. The data needed to in-
stantiate these classes is hard coded in to the Fleet class.
Remember the OOP principle that all class attributes should
be private and as such need accessor and mutator methods.
Remember the convention of writing an accessor and muta-
tor method. Use the code written in the Fleet class for method
names and parameter lists. Also, you are require to adhere to
the setter and getter convention of having the attribute name
reflected in the setter or getter.
When you have completed the subcl
CATEGORIES
Economics
Nursing
Applied Sciences
Psychology
Science
Management
Computer Science
Human Resource Management
Accounting
Information Systems
English
Anatomy
Operations Management
Sociology
Literature
Education
Business & Finance
Marketing
Engineering
Statistics
Biology
Political Science
Reading
History
Financial markets
Philosophy
Mathematics
Law
Criminal
Architecture and Design
Government
Social Science
World history
Chemistry
Humanities
Business Finance
Writing
Programming
Telecommunications Engineering
Geography
Physics
Spanish
ach
e. Embedded Entrepreneurship
f. Three Social Entrepreneurship Models
g. Social-Founder Identity
h. Micros-enterprise Development
Outcomes
Subset 2. Indigenous Entrepreneurship Approaches (Outside of Canada)
a. Indigenous Australian Entrepreneurs Exami
Calculus
(people influence of
others) processes that you perceived occurs in this specific Institution Select one of the forms of stratification highlighted (focus on inter the intersectionalities
of these three) to reflect and analyze the potential ways these (
American history
Pharmacology
Ancient history
. Also
Numerical analysis
Environmental science
Electrical Engineering
Precalculus
Physiology
Civil Engineering
Electronic Engineering
ness Horizons
Algebra
Geology
Physical chemistry
nt
When considering both O
lassrooms
Civil
Probability
ions
Identify a specific consumer product that you or your family have used for quite some time. This might be a branded smartphone (if you have used several versions over the years)
or the court to consider in its deliberations. Locard’s exchange principle argues that during the commission of a crime
Chemical Engineering
Ecology
aragraphs (meaning 25 sentences or more). Your assignment may be more than 5 paragraphs but not less.
INSTRUCTIONS:
To access the FNU Online Library for journals and articles you can go the FNU library link here:
https://www.fnu.edu/library/
In order to
n that draws upon the theoretical reading to explain and contextualize the design choices. Be sure to directly quote or paraphrase the reading
ce to the vaccine. Your campaign must educate and inform the audience on the benefits but also create for safe and open dialogue. A key metric of your campaign will be the direct increase in numbers.
Key outcomes: The approach that you take must be clear
Mechanical Engineering
Organic chemistry
Geometry
nment
Topic
You will need to pick one topic for your project (5 pts)
Literature search
You will need to perform a literature search for your topic
Geophysics
you been involved with a company doing a redesign of business processes
Communication on Customer Relations. Discuss how two-way communication on social media channels impacts businesses both positively and negatively. Provide any personal examples from your experience
od pressure and hypertension via a community-wide intervention that targets the problem across the lifespan (i.e. includes all ages).
Develop a community-wide intervention to reduce elevated blood pressure and hypertension in the State of Alabama that in
in body of the report
Conclusions
References (8 References Minimum)
*** Words count = 2000 words.
*** In-Text Citations and References using Harvard style.
*** In Task section I’ve chose (Economic issues in overseas contracting)"
Electromagnetism
w or quality improvement; it was just all part of good nursing care. The goal for quality improvement is to monitor patient outcomes using statistics for comparison to standards of care for different diseases
e a 1 to 2 slide Microsoft PowerPoint presentation on the different models of case management. Include speaker notes... .....Describe three different models of case management.
visual representations of information. They can include numbers
SSAY
ame workbook for all 3 milestones. You do not need to download a new copy for Milestones 2 or 3. When you submit Milestone 3
pages):
Provide a description of an existing intervention in Canada
making the appropriate buying decisions in an ethical and professional manner.
Topic: Purchasing and Technology
You read about blockchain ledger technology. Now do some additional research out on the Internet and share your URL with the rest of the class
be aware of which features their competitors are opting to include so the product development teams can design similar or enhanced features to attract more of the market. The more unique
low (The Top Health Industry Trends to Watch in 2015) to assist you with this discussion.
https://youtu.be/fRym_jyuBc0
Next year the $2.8 trillion U.S. healthcare industry will finally begin to look and feel more like the rest of the business wo
evidence-based primary care curriculum. Throughout your nurse practitioner program
Vignette
Understanding Gender Fluidity
Providing Inclusive Quality Care
Affirming Clinical Encounters
Conclusion
References
Nurse Practitioner Knowledge
Mechanics
and word limit is unit as a guide only.
The assessment may be re-attempted on two further occasions (maximum three attempts in total). All assessments must be resubmitted 3 days within receiving your unsatisfactory grade. You must clearly indicate “Re-su
Trigonometry
Article writing
Other
5. June 29
After the components sending to the manufacturing house
1. In 1972 the Furman v. Georgia case resulted in a decision that would put action into motion. Furman was originally sentenced to death because of a murder he committed in Georgia but the court debated whether or not this was a violation of his 8th amend
One of the first conflicts that would need to be investigated would be whether the human service professional followed the responsibility to client ethical standard. While developing a relationship with client it is important to clarify that if danger or
Ethical behavior is a critical topic in the workplace because the impact of it can make or break a business
No matter which type of health care organization
With a direct sale
During the pandemic
Computers are being used to monitor the spread of outbreaks in different areas of the world and with this record
3. Furman v. Georgia is a U.S Supreme Court case that resolves around the Eighth Amendments ban on cruel and unsual punishment in death penalty cases. The Furman v. Georgia case was based on Furman being convicted of murder in Georgia. Furman was caught i
One major ethical conflict that may arise in my investigation is the Responsibility to Client in both Standard 3 and Standard 4 of the Ethical Standards for Human Service Professionals (2015). Making sure we do not disclose information without consent ev
4. Identify two examples of real world problems that you have observed in your personal
Summary & Evaluation: Reference & 188. Academic Search Ultimate
Ethics
We can mention at least one example of how the violation of ethical standards can be prevented. Many organizations promote ethical self-regulation by creating moral codes to help direct their business activities
*DDB is used for the first three years
For example
The inbound logistics for William Instrument refer to purchase components from various electronic firms. During the purchase process William need to consider the quality and price of the components. In this case
4. A U.S. Supreme Court case known as Furman v. Georgia (1972) is a landmark case that involved Eighth Amendment’s ban of unusual and cruel punishment in death penalty cases (Furman v. Georgia (1972)
With covid coming into place
In my opinion
with
Not necessarily all home buyers are the same! When you choose to work with we buy ugly houses Baltimore & nationwide USA
The ability to view ourselves from an unbiased perspective allows us to critically assess our personal strengths and weaknesses. This is an important step in the process of finding the right resources for our personal learning style. Ego and pride can be
· By Day 1 of this week
While you must form your answers to the questions below from our assigned reading material
CliftonLarsonAllen LLP (2013)
5 The family dynamic is awkward at first since the most outgoing and straight forward person in the family in Linda
Urien
The most important benefit of my statistical analysis would be the accuracy with which I interpret the data. The greatest obstacle
From a similar but larger point of view
4 In order to get the entire family to come back for another session I would suggest coming in on a day the restaurant is not open
When seeking to identify a patient’s health condition
After viewing the you tube videos on prayer
Your paper must be at least two pages in length (not counting the title and reference pages)
The word assimilate is negative to me. I believe everyone should learn about a country that they are going to live in. It doesnt mean that they have to believe that everything in America is better than where they came from. It means that they care enough
Data collection
Single Subject Chris is a social worker in a geriatric case management program located in a midsize Northeastern town. She has an MSW and is part of a team of case managers that likes to continuously improve on its practice. The team is currently using an
I would start off with Linda on repeating her options for the child and going over what she is feeling with each option. I would want to find out what she is afraid of. I would avoid asking her any “why” questions because I want her to be in the here an
Summarize the advantages and disadvantages of using an Internet site as means of collecting data for psychological research (Comp 2.1) 25.0\% Summarization of the advantages and disadvantages of using an Internet site as means of collecting data for psych
Identify the type of research used in a chosen study
Compose a 1
Optics
effect relationship becomes more difficult—as the researcher cannot enact total control of another person even in an experimental environment. Social workers serve clients in highly complex real-world environments. Clients often implement recommended inte
I think knowing more about you will allow you to be able to choose the right resources
Be 4 pages in length
soft MB-920 dumps review and documentation and high-quality listing pdf MB-920 braindumps also recommended and approved by Microsoft experts. The practical test
g
One thing you will need to do in college is learn how to find and use references. References support your ideas. College-level work must be supported by research. You are expected to do that for this paper. You will research
Elaborate on any potential confounds or ethical concerns while participating in the psychological study 20.0\% Elaboration on any potential confounds or ethical concerns while participating in the psychological study is missing. Elaboration on any potenti
3 The first thing I would do in the family’s first session is develop a genogram of the family to get an idea of all the individuals who play a major role in Linda’s life. After establishing where each member is in relation to the family
A Health in All Policies approach
Note: The requirements outlined below correspond to the grading criteria in the scoring guide. At a minimum
Chen
Read Connecting Communities and Complexity: A Case Study in Creating the Conditions for Transformational Change
Read Reflections on Cultural Humility
Read A Basic Guide to ABCD Community Organizing
Use the bolded black section and sub-section titles below to organize your paper. For each section
Losinski forwarded the article on a priority basis to Mary Scott
Losinksi wanted details on use of the ED at CGH. He asked the administrative resident