Hello, I am using IntelliJ IDEA with JavaFX to build a travel expensive calculator, but I dont konw how to conver user input to doulbe. Pleasse teach me how to add all textfield and display it after I click submit.
public class Main extends Application {
@Override
public void start(Stage primaryStage) throws Exception{
Label label1 = new Label ("(1) Number of days on the trip");
Label label2 = new Label ("(2) Transportation cost (choose one only)");
Label label3 = new Label ("Airfare Cost ");
Label label4 = new Label ("Miles driven ");
Label label5 = new Label ("(3) Conference registration cost ");
Label label6 = new Label ("(4) Lodging Cost (per night) ");
Label label7 = new Label ("(5) Food cost (total) ");
Label label8 = new Label ("(6) Lodging Cost (per night) ");
Label TotalExpensive = new Label("Total expenses: ");
Label TotalExpensiveResult = new Label(" ");
TextField field1 = new TextField();
TextField field2 = new TextField();
TextField field3 = new TextField();
TextField field4 = new TextField();
TextField field5 = new TextField();
TextField field6 = new TextField();
TextField field7 = new TextField();
Button button1 = new Button ("Submit"); //Create submit button
Button button2 = new Button ("Cancel"); //Create Cancel button
HBox hBox = new HBox(20, label1, field1);
HBox hBox1 = new HBox(10, label2);
HBox hBox2 = new HBox(15, label3, field2);
HBox hBox3 = new HBox(10, label4, field3);
HBox hBox4 = new HBox(12, label5, field4);
HBox hBox5 = new HBox(32, label6, field5);
HBox hBox6 = new HBox(75, label7, field6);
HBox hBox7 = new HBox(32, label8, field7);
HBox hBox8 = new HBox(20, button1, button2);
HBox hBox9 = new HBox(20, TotalExpensive, TotalExpensiveResult);
hBox.setAlignment(Pos.BASELINE_RIGHT);
hBox1.setAlignment(Pos.BASELINE_LEFT);
hBox2.setAlignment(Pos.BASELINE_RIGHT);
hBox3.setAlignment(Pos.BASELINE_RIGHT);
hBox4.setAlignment(Pos.BASELINE_RIGHT);
hBox5.setAlignment(Pos.BASELINE_RIGHT);
hBox6.setAlignment(Pos.BASELINE_RIGHT);
hBox7.setAlignment(Pos.BASELINE_RIGHT);
hBox8.setAlignment(Pos.CENTER);
hBox9.setAlignment(Pos.CENTER);
hBox.setPadding(new Insets(0,0,15,0));
hBox3.setPadding(new Insets(0,0,15,0));
hBox8.setPadding(new Insets(25,0,15,0));
GridPane gridPane = new GridPane ();
gridPane.add(hBox, 0, 0);
gridPane.add(hBox1, 0, 1);
gridPane.add(hBox2, 0, 2);
gridPane.add(hBox3, 0, 3);
gridPane.add(hBox4, 0, 4);
gridPane.add(hBox5, 0, 5);
gridPane.add(hBox6, 0, 6);
gridPane.add(hBox7, 0, 7);
gridPane.add(hBox8, 0, 8);
gridPane.add(hBox9, 0, 9);
//*******Here*********
button1.setOnAction(event -> {
double cost = field1;
TotalExpensiveResult.setText("Total Cost: $" + cost);
});
gridPane.setAlignment(Pos.CENTER);
gridPane.setPadding( new Insets(20, 20, 20, 20));
gridPane.setVgap( 10);
gridPane.setHgap( 10);
primaryStage.setTitle("Travel Expenses Calculator");
primaryStage.setScene(new Scene (gridPane));
primaryStage.show();
}In: Computer Science
Purpose: To strengthen and demonstrate your knowledge of the Immune and Lymphatic System and its systemic relationship in the body. The ability to apply this content and think systemically with physiology processes will benefit you as a healthcare student and practitioner.
Criteria for Success: To be successful you will make sure you complete diagrams as instructed in the tasks, including proper values (if required) on the x & y-axis as well as labeling those. You also need to make sure to list or provide explanation where necessary or where it is asked in the tasks. A successful submission would be very clear and easy to read and it would be easy to identify antibodies, immune responses, etc. For submission, you can submit them as a pdf or image from a phone if you are drawing these at home. I also suggest looking at the homework you have completed and the provided examples to help you in completing these tasks.
Case Studies Tasks:
Daniel: Susan and Joe had a wonderful little boy
named Daniel, bu he had been having an awful lot of bacterial
infections and he was barely a year old. It seemed that the
antibiotics cleared up one bacterial respiratory infection only to
have another follow shortly. The scary thing was that Daniel had
just fought of a case of pneumonia caused
by Pneumocystis carnii, a fungal infection that was usually found
in people with HIV. Waiting for the test
results of an HIV test for their little boy was one of the worst
experiences ever. Thank goodness it came back negative.
However, it seemed that their troubles were just beginning. After
this last lung infection, the fungal one, and
a negative HIV test, their doctor had ordered a number of other
blood tests, including a genetic test that
Susan didn’t fully understand. Apparently the doctor was worried
about Daniel’s immune system functions.
Susan had also met with a genetic counselor who collected a family
history of any immune disorders. The
details were vague, but Susan’s mother, Helen, knew that one of her
three brothers had died young from an
unexplained lung infection. Unfortunately, Grandma Ruth had passed
away a few years ago, leaving them
with numerous unanswered questions. Susan and Joe had an
appointment with their doctor that afternoon to go over the
results. When they arrived Dr. Dresdner led them into an office
where Ms. Henchey, the genetic counselor, waited. This can’t be
good, thought Susan. The doctor began by explaining that they had
analyzed Daniel’s blood and found that while he had normal levels
of B cells and T cells, his antibody levels were anything but
normal. The levels of
IgG, IgA, and IgE were very low, almost undetectable, and Daniel
had abnormally high levels of IgM and IgD.
It appears that his immune system failed to undergo immunoglobulin
isotype switching due to a CD40 ligand mutation in Daniel's
DNA.
Charlotte: A 60-year-old woman was fit and well until late in the summer she was out tending to her lovely tulip garden when she was stung on the back of her right hand by a pesky wasp. This was nothing new, unfortunately as she had been stung a couple times in the last two weeks. With in minutes after this sting Charlotte fell to the ground and looked as though she was becoming pale/grayish and was gasping for air. After five minutes it was getting worse, but likely a neighbor doctor rushed over and administered an epinephrine shot, which provided support until the ambulance could arrive.
Jessalyn: Jessalyn regularly goes in for blood transfusions. Jessalyn's blood type is O+. Normally her blood transfusions go well and her nurse, Traci, does a great job of double checking the blood type she is receiving. This time Traci is out of town and she gets a nurse who was able to skate through school doing the bare minimum and doesn't really care that much about his job. He doesn't double check the blood type for her transfusion and . . .
In: Biology
Special Checking Is Handed a Loss Sammy Benson supervised greater Downtown Bank's Special Check Sorting Unit, which processed odd-sized, foreign, and damaged checks. Once the checks were sent to his unit, they were manually interpreted, recorded, entered into the appropriate account transactions, and filed for return. Sammy supervised three check sorting clerks in his department. These jobs were staffed by relatively untrained, entry-level individuals who had just graduated from high school. During the summer, Greater Downtown Bank hired low-income, disadvantaged young people for various jobs throughout the company as part of its Community Upbeat campaign. To participate in this effort, representatives from the Human Resources Department visited selected high schools to interview students. Since the students were already prescreened by the school, the interviews were little more than "get-acquainted" discussions. Last summer, Sammy's unit supplied one of the jobs in this effort. Juanita Perez was hired in this context to work as a Special Checks clerk. She was scheduled to begin working in June after graduating from the local vocational high school, where she maintained a C average. This was her first full-time job. When Juanita reported to the bank for a brief induction program, she was scared. It was not only her first day on the job, but the first time she had ever been in the bank. Nevertheless, she kept up her courage and reported to the Human Resources Department as planned. After waiting in the lobby for a while, she was taken to a small meeting room where she and two other new hires were shown how to fill out and sign various forms and documents. Next, an administrative assistant read to the new hires a series of personnel policies about work schedules, breaks, overtime, pay secrecy, attendance, and benefits. She signed more forms, wondering what all this meant. As the meeting drew to a close, Sammy Benson arrived after receiving a call from Human Resources. He and Juanita were introduced for the first time. Sammy escorted Juanita back to the Human Resources Department, showing her the bank's various offices and other departments. He gave her a quick tour of his area, introducing her to the other clerks as he went. Sammy was careful not to interrupt their work, however, nor did he explain to Juanita what they were doing. It was obvious by the expressions on their faces that the employees were surprised to see her. After a quick tour and passing introductions, Sammy gave Juanita some basic instructions in her job. He gave Juanita the job of processing foreign checks. He felt this task was the easiest job to learn and do correctly. During her first day on the job, Sammy spent about 15 minutes showing her the procedure: inspect, record, enter, adjust, file. Since he had to prepare for a meeting later that day, that was all the time he could spend with her. By the end of the first week, Juanita seemed to be getting the hang of things: She came to work on time, stayed busy, and was fairly pleasant and easy to get along with. Sammy intended to spend as much time as possible with her during this period; however, because she seemed to catch on quickly and he was very busy, he saw her only occasionally over the next few weeks. Then, after about a month, Juanita called in sick one day. A replacement was brought in, and as she looked through Juanita's desk for a notepad, she found what appeared to be a large pile of unfiled checks. When Sammy looked through the pile, he found that there were, in fact, quite a few unprocessed checks, some of which dated from Juanita's first day on the job. As they were the more unusual kinds of checks the department handled, Sammy assumed that she apparently had not known how to process them. Unfortunately, the combined value of these checks totaled around $65,000. The bank had lost the "float" value on them, and Sammy knew that customer complaints would be coming in soon. Sammy expected Juanita to come back to work the following day, and he wondered if he should write up a warning notice for her immediately. (Source: Alan Clardy, Ph.D., Advantage Human Resources, HRD Press, 1994) Based on the case study, answer the following questions. 1 Why do you think the problem occurs? What probably cause the problem of Juanita's poor performance? Explain.
2 Sammy is considering issuing a formal written warning notice to Juanita upon her return.
a) Do you think this is an appropriate action to take? Why is it and why is it not? Discuss.
] b) How can Sammy be sure he is making the right decision either to issue or not issuing the warning notice? Propose two (2) possible ways that can guide Sammy in making effective decisions.
3 What could be done by Sammy to manage Juanita's poor performance problem? Suggest four (4) methods of how Sammy can provide Juanita with skills and knowledge to improve her performance. Provide suitable example to support your answer.
4 Managers have the most significant impact on employee performance. Based on this statement, how would Sammy align the performance of his staff with the organizational goals? Propose four (4) work practices that Sammy can apply which lead to both high individual and high organizational performance. Provide suitable example to support your answer.
In: Operations Management
A major car manufacturer wants to test a new engine to determine whether it meets new air pollution standards. The mean emission of all engines of this type must be lower than 20 parts per million of carbon. A number of engines are manufactured for testing purposes, and the emission level of each is determined. The data (in parts per million) are listed below:
15.6, 16.2, 22.5, 20.5, 16.4, 19.4, 16.6, 17.9, 12.7, 13.9
a). At 5% level of significance, is there sufficient evidence to allow the manufacturer to conclude that this type of engine meets the pollution standard? Your conclusion must be in terms of the P-Value as well as setting up a Rejection Region. Please show work.
b). Which statistical distribution should be applied in this situation and why? Explain carefully.
c). Knowing that a significant amount of capital investment were required to manufacture the engine, what, if anything, does the manufacturer have to be concerned about with respect to the conclusion of part (a)? Explain
d). Based on a 95% confidence level, estimate the mean emission of all engines.
e). Carefully interpret this interval estimation.
f). Explain carefully whether or not there is sufficient evidence to allow the manufacturer to conclude that this type of engine meets the pollution standard using the estimation in
In: Statistics and Probability
A major car manufacturer wants to test a new engine to determine whether it meets new air pollution standards. The mean emission of all engines of this type must be lower than 20 parts per million of carbon. A number of engines are manufactured for testing purposes, and the emission level of each is determined. The data (in parts per million) are listed below:
15.6, 16.2, 22.5, 20.5, 16.4, 19.4, 16.6, 17.9, 12.7, 13.9
a). At 5% level of significance, is there sufficient evidence to allow the manufacturer to conclude that this type of engine meets the pollution standard? Your conclusion must be in terms of the P-Value as well as setting up a Rejection Region. Please show work.
b). Which statistical distribution should be applied in this situation and why? Explain carefully.
c). Knowing that a significant amount of capital investment were required to manufacture the engine, what, if anything, does the manufacturer have to be concerned about with respect to the conclusion of part (a)? Explain
d). Based on a 95% confidence level, estimate the mean emission of all engines.
e). Carefully interpret this interval estimation.
f). Explain carefully whether or not there is sufficient evidence to allow the manufacturer to conclude that this type of engine meets the pollution standard using the estimation in
In: Statistics and Probability
1. Buyers of new cars can consider Internal Combustion Engine (ICE) cars or new electric cars (EVs). If the price of ICE cars goes up because of a higher carbon tax, then the demand for EV cars will increase. Is it True or False?
2. An increase in the cost of aluminium will cause the supply of soft-drink cans to increase. Is it True or False?
3.The incidence of a tax is shared between buyers and sellers in the long run, whether or not the industry is constant cost. Is it True or False
4. An increase in the demand for avocados will in the short run, lead to a rise in the equilibrium price of avocados and more growers will enter the industry. Is it True or False
In: Economics
Write a report on Dubai's company Al Rawabi & its new product is cheese & coffee with new packaging & flavors.
Write the report as if it is for your workplace boss who has asked for a summary of the most important information concerning the country and their business implications, and based on that your recommended strategy to introduce a product there with proper justification.
The Report should contain: 1. Strategic Focus and Plan; 2. Goals; 3. Situational Analysis; 4. SWOT Analysis; 5. Promotional Strategy; and 6. Price Strategy. 7. Target. 8. Five Year Prediction
In: Economics
Training for New Computer Systems Enhances Implementation
Many health systems have been upgrading to new computer systems. If you have ever experienced this kind of change, you know that it is quite a complex process with many opportunities to derail the project. Several years ago, a local health system implemented a computer upgrade to a new electronic medical record (EMR) system. Management and administration had been preparing for this upgrade for several years. The administration allocated the necessary resources to make the implementation a success not only financially but also in terms of increasing information technology (IT) staff and training of “superusers” or champions. These “superusers” were from within the organization and from every level of the organization and were given extensive training well ahead of other users. In preparation for this change, management spent time and resources educating those working within the organization about the importance of this upgrade in achieving the mission of the organization by increasing connectivity with other health systems, maximizing reimbursement, and achieving meaningful use compliance (innovations–values fit). This pre-education enhanced the implementation climate by helping the intended users understand that the transition to an upgraded EMR was an organizational priority, thereby enhancing the implementation effectiveness. Over several months, the targeted users (nursing staff, providers, managers, front desk workers, and coding and billing personnel) were trained in preparation for the change. Target dates for the change were set, and clinic schedules were reduced to allow time for using the new system (another example of management support). Although it was a bumpy ride, the upgrade to the new computer system, as well as the implementation effectiveness, was very successful. Others may argue that the innovation effectiveness (the benefit of the new computer system to the organization and ease of use) is not quite so apparent.
Questions
1. Who are/would (be) the champions in your organization? What qualifies them to be champions, or which qualities do they possess?
2. When your organization has implemented a major change, did it have the benefit of a strong implementation climate? Which steps did the organization take to ensure successful implementation effectiveness? What could it have changed to improve the climate and effectiveness?
3. How did your organization determine the success of the implementation of the new policy or innovation? Which measures were evaluated? Should the organization have reexamined the implementation or made the decision to change course? Why or why not?
In: Nursing
Your company plans to raise $100 million to finance its new two-year project by issuing new two-year bonds (with annual coupons and annual compounding). Your company and its new project are currently considered risk-free. Unfortunately, covenants in the preexisting debt issued during harder times impose restrictions on the amount of new debt. Specifically, if the face value of the new bond issue is below $100 million, your company can promise to pay an annual coupon of up to 5%. However, if the face value of the new issue is between $100 and $110 million, your company can only promise to pay an annual coupon of up to 1% on the entire issue. Your company is not allowed to issue bonds with the face value above $110 million. The zero-coupon yield curve for the next two years is as follows:
|
Year |
Rate |
|
1 |
5% |
|
2 |
6% |
Will your company be able to finance this new project?
|
a. |
My company will be able to raise $100.00 million and will finance the project. |
|
|
b. |
My company will be able to raise $99.93 million and will not finance the project. |
|
|
c. |
My company will be able to raise $98.21 million and will not finance the project. |
|
|
d. |
My company will be able to raise $101.82 million and will finance the project. |
|
|
e. |
My company will be able to raise $98.17 million and will not finance the project. |
In: Finance
Firm A’s new project needs $325,000 for new fixed assets (long term assets), $160,000 for additional inventory and $35,000 for additional accounts receivable. This is a five year project. Use straight line depreciation approach to calculate the depreciation expenses. By the end of the fifth year, the value of the fixed assets = 0. However, the market value of the assets = 25% of their original cost. At the end of the project, the net working capitals tend to return to its original level. Annual sales is expected to be $554,000 and costs = $430,000. The tax rate = 35%. Required rate of return = 15%.
1.What is the initial cost of this project?
2. What is the operating cash flows from year 1 to year 4
3. What is the operating cash flows in year 5 (last year)
4. Calculate npv
|
Project S and Project L are two projects under consideration, both projects have 3-year lives. |
||||||||||
|
The projects' cash flows are as follows (in thousands of dollars): |
||||||||||
|
Year |
CFL |
CFS |
||||||||
|
0 |
($200) |
($200) |
||||||||
|
1 |
$40 |
$150 |
||||||||
|
2 |
$100 |
$60 |
||||||||
|
3 |
$120 |
$50 |
||||||||
|
(1) What is each project’s NPV? (5 points) |
||||||||||
|
WACC |
10% |
|||||||||
|
NPVL = |
||||||||||
|
NPVS = |
||||||||||
|
(2) What is each project’s IRR? (6 points) |
||||||||||
|
IRRL = |
||||||||||
|
IRRS = |
||||||||||
|
(3) What is the crossover rate of the NPV profiles of the two projects? (3 points) |
||||||||||
|
crossover rate = |
||||||||||
|
(4) Find the MIRRs for Projects L and S. (6 points total) |
||||||||||
|
MIRRL = |
||||||||||
|
MIRRS = |
||||||||||
In: Finance