Hi I am still looking for assistance with the below question.
Create a help or directions feature to:
- Explain how to use the features of the program.
- Implement the use of a method with no parameters for this feature.
- Modify the calculation of the total trip amount to use a method with a single parameter.
- Implement the use of a class and create object for each travel request.
- Implement at least one occurrence of exception handling.
——————————————————————————————————————————————–
import java.awt.event.ActionEvent;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import javax.swing.ButtonGroup;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JComboBox;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
public class NewJFrame2 extends javax.swing.JFrame {
public NewJFrame2() {
initComponents();
}
@SuppressWarnings(“unchecked”)
private void initComponents() {
// Create the labels using Java Swing
label1 = new java.awt.Label();
label2 = new java.awt.Label();
label3 = new java.awt.Label();
label4 = new java.awt.Label();
label5 = new java.awt.Label();
label6 = new java.awt.Label();
jTextField1 = new javax.swing.JTextField();
jTextField2 = new javax.swing.JTextField();
jTextField3 = new javax.swing.JTextField();
jTextField4 = new javax.swing.JTextField();
jTextField5 = new javax.swing.JTextField();
jTextField6 = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();
label7 = new java.awt.Label();
labelCity = new java.awt.Label();
// combo box for five different locations
jComboBoxCity = new JComboBox<String>();
jRadioButtonCarCompany1 = new JRadioButton();
jRadioButtonCarCompany2 = new JRadioButton();
jRadioButtonCarCompany3 = new JRadioButton();
buttonGroupCarCompanies = new ButtonGroup();
jPanel = new JPanel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
cities = new String[]{“New York”, “New Orleans”, “Denver”, “Seattle”, “Dallas”};
foodCosts = new int[]{70, 80, 85, 90, 95};
// assign label text and button listening event
label1.setText(“Traveler name “);
label2.setText(“Airfare cost “);
label3.setText(“Food cost “);
label4.setText(“Car cost “);
label5.setText(“Hotel cost “);
label6.setText(“Shuttle cost “);
labelCity.setText(“Location”);
jButton1.setText(“Calculation Total”);
jRadioButtonCarCompany1.setText(“AAA”);
jRadioButtonCarCompany2.setText(“Hertz”);
jRadioButtonCarCompany3.setText(“Enterprise”);
buttonGroupCarCompanies.add(jRadioButtonCarCompany1);
buttonGroupCarCompanies.add(jRadioButtonCarCompany2);
buttonGroupCarCompanies.add(jRadioButtonCarCompany3);
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jComboBoxCity.addItemListener(new ItemListener() {
@Override
public void itemStateChanged(ItemEvent e) {
// Auto-generated method stub
cmbCityActionPerformed(e);
}
});
// populate combo box
jComboBoxCity.setModel(new DefaultComboBoxModel<String>(cities));
// Item changed event is no longer triggered on populate
// now manually firing it to ensure Food Textbox is populated with the
// corrresponding cost
jComboBoxCity.setSelectedIndex(1);
jComboBoxCity.setSelectedIndex(0);
// Added layout for Label and Radio buttons in one panel.
javax.swing.GroupLayout myl = new javax.swing.GroupLayout(jPanel);
myl.setAutoCreateGaps(true);
myl.setAutoCreateContainerGaps(true);
myl.setVerticalGroup(myl.createSequentialGroup().addComponent(label5).addComponent(jRadioButtonCarCompany1)
.addComponent(jRadioButtonCarCompany2).addComponent(jRadioButtonCarCompany3));
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(123, 123, 123)
.addComponent(label7, javax.swing.GroupLayout.PREFERRED_SIZE, 409,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout
.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
.addComponent(label6, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(label2, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
// replaced label5 with jPanel that holds the label together
// with radio buttons
.addComponent(jPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton1)
.addComponent(label3, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(labelCity, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(label4, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(179, 179, 179)
.addGroup(layout
.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 184,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(layout
.createParallelGroup(
javax.swing.GroupLayout.Alignment.TRAILING,
false)
.addComponent(jTextField6,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE, 70,
Short.MAX_VALUE)
.addComponent(jTextField5,
javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField4,
javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField3,
javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jComboBoxCity,
javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField2,
javax.swing.GroupLayout.Alignment.LEADING)))))
.addGap(179, 179, 179)
.addContainerGap(123, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(21, 21, 21)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(label2, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(30, 30, 30)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(label3, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(29, 29, 29)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
// replaced label5 with jPanel that holds the label together with radio buttons
.addComponent(jPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(26, 26, 26)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(label4, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(23, 23, 23)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(label6, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(23, 23, 23)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(labelCity, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jComboBoxCity, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(28, 28, 28)
.addComponent(jButton1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 41,
Short.MAX_VALUE)
.addComponent(label7, javax.swing.GroupLayout.PREFERRED_SIZE, 121,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(19, 19, 19))
);
pack();
}
// update food field to add value based on location
private void cmbCityActionPerformed(ItemEvent evt) {
int index = jComboBoxCity.getSelectedIndex();
int cost = foodCosts[index];
jTextField3.setText(String.valueOf(cost));
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// Declare variables to hold data. Set total to equal data values held in
// arfare,food hotel, car and shuttle
String Travelername = jTextField1.getText();
double Airfarecost = Double.parseDouble(jTextField2.getText());
double Foodcost = Double.parseDouble(jTextField3.getText());
double Hotelcost = Double.parseDouble(jTextField4.getText());
double Carcost = Double.parseDouble(jTextField5.getText());
double Shuttlecost = Double.parseDouble(jTextField6.getText());
double total = Airfarecost + Foodcost + Hotelcost + Carcost + Shuttlecost;
// add ten percent of cost to total value by multiplying total by 0.1
total = total + total * 0.1;
label7.setText(“The travel cost is ” + total);
}
public static void main(String args[]) {
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if (“Nimbus”.equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(NewJFrame2.class.getName()).log(java.util.logging.Level.SEVERE, null,
ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(NewJFrame2.class.getName()).log(java.util.logging.Level.SEVERE, null,
ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(NewJFrame2.class.getName()).log(java.util.logging.Level.SEVERE, null,
ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(NewJFrame2.class.getName()).log(java.util.logging.Level.SEVERE, null,
ex);
}
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new NewJFrame2().setVisible(true);
}
});
}
private javax.swing.JButton jButton1;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField2;
private javax.swing.JTextField jTextField3;
private javax.swing.JTextField jTextField4;
private javax.swing.JTextField jTextField5;
private javax.swing.JTextField jTextField6;
private java.awt.Label label1;
private java.awt.Label label2;
private java.awt.Label label3;
private java.awt.Label label4;
private java.awt.Label label5;
private java.awt.Label label6;
private java.awt.Label label7;
private java.awt.Label labelCity;
private javax.swing.JComboBox<String> jComboBoxCity;
private javax.swing.JRadioButton jRadioButtonCarCompany1;
private javax.swing.JRadioButton jRadioButtonCarCompany2;
private javax.swing.JRadioButton jRadioButtonCarCompany3;
private javax.swing.ButtonGroup buttonGroupCarCompanies;
private javax.swing.JPanel jPanel;
private String[] cities;
private int[] foodCosts;
}
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
Hi I Am Looking For Someone To Write An Article On Why Do The Scientific Communi
/in Uncategorized /by developerHi, I am looking for someone to write an article on why do the scientific community and the public have different views about the nature and validity of global climate change Paper must be at least 1000 words. Please, no plagiarized work! 457). These developments seemingly established the presence of several defects in climate science.
Moreover, in the initial stages, the media was given to quoting scientists, with respect to global warming. As such, scientists were deemed to be the primary sources of such information. Subsequently, the media resorted to quoting politicians, interests groups and other entities who had a vested interest in the ramifications of this issue (Durfee & Corbett, 2005, p. 88). The media, with its penchant for sensationalism, had preferred to promote the view that there was considerable uncertainty regarding global warming.
Furthermore, a small section of scientists disagree with the mainstream scientific evaluation regarding global warming. These individuals entertain various opinions regarding the cause behind this phenomenon. Some of these scientists declare that it has not been determined whether the primary cause of global warming is human activity (Haldar, 2010, p. 140). On the other hand, there are a few scientists who ascribe global warming to increased solar activity, cosmic rays, natural variation, ocean currents, or unidentified natural causes (Haldar, 2010, p. 141).
Nevertheless, some of the studies on global warming have contended that the contemporary level of solar activity is at a maximum. This has been conjectured on the basis of sunspot activity and other factors. The Sun’s output can vary, on account of solar activity. Researchers, such as Solanki have held that solar activity for the past 6 to 7 decades could have been the greatest in eight millennia (Haldar, 2010, p. 141). However, they have declared that solar activity is not a significant contributor to the contemporary global warming.
In addition, modern science presents its results as probabilistic and statistical data. Thus, there is no certainty, and this increases with the complexity of the phenomena being considered.
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
Hi I Am Looking For Someone To Write An Article On Why Peace Processes Fail To E
/in Uncategorized /by developerHi, I am looking for someone to write an article on why peace processes fail to end violence Paper must be at least 3500 words. Please, no plagiarized work! The failure of talks among governments, societies, rebels, communities and other parties faced with conflict to come to consensus is discussed in the paper. Various examples of such instances have been given, and the challenges they face in the negotiation process outlined. Attempts and failure of dialogue in solving a conflict eliciting new beginning of the conflict have also been illustrated in this document. Factors hindering peace methods in curbing the conflicts have also been widely discussed. In various cases, both international and domestic, mediation has always failed. this is discussed with various relevant examples in the world. .Most warring parties embark on physical confrontation as a means of solving the problem. Political and fiscal reforms will be noted to assist in decision-making during the negotiation process. This often results in the elimination of peace as a solution to the problem that resulted in war. This idea has been viewed from different angles in this document such that it is realized that peace often fails in the process of ending violence. .The definition of peace may be varied, but, in this context, it can be summarized or explicated as the absence of hostilities or war. It can be attained by various applications depending on the context. Establishment of peace through peace method has proved inefficient in most cases thus termed to have failed in ending violence. This method is mostly applied through negotiations and settling of disputes through peacebuilding and peacekeeping. Political factors, in most cases, are the culprit of war thus making peace a difficult avenue to take in bringing things under control. The willingness of the warring parties to have a round table talk is a problem.
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
Hi I Am Looking For Someone To Write An Article On Why Research Methods Are Crit
/in Uncategorized /by developerHi, I am looking for someone to write an article on why research methods are critically important to social work research Paper must be at least 2750 words. Please, no plagiarized work! Social work research investigates psychological issues, preventative interventions, and community, policy and service issues, for the benefit of the individual, the community they live within, policy makers, educators, clinicians and social work consumers in general. Social work research utilizes a variety of methods to extend understandings of individuals and groups within a society, and sometimes across cultures (Morris, 2005). Research methods are based on scientific inquiry that can be represented by a scientific method. This is a set of procedures used to investigate a research question to acquire new knowledge about the world, or to correct and integrate previous knowledge, using observable and measurable data, which is subject to the laws of reasoning and logic (Morris, 2005). Research methods are employed to control for extraneous variables that may influence the results of measurements and to guard against investigator bias, or the subjective bias of the participant (Morris, 2005). The paper aims to identify reasons why the social work researcher should critically reflect on research findings that result from their studies. Firstly, two important methodological issues shall be highlighted in regards to reliability and validity of a study. Second, the advantages and disadvantages of qualitative and quantitative research methods shall be provided, as well as providing an example of each method type. Next, ethical and power issues relevant to social work research shall be discussed. Finally, a conclusion shall synthesize the main points of the paper that indicate the importance of research methods to the social work researcher.
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
Hi I Am Looking For Someone To Write An Article On World Litertur Paper Must Be
/in Uncategorized /by developerHi, I am looking for someone to write an article on world litertur Paper must be at least 500 words. Please, no plagiarized work! The Involvement of the Gods The theme of one being god-like, or a god is present in The Iliad, The Odyssey, Dr. Faustus, and The Prince. All four of these works present the concept of a main character being god-like, and this god-like passion being a force of that individual’s ambition.
In the Iliad and the Odyssey, the gods are seen to be actively involved in the lives of men, or at least, in special men and women. Agamemnon and Achilles, for example, were approached by the goddess Minerva to stop their brawl against each other: “I come from heaven, if you will hear me, to bid you stay your anger. Juno has sent me, who cares for both of you alike. Cease, then, this brawling, and do not draw your sword…” (Iliad, Book 1). This same interaction with humans could be observed throughout the Odyssey as well. In book 1, we see Minerva disguising herself as Anchialus to give counsel to Ulysses’ son, Telemachus. She did so to give him the courage to wait for his father since his father is still alive. The gods are directly involved with humans, not only to aid them or to answer their prayers or to protect them, but even to take advantage of them, or to be their parents. Achilles has a nymph for a mother, present in The Iliad. The relation of the gods to the humans simulates almost the social interaction that humans have with each other, except that, because of the gods’ supernatural capacities, this interaction with the gods becomes richer (in a sense, becomes more “supernatural”). The interaction is richer in the sense that the interaction produces results that may not necessarily happen when humans merely interact with each other. Probably, no human interaction could ever produce an Achilles for example. Poseidon’s hatred of Odysseus brought him everywhere leading to an adventure that no mere mortal of lesser status than Ulysses could ever have or handle.
In Dr. Faustus, we have a much weaker protagonist—Faustus certainly does not command the respect of an Achilles or an Odysseus, but he is still god-like. Granted, all characters have their tragic flaws, but Faustus is difficult to like, and this factor makes it easier for the audience to watch him sell his soul to the devil. To reach his goal Faustus, ‘swollen with cunning of a self-conceit’ does not hesitate to sell his soul to Mephistopheles for twenty-four years of supernatural powers. After rejecting all subjects as unworthy of achieving immortal fame, he becomes romantically obsessed with ‘metaphysics of the magicians’ and hastily concludes: ‘A sound magician is a demi-god.’ (I.1.63). The futility of his misdirected ambition is described in the Prologue: ‘His waxen wings did mount above his reach, / And melting, heavens conspired his overthrow.’ (Pro.20-21) Faustus thus wants to be god-like, much like Achilles and the typical Greek hero (and he even requests access to Helen of Troy). The symbolism in much of the play harkens back to Green and Roman religion, but Faustus, unlike Achilles and Odysseus, is much more difficult to accept as a hero because of his pettiness and the fact he was not born with his talents. rather, he exchanged for them.
In Machiavelli’s The Prince, we are presented with a similar dark character—Cesare Borgia, whose genius and ruthlessness have made him remembered for generations. Borgia is like Faustus, Achilles, and Odysseus in his drive and ambition, and also presented to us as a dark character like Faustus. While Borgia is not, in fact, as god-like as the other characters, because it is obvious that he was historically a mortal, he was the Pope’s son, and he also was such a strong, forceful, and intelligent character that he appeared god-like. His reference for Julius Cesar perhaps only further links him to this god-like status.
Therefore, the protagonists present in all of these works appear to be god-like, although they were all, in fact, considered to be mortals (with the exception, perhaps of the half-god Achilles, who was still mortal in the end). By presenting these powerful men with god-like qualities, the writers are able to emphasize the strengths and weaknesses of these characters.
Works Cited
The Iliad, trans. Samuel Butler. 1994-2000. The Internet Classics Archive. 17 May 2011. .
The Odyssey, trans. Samuel Butler. 1994-2000. The Internet Classics Archive. 17 May 2011.
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
Hi I Am Looking For The Below Topic Assignment Pick From The Following List Of E
/in Uncategorized /by developerhi i am looking for the below topic assignment
Pick from the following list of Enterprise Risk Management topics for your research paper:
From the topics, narrow your topic down a little and then write how you would utilize Enterprise Risk Management for these topics. You an narrow the topics down to a specific company but want the overall theme to align with the list. Your research paper should be 6-10 pages and follow the following structure:
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
Hi I Am Need Of A One Full Page Double Spaced Paper On Abu Mena It Needs To Stat
/in Uncategorized /by developerHi. I am need of a one full page, double spaced paper on “Abu Mena”. It needs to state why that endangered site is in jeapordy and what is being done about it. I will also need 3 different sources on a separate page. This assignment is due by 11:59 tonight!
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
Hi I Am Really Having Trouble With These Thank You So Much
/in Uncategorized /by developerHi, I am really having trouble with these. I tried some but I would like someone to check my answers and also help me. Thank you so much!!
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
Hi I Am Nol A Student In Doctorate At Lspm Lab Paris 13 University I Have A Umat
/in Uncategorized /by developerHi, I am Noël, a student in doctorate at LSPM lab, Paris 13 University. I have a UMAT(user subroutine) which complete well in abaqus/standard. But, i want to abaqus/explicit from a specific calculation need. What i have to modify in order to adapt it ? Thanks
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
Hi I Am Still Looking For Assistance With The Below Question Explain How To Use
/in Uncategorized /by developerHi I am still looking for assistance with the below question.
Create a help or directions feature to:
——————————————————————————————————————————————–
import java.awt.event.ActionEvent;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import javax.swing.ButtonGroup;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JComboBox;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
public class NewJFrame2 extends javax.swing.JFrame {
public NewJFrame2() {
initComponents();
}
@SuppressWarnings(“unchecked”)
private void initComponents() {
// Create the labels using Java Swing
label1 = new java.awt.Label();
label2 = new java.awt.Label();
label3 = new java.awt.Label();
label4 = new java.awt.Label();
label5 = new java.awt.Label();
label6 = new java.awt.Label();
jTextField1 = new javax.swing.JTextField();
jTextField2 = new javax.swing.JTextField();
jTextField3 = new javax.swing.JTextField();
jTextField4 = new javax.swing.JTextField();
jTextField5 = new javax.swing.JTextField();
jTextField6 = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();
label7 = new java.awt.Label();
labelCity = new java.awt.Label();
// combo box for five different locations
jComboBoxCity = new JComboBox<String>();
jRadioButtonCarCompany1 = new JRadioButton();
jRadioButtonCarCompany2 = new JRadioButton();
jRadioButtonCarCompany3 = new JRadioButton();
buttonGroupCarCompanies = new ButtonGroup();
jPanel = new JPanel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
cities = new String[]{“New York”, “New Orleans”, “Denver”, “Seattle”, “Dallas”};
foodCosts = new int[]{70, 80, 85, 90, 95};
// assign label text and button listening event
label1.setText(“Traveler name “);
label2.setText(“Airfare cost “);
label3.setText(“Food cost “);
label4.setText(“Car cost “);
label5.setText(“Hotel cost “);
label6.setText(“Shuttle cost “);
labelCity.setText(“Location”);
jButton1.setText(“Calculation Total”);
jRadioButtonCarCompany1.setText(“AAA”);
jRadioButtonCarCompany2.setText(“Hertz”);
jRadioButtonCarCompany3.setText(“Enterprise”);
buttonGroupCarCompanies.add(jRadioButtonCarCompany1);
buttonGroupCarCompanies.add(jRadioButtonCarCompany2);
buttonGroupCarCompanies.add(jRadioButtonCarCompany3);
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jComboBoxCity.addItemListener(new ItemListener() {
@Override
public void itemStateChanged(ItemEvent e) {
// Auto-generated method stub
cmbCityActionPerformed(e);
}
});
// populate combo box
jComboBoxCity.setModel(new DefaultComboBoxModel<String>(cities));
// Item changed event is no longer triggered on populate
// now manually firing it to ensure Food Textbox is populated with the
// corrresponding cost
jComboBoxCity.setSelectedIndex(1);
jComboBoxCity.setSelectedIndex(0);
// Added layout for Label and Radio buttons in one panel.
javax.swing.GroupLayout myl = new javax.swing.GroupLayout(jPanel);
myl.setAutoCreateGaps(true);
myl.setAutoCreateContainerGaps(true);
myl.setVerticalGroup(myl.createSequentialGroup().addComponent(label5).addComponent(jRadioButtonCarCompany1)
.addComponent(jRadioButtonCarCompany2).addComponent(jRadioButtonCarCompany3));
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(123, 123, 123)
.addComponent(label7, javax.swing.GroupLayout.PREFERRED_SIZE, 409,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout
.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
.addComponent(label6, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(label2, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
// replaced label5 with jPanel that holds the label together
// with radio buttons
.addComponent(jPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton1)
.addComponent(label3, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(labelCity, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(label4, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(179, 179, 179)
.addGroup(layout
.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 184,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(layout
.createParallelGroup(
javax.swing.GroupLayout.Alignment.TRAILING,
false)
.addComponent(jTextField6,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE, 70,
Short.MAX_VALUE)
.addComponent(jTextField5,
javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField4,
javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField3,
javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jComboBoxCity,
javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField2,
javax.swing.GroupLayout.Alignment.LEADING)))))
.addGap(179, 179, 179)
.addContainerGap(123, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(21, 21, 21)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(label2, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(30, 30, 30)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(label3, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(29, 29, 29)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
// replaced label5 with jPanel that holds the label together with radio buttons
.addComponent(jPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(26, 26, 26)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(label4, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(23, 23, 23)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(label6, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(23, 23, 23)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(labelCity, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jComboBoxCity, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(28, 28, 28)
.addComponent(jButton1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 41,
Short.MAX_VALUE)
.addComponent(label7, javax.swing.GroupLayout.PREFERRED_SIZE, 121,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(19, 19, 19))
);
pack();
}
// update food field to add value based on location
private void cmbCityActionPerformed(ItemEvent evt) {
int index = jComboBoxCity.getSelectedIndex();
int cost = foodCosts[index];
jTextField3.setText(String.valueOf(cost));
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// Declare variables to hold data. Set total to equal data values held in
// arfare,food hotel, car and shuttle
String Travelername = jTextField1.getText();
double Airfarecost = Double.parseDouble(jTextField2.getText());
double Foodcost = Double.parseDouble(jTextField3.getText());
double Hotelcost = Double.parseDouble(jTextField4.getText());
double Carcost = Double.parseDouble(jTextField5.getText());
double Shuttlecost = Double.parseDouble(jTextField6.getText());
double total = Airfarecost + Foodcost + Hotelcost + Carcost + Shuttlecost;
// add ten percent of cost to total value by multiplying total by 0.1
total = total + total * 0.1;
label7.setText(“The travel cost is ” + total);
}
public static void main(String args[]) {
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if (“Nimbus”.equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(NewJFrame2.class.getName()).log(java.util.logging.Level.SEVERE, null,
ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(NewJFrame2.class.getName()).log(java.util.logging.Level.SEVERE, null,
ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(NewJFrame2.class.getName()).log(java.util.logging.Level.SEVERE, null,
ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(NewJFrame2.class.getName()).log(java.util.logging.Level.SEVERE, null,
ex);
}
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new NewJFrame2().setVisible(true);
}
});
}
private javax.swing.JButton jButton1;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField2;
private javax.swing.JTextField jTextField3;
private javax.swing.JTextField jTextField4;
private javax.swing.JTextField jTextField5;
private javax.swing.JTextField jTextField6;
private java.awt.Label label1;
private java.awt.Label label2;
private java.awt.Label label3;
private java.awt.Label label4;
private java.awt.Label label5;
private java.awt.Label label6;
private java.awt.Label label7;
private java.awt.Label labelCity;
private javax.swing.JComboBox<String> jComboBoxCity;
private javax.swing.JRadioButton jRadioButtonCarCompany1;
private javax.swing.JRadioButton jRadioButtonCarCompany2;
private javax.swing.JRadioButton jRadioButtonCarCompany3;
private javax.swing.ButtonGroup buttonGroupCarCompanies;
private javax.swing.JPanel jPanel;
private String[] cities;
private int[] foodCosts;
}
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
Hi I Am Studying Neoclassical Growth Theory And Want To Clarify What An Exogenou
/in Uncategorized /by developerHi, I am studying neoclassical growth theory and want to clarify what an exogenous increase in technology, A, means. (Please correct me if I’m wrong):
I am not sure if I have a wrong understanding of exogenous tech change. Would really appreciate some help!
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"