Questions
Explain why there is more to system integration than simply recompiling the code of the software.

Explain why there is more to system integration than simply recompiling the code of the software.

In: Computer Science

Discuss how information overload have become a problem for your works or study. Based on your...

Discuss how information overload have become a problem for your works or study.

Based on your experience, what personal and organisational solutions could you recommend in solving the information overload problem? Discuss

In: Computer Science

Assume you have a wireless network of 90m coverage and this network is connectionless oriented. There...

Assume you have a wireless network of 90m coverage and this network is connectionless oriented. There are two networks topology (WIFI or WIMAX). Critically analyse the given networks and answer the following:
1- Compare between WIFI and WIMAX
2- Which are of them is better to be used in this case

In: Computer Science

Modify the Tip Calculator app to allow the user to enter the number of people in...

Modify the Tip Calculator app to allow the user to enter the number of people in the party. Calculate and display the amount owed by each person if the bill were to be split evenly among the party members.

Code:

----------------TipCalculator.java-----------------------

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class TipCalculator extends Application {
@Override
public void start(Stage stage) throws Exception {
Parent root =
FXMLLoader.load(getClass().getResource("TipCalculator.fxml"));

Scene scene = new Scene(root); // attach scene graph to scene
stage.setTitle("Tip Calculator"); // displayed in window's title bar
stage.setScene(scene); // attach scene to stage
stage.show(); // display the stage
}

public static void main(String[] args) {
// create a TipCalculator object and call its start method
launch(args);
}
}

--------------------TipCalculatorController.java--------------------

import java.math.BigDecimal;
import java.math.RoundingMode;
import java.text.NumberFormat;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.control.Slider;
import javafx.scene.control.TextField;

public class TipCalculatorController {
// formatters for currency and percentages
private static final NumberFormat currency =
NumberFormat.getCurrencyInstance();
private static final NumberFormat percent =
NumberFormat.getPercentInstance();

private BigDecimal tipPercentage = new BigDecimal(0.15); // 15% default

// GUI controls defined in FXML and used by the controller's code
@FXML
private TextField amountTextField;

@FXML
private Label tipPercentageLabel;

@FXML
private Slider tipPercentageSlider;

@FXML
private TextField tipTextField;

@FXML
private TextField totalTextField;

// calculates and displays the tip and total amounts
@FXML
private void calculateButtonPressed(ActionEvent event) {
try {
BigDecimal amount = new BigDecimal(amountTextField.getText());
BigDecimal tip = amount.multiply(tipPercentage);
BigDecimal total = amount.add(tip);

tipTextField.setText(currency.format(tip));
totalTextField.setText(currency.format(total));
}
catch (NumberFormatException ex) {
amountTextField.setText("Enter amount");
amountTextField.selectAll();
amountTextField.requestFocus();
}
}

// called by FXMLLoader to initialize the controller
public void initialize() {
// 0-4 rounds down, 5-9 rounds up
currency.setRoundingMode(RoundingMode.HALF_UP);
  
// listener for changes to tipPercentageSlider's value
tipPercentageSlider.valueProperty().addListener(
new ChangeListener() {
@Override
public void changed(ObservableValue ov,
Number oldValue, Number newValue) {
tipPercentage =
BigDecimal.valueOf(newValue.intValue() / 100.0);
tipPercentageLabel.setText(percent.format(tipPercentage));
}
}
);
}
}

------------------TipCalculator.fxml------------

<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Slider?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.RowConstraints?>

<GridPane hgap="8.0" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" xmlns="http://javafx.com/javafx/8.0.60" xmlns:fx="http://javafx.com/fxml/1" fx:controller="TipCalculatorController">
<columnConstraints>
<ColumnConstraints halignment="RIGHT" hgrow="SOMETIMES" minWidth="10.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label text="Amount" />
<Label fx:id="tipPercentageLabel" text="15%" GridPane.rowIndex="1" />
<Label text="Tip" GridPane.rowIndex="2" />
<Label text="Total" GridPane.rowIndex="3" />
<TextField fx:id="amountTextField" GridPane.columnIndex="1" />
<TextField fx:id="tipTextField" editable="false" focusTraversable="false" GridPane.columnIndex="1" GridPane.rowIndex="2" />
<TextField fx:id="totalTextField" editable="false" focusTraversable="false" GridPane.columnIndex="1" GridPane.rowIndex="3" />
<Slider fx:id="tipPercentageSlider" blockIncrement="5.0" max="30.0" value="15.0" GridPane.columnIndex="1" GridPane.rowIndex="1" />
<Button maxWidth="1.7976931348623157E308" mnemonicParsing="false" onAction="#calculateButtonPressed" text="Calculate" GridPane.columnIndex="1" GridPane.rowIndex="4" />
</children>
<padding>
<Insets bottom="14.0" left="14.0" right="14.0" top="14.0" />
</padding>
</GridPane>

In: Computer Science

Create a class named Salesperson. Data fields for Salesperson include an integer ID number and a...

Create a class named Salesperson. Data fields for Salesperson include an integer ID number and a doubleannual sales amount. Methods include a constructor that requires values for both data fields, as well as get and set methods for each of the data fields. Write an application named DemoSalesperson that declares an array of 10 Salesperson objects. Set each ID number to 9999 and each sales value to zero. Display the 10 Salesperson objects.

public class DemoSalesperson
{
public static void main (String args[])
{
// your code here
}
}
----------------------------------------------------------------------------------------------------------------------------------------------

public class Salesperson
{

// constructor

// get and set methods
  
}


In: Computer Science

Write an application that accepts up to 20 Strings, or fewer if the user enters the...

Write an application that accepts up to 20 Strings, or fewer if the user enters the terminating value ZZZ. Store each String in one of two lists—one list for short Strings that are 10 characters or fewer and another list for long Strings that are 11 characters or more. After data entry is complete, prompt the user to enter which type of String to display, and then output the correct list.

For this exercise, you can assume that if the user does not request the list of short strings, the user wants the list of long strings. If a requested list has no Strings, output The list is empty. Prompt the user continuously until a sentinel value, ZZZ, is entered.

import java.util.*;
public class CategorizeStrings
{
public static void main (String[] args)
{
// your code here
}

// display()
}

In: Computer Science

Hello I have a question about Java. example So when you put “sum 1 2 3”...

Hello I have a question about Java.

example

So when you put “sum 1 2 3” in console, you do not separate those. Need a space between sum 1, 2 in the console.

What is Sum?

sum 1 2 3

6 (answer)

sum 123456

21

sum 100 2000 3000

5100

sum 20 50 40 1

111

public static void main (String[] args) {

System.out.Println(“What is Sum?”);

String a=“”;

a = scnr.nextLine();

String[] b = a.split(“”);

if(b[0].equals(“sum”) {

}

Please do not change the above code. If I put sum in the console, it calculate the sum.

you may need to convert type from String to double.

I don’t know how to make code for the sum. Please help me by above code.

In: Computer Science

Instructions Create an application to accept data for an array of five CertOfDeposit objects, and then...

Instructions

Create an application to accept data for an array of five CertOfDeposit objects, and then display the data.

import java.time.*;
public class CertOfDeposit {
private String certNum;
private String lastName;
private double balance;
private LocalDate issueDate;
private LocalDate maturityDate;
public CertOfDeposit(String num, String name, double bal, LocalDate issue) {
}
public void setCertNum(String n) {
}
public void setName(String name) {
}
public void setBalance(double bal) {
}
public void issueDate(LocalDate date) {
}
public String getCertNum() {
}
public String getName() {
}
public double getBalance() {
}
public LocalDate getIssueDate() {
}
public LocalDate getMaturityDate() {
}
}

---------------------------------------------------------------------------------------------------------------

import java.util.*;
import java.time.*;
public class CertOfDepositArray {
public static void main(String[] args) {
// Write your code here
}
public static void display(CertOfDeposit cd, int num) {
System.out.pritnln(, "Certificate " + num +
"\nName: " + cd.getCertNum() + " " +
cd.getName() + " Balance: $" + cd.getBalance() +
"\nIssued: " + cd.getIssueDate() +
"\nMatures: " + cd.getMaturityDate()););
}
}

In: Computer Science

the purpose of this assignment is to choose a current event and find two different news...

the purpose of this assignment is to choose a current event and find two different news sources that discuss that event. Some current events you may want to consider are: Canada’s response to Covid-19,the wildfires in the USA, the upcoming American election,the NBA, the Black Lives Matters movement, the WE charity scandal, etc. Guidelines:•Your thoughtpiece should contain your thoughts! You should discuss some differences you see between the two different news sourcesthat covered that same news item/event. oYour sources could be both mainstream (The Toronto Star, CTV News, etc.)and non-mainstream sources (non-mainstream online news sources –please avoid using blogs). •Besides the two articles you choose, you do not need to do any research for outside information. This is an opinion piece. If you do paraphrase or quote any authors, be sure to cite them appropriately in APA citation. oPlease include end references (in APA style), that include the links to the two news source articles you choose at the end of your piece. ▪See the Library APA Guide on Slate for more information. •Your discussion should be written as a 1.5 -2-page, double spaced entry(Times New Roman,font size 12). Some questions to consider when forming your response: 1.What is the news item being discussed(i.e. what happened?) 2.Who is/are the author(s) for each source? How do you know that they are reliable journalists/writers? 3.How are the two headlines similar/different?

In: Computer Science

Another Type of Employee The files Firm.java, Staff.java, StaffMember.java, Volunteer.java, Employee.java, Executive.java, and Hourly.java are from...


Another Type of Employee

The files Firm.java, Staff.java, StaffMember.java, Volunteer.java, Employee.java, Executive.java, and

Hourly.java are from Listings 10.1 - 10.7 in the text. The program illustrates inheritance and polymorphism.


In this exercise you will add one more employee type to the class hierarchy (see Figure 9.1 in the text).

The employee will be one that is an hourly employee but also earns a commission on sales. Hence the class, which we’ll name Commission, will be derived from the Hourly class.


Write a class named Commission with the following features:


It extends the Hourly class.
It has two instance variables (in addition to those inherited): one is the total sales the employee has made (type double) and the second is the commission rate for the employee (the commission rate will be type double and will represent the percent (in decimal form) commission the employee earns on sales (so .2 would mean the employee earns 20% commission on sales)).
The constructor takes 6 parameters: the first 5 are the same as for Hourly (name, address, phone number, social security number, hourly pay rate) and the 6th is the commission rate for the employee. The constructor should call the constructor of the parent class with the first 5 parameters then use the 6th to set the commission rate.
One additional method is needed: public void addSales (double totalSales) that adds the parameter to the instance variable representing total sales.
The pay method must call the pay method of the parent class to compute the pay for hours worked then add to that the pay from commission on sales. (See the pay method in the Executive class.) The total sales should be set back to 0 (note: you don’t need to set the hours Worked back to 0—why not?).
The toString method needs to call the toString method of the parent class then add the total sales to that.

To test your class, update Staff.java as follows:


Increase the size of the array to 8.
Add two commissioned employees to the staffList—make up your own names, addresses, phone numbers and social security numbers. Have one of the employees earn $12.00 per hour and 20% commission and the other one earn $14.75 per hour and 15% commission.
For the first additional employee you added, put the hours worked at 35 and the total sales $400; for the second, put the hours at 40 and the sales at $950.


Compile and run the program. Make sure it is working properly.


//*****************************************************************

// Firm.java Author: Lewis/Loftus

//

// Demonstrates polymorphism via inheritance.

// ****************************************************************

public class Firm

{

//--------------------------------------------------------------

// Creates a staff of employees for a firm and pays them.

//--------------------------------------------------------------

public static void main (String[] args)

{

Staff personnel = new Staff();

personnel.payday();

}

}

//********************************************************************

// Staff.java Author: Lewis/Loftus

//

// Represents the personnel staff of a particular business.

//********************************************************************

public class Staff

{

StaffMember[] staffList;

//-----------------------------------------------------------------

// Sets up the list of staff members.

//-----------------------------------------------------------------

public Staff ()

{

staffList = new StaffMember[6];

staffList[0] = new Executive ("Sam", "123 Main Line", "555-0469", "123-45-6789", 2423.07);

staffList[1] = new Employee ("Carla", "456 Off Line", "555-0101", "987-65-4321", 1246.15);

staffList[2] = new Employee ("Woody", "789 Off Rocker", "555-0000", "010-20-3040", 1169.23);

staffList[3] = new Hourly ("Diane", "678 Fifth Ave.", "555-0690", "958-47-3625", 10.55);

staffList[4] = new Volunteer ("Norm", "987 Suds Blvd.", "555-8374");

staffList[5] = new Volunteer ("Cliff", "321 Duds Lane", "555-7282");

((Executive)staffList[0]).awardBonus (500.00);

((Hourly)staffList[3]).addHours (40);

}


//-----------------------------------------------------------------

// Pays all staff members.

//-----------------------------------------------------------------

public void payday ()

{

double amount;

for (int count=0; count < staffList.length; count++)

{

System.out.println (staffList[count]);

amount = staffList[count].pay(); // polymorphic

if (amount == 0.0)

System.out.println ("Thanks!");

else

System.out.println ("Paid: " + amount);

System.out.println ("------------------------------------");

}

}

}

//******************************************************************

// StaffMember.java Author: Lewis/Loftus

//

// Represents a generic staff member.

//******************************************************************

abstract public class StaffMember

{

protected String name;

protected String address;

protected String phone;

//---------------------------------------------------------------

// Sets up a staff member using the specified information.

//---------------------------------------------------------------

public StaffMember (String eName, String eAddress, String ePhone)

{

name = eName;

address = eAddress;

phone = ePhone;

}


//---------------------------------------------------------------

// Returns a string including the basic employee information.

//---------------------------------------------------------------

public String toString()

{

String result = "Name: " + name + "\n";

result += "Address: " + address + "\n";

result += "Phone: " + phone;

return result;

}


//---------------------------------------------------------------

// Derived classes must define the pay method for each type of

// employee.

//---------------------------------------------------------------

public abstract double pay();

}


//******************************************************************

// Volunteer.java Author: Lewis/Loftus

//

// Represents a staff member that works as a volunteer.

//******************************************************************

public class Volunteer extends StaffMember

{

//---------------------------------------------------------------

// Sets up a volunteer using the specified information.

//---------------------------------------------------------------

public Volunteer (String eName, String eAddress, String ePhone)

{

super (eName, eAddress, ePhone);

}


//---------------------------------------------------------------

// Returns a zero pay value for this volunteer.

//---------------------------------------------------------------

public double pay()

{

return 0.0;

}

}

//******************************************************************

// Employee.java Author: Lewis/Loftus

//

// Represents a general paid employee.

//******************************************************************

public class Employee extends StaffMember

{

protected String socialSecurityNumber;

protected double payRate;


//---------------------------------------------------------------

// Sets up an employee with the specified information.

//---------------------------------------------------------------

public Employee (String eName, String eAddress, String ePhone,

String socSecNumber, double rate)

{

super (eName, eAddress, ePhone);

socialSecurityNumber = socSecNumber;

payRate = rate;

}


//---------------------------------------------------------------

// Returns information about an employee as a string.

//---------------------------------------------------------------

public String toString()

{

String result = super.toString ();

result += "\nSocial Security Number: " + socialSecurityNumber;

return result;

}


//---------------------------------------------------------------

// Returns the pay rate for this employee.

//---------------------------------------------------------------

public double pay()

{

return payRate;

}

}

//******************************************************************

// Executive.java Author: Lewis/Loftus

//

// Represents an executive staff member, who can earn a bonus.

//******************************************************************

public class Executive extends Employee

{

private double bonus;


//-----------------------------------------------------------------

// Sets up an executive with the specified information.

//-----------------------------------------------------------------

public Executive (String eName, String eAddress, String ePhone,

String socSecNumber, double rate)

{

super (eName, eAddress, ePhone, socSecNumber, rate);

bonus = 0; // bonus has yet to be awarded

}


//-----------------------------------------------------------------

// Awards the specified bonus to this executive.

//-----------------------------------------------------------------

public void awardBonus (double execBonus)

{

bonus = execBonus;

}


//-----------------------------------------------------------------

// Computes and returns the pay for an executive, which is the

// regular employee payment plus a one-time bonus.

//-----------------------------------------------------------------

public double pay()

{

double payment = super.pay() + bonus;

bonus = 0;

return payment;

}

}

//******************************************************************

// Hourly.java Author: Lewis/Loftus

//

// Represents an employee that gets paid by the hour.

//*******************************************************************

public class Hourly extends Employee

{

private int hoursWorked;


//-----------------------------------------------------------------

// Sets up this hourly employee using the specified information.

//-----------------------------------------------------------------

public Hourly (String eName, String eAddress, String ePhone,

String socSecNumber, double rate)

{

super (eName, eAddress, ePhone, socSecNumber, rate);

hoursWorked = 0;

}


//-----------------------------------------------------------------

// Adds the specified number of hours to this employee's

// accumulated hours.

//-----------------------------------------------------------------

public void addHours (int moreHours)

{

hoursWorked += moreHours;

}


//-----------------------------------------------------------------

// Computes and returns the pay for this hourly employee.

//-----------------------------------------------------------------

public double pay()

{

double payment = payRate * hoursWorked;

hoursWorked = 0;

return payment;

}


//-----------------------------------------------------------------

// Returns information about this hourly employee as a string.

//-----------------------------------------------------------------

public String toString()

{

String result = super.toString();

result += "\nCurrent hours: " + hoursWorked;

return result;

}

}

MY PAYDAY CLASS IS ERRORING LISTED BELOW

//-----------------------------------------------------------------

// Pays all staff members.

//-----------------------------------------------------------------

public void payday ()

{

double amount;

for (int count=0; count < staffList.length; count++)

{

System.out.println (staffList[count]);

amount = staffList[count].pay(); // polymorphic

if (amount == 0.0)

System.out.println ("Thanks!");

else

System.out.println ("Paid: " + amount);

System.out.println ("-----------------------------------");

}

}

PLEASE LIST ALL STEPS/CODE

In: Computer Science

Write a Comparator to compare two Rationals so that a/b>c/d if a>c i.e. sort by increasing...

Write a Comparator to compare two Rationals so that a/b>c/d if a>c i.e. sort by increasing order of numerators only. Test your program by modifying the code below. Note do NOT change the Rational class in order to solve this problem.

Code:

public class Rational implements Comparable<Rational>
{
   //Declaring instance variables
double numerator = 0;
double denominator = 1;
//Parameterized constructor
public Rational(double n,double d){
numerator=n;
denominator=d;
}
// getters and setters
public void setNumerator(double value) {
this.numerator = value;
}
public void setDenominator(double value) {
this.denominator = value;
}
public double getNumerator() {
return this.numerator;
}
public double getDenominator() {
return this.denominator;
}

  
// -----------------------------------------------------------------
// Returns this rational number as a string.
// -----------------------------------------------------------------
public String toString() {
String result;
if (numerator == 0)
result = "0";
else if (denominator == 1)
result = numerator + "";
else
result = numerator + "/" + denominator;
return result;
}
   @Override
   public int compareTo(Rational o) {
       int val = 0;
       double currVal = numerator/denominator;

       Rational r = (Rational) o;
       double paraVal = o.getNumerator()/o.getDenominator();

       if (currVal > paraVal)
       val = 1;
       else if (currVal < paraVal)
       val = -1;
       else if (currVal == paraVal)
       val = 0;
       return val;
   }

}
_____________________

// Test.java

import java.util.ArrayList;
import java.util.Collections;

public class Test {

   public static void main(String[] args) {
  
   ArrayList<Rational> arl=new ArrayList<Rational>();
   arl.add(new Rational(1, 3));
   arl.add(new Rational(2, 7));
   arl.add(new Rational(1, -4));
   arl.add(new Rational(3, 11));
   arl.add(new Rational(5, 8));
   arl.add(new Rational(1, 2));
  
   System.out.println("_____ Displaying the Rational numbers before Sorting _____");
   for(int i=0;i<arl.size();i++)
   {
       System.out.println(arl.get(i));
   }
   Collections.sort(arl);
   System.out.println("_____ Displaying the Rational numbers after Sorting _____");
   for(int i=0;i<arl.size();i++)
   {
       System.out.println(arl.get(i));
   }
  

   }

}

In: Computer Science

Write an application with three buttons labeled “Red”, “Green”, and “Blue” that changes the background color...

Write an application with three buttons labeled “Red”, “Green”, and “Blue” that changes the background color of a panel in the center of the frame to red, green, or blue.

Add icons to the buttons of Exercise E19.1. Use a JButton constructor with an Icon argument and supply an ImageIcon.

this is the code that I already wrote that I need to do the above to.


import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.ImageIcon;

public class backgroundColor extends JFrame
{

   private static final int FRAME_WIDTH = 500;
   private static final int FRAME_HEIGHT = 500;
   private JPanel colorPanel;
  
   public backgroundColor()
   {
       setTitle("Colored Buttons");
       createColorBackground();
       setSize(FRAME_WIDTH, FRAME_HEIGHT);
       setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
       setVisible(true);
   }
  
   private void createColorBackground()
   {
       colorPanel = new JPanel();
       add(colorPanel, BorderLayout.CENTER);
       buttonColors();
   }
  
   private void buttonColors()
   {
       JPanel buttonsPanel = createButtons();
       add(buttonsPanel, BorderLayout.SOUTH);
   }
  
   private JPanel createButtons()
   {
       JPanel buttonsPanel = new JPanel(new GridLayout(3, 1));
       buttonsPanel.add(createButton("Red", Color.RED));
       buttonsPanel.add(createButton("Green", Color.GREEN));
       buttonsPanel.add(createButton("Blue", Color.BLUE));
       return buttonsPanel;
   }
  
   private JButton createButton(String label, final Color color)
   {
       JButton button = new JButton(label);
       ActionListener listener = new backgroundColorListener();
       button.addActionListener(listener);
       return button;
   }
  
   class backgroundColorListener
   implements ActionListener
   {
       public void actionPerformed(ActionEvent action)
       {
           if(action.getActionCommand().contentEquals("Red"))
               colorPanel.setBackground(Color.red);
           else
               if(action.getActionCommand().contentEquals("Green"))
                   colorPanel.setBackground(Color.green);
               else
                   if(action.getActionCommand().contentEquals("Blue"))
                       colorPanel.setBackground(Color.blue);
       }
   }
   public static void main(String[] args)
   {
       new backgroundColor();
   }
}

In: Computer Science

I am working on bomb lab phase 4, but I was thinking the first number may...

I am working on bomb lab phase 4, but I was thinking the first number may be equal to zero. but I have no idea how to figure out the second number, hope someone could help me out

Dump of assembler code for function phase_4:

0x00000000004010e8 <+0>:   sub $0x18,%rsp

   0x00000000004010ec <+4>:   lea 0x8(%rsp),%rcx

   0x00000000004010f1 <+9>:   lea 0xc(%rsp),%rdx

   0x00000000004010f6 <+14>:   mov $0x40256a,%esi

   0x00000000004010fb <+19>:   mov $0x0,%eax

   0x0000000000401100 <+24>:   callq 0x400ac8 <__isoc99_sscanf@plt>

   0x0000000000401105 <+29>:   cmp $0x2,%eax

   0x0000000000401108 <+32>:   jne 0x401117 <phase_4+47>

   0x000000000040110a <+34>:   mov 0xc(%rsp),%eax

   0x000000000040110e <+38>:   test %eax,%eax

   0x0000000000401110 <+40>:   js 0x401117 <phase_4+47>

   0x0000000000401112 <+42>:   cmp $0xe,%eax

   0x0000000000401115 <+45>:   jle 0x40111c <phase_4+52>

   0x0000000000401117 <+47>:   callq 0x40148f <explode_bomb>

   0x000000000040111c <+52>:   mov $0xe,%edx

   0x0000000000401121 <+57>:   mov $0x0,%esi

   0x0000000000401126 <+62>:   mov 0xc(%rsp),%edi

   0x000000000040112a <+66>:   callq 0x400e70 <func4>

   0x000000000040112f <+71>:   cmp $0x2,%eax

   0x0000000000401132 <+74>:   jne 0x40113b <phase_4+83>

   0x0000000000401134 <+76>:   cmpl $0x2,0x8(%rsp)

   0x0000000000401139 <+81>:   je 0x401140 <phase_4+88>

---Type <return> to continue, or q <return> to quit---

   0x000000000040113b <+83>:   callq 0x40148f <explode_bomb>

   0x0000000000401140 <+88>:   add $0x18,%rsp

   0x0000000000401144 <+92>:   retq

Dump of assembler code for function func4:

   0x0000000000400e70 <+0>:   sub $0x8,%rsp

   0x0000000000400e74 <+4>:   mov %edx,%eax

   0x0000000000400e76 <+6>:   sub %esi,%eax

   0x0000000000400e78 <+8>:   mov %eax,%ecx

   0x0000000000400e7a <+10>:   shr $0x1f,%ecx

   0x0000000000400e7d <+13>:   lea (%rcx,%rax,1),%eax

   0x0000000000400e80 <+16>:   sar %eax

   0x0000000000400e82 <+18>:   lea (%rax,%rsi,1),%ecx

   0x0000000000400e85 <+21>:   cmp %edi,%ecx

   0x0000000000400e87 <+23>:   jle 0x400e95 <func4+37>

   0x0000000000400e89 <+25>:   lea -0x1(%rcx),%edx

   0x0000000000400e8c <+28>:   callq 0x400e70 <func4>

   0x0000000000400e91 <+33>:   add %eax,%eax

   0x0000000000400e93 <+35>:   jmp 0x400eaa <func4+58>

   0x0000000000400e95 <+37>:   mov $0x0,%eax

   0x0000000000400e9a <+42>:   cmp %edi,%ecx

   0x0000000000400e9c <+44>:   jge 0x400eaa <func4+58>

   0x0000000000400e9e <+46>:   lea 0x1(%rcx),%esi

   0x0000000000400ea1 <+49>:   callq 0x400e70 <func4>

   0x0000000000400ea6 <+54>:   lea 0x1(%rax,%rax,1),%eax

   0x0000000000400eaa <+58>:   add $0x8,%rsp

   0x0000000000400eae <+62>:   retq

In: Computer Science

The scenario for this assessment is a multi-specialty hospital system, the Royal Rundle Hospital (RRH), that...

The scenario for this assessment is a multi-specialty hospital system, the Royal Rundle Hospital (RRH), that provides a broad range of services to the community which include surgical, maternity, obstetric care, dialysis, emergency, mental health, aged and palliative care, allied health services and a 24-hour emergency department. The RRH has been serving in the region for over 50 years and has been using paper-based forms and documents to store and manage all the data with some use of spreadsheets that started not so long ago. Now that the management of RRH wants to take the advantages of Information Technology to maintain and manage the records of the various aspects of the hospital system more efficiently, they have put out a Request for Proposals (RFP) for appropriately qualified consultants to undertake a body of work that would help to scope the data requirements for such a system. With your success in your Torrens University Australia degree so far, and other similar projects that have garnered you some sustained success in the eyes of the profession and community, you have been shortlisted among no less than 10 other consultancies. There are expectations from them, then, as to the standard of report you will produce. The management of the RRH has provided you with an overview and description of the hospital system as below Overview: The Royal Rundle Hospital (RRH) is a multi-specialty hospital that includes a number of departments, rooms, doctors, nurses, compounders, and other staff working in the hospital. Patients having different kinds of ailments come to the hospital and get checkup done from the relevant doctors. If required they are admitted in the hospital and discharged after treatment. The hospital maintains the records of various departments, rooms, and doctors in the hospital besides the most important records of the regular patients, patients admitted in the hospital, the checkup of patients done by the doctors, the patients that have been operated, and patients discharged from the hospital. Description: In RRH, there are many departments like Orthopedic, Pathology, Emergency, Dental, Gynecology, Anesthetics, I.C.U., Blood Bank, Operation Theater, Laboratory, M.R.I., Neurology, Cardiology, Cancer Department, Corpse, etc. There is an OPD where patients come and get a card (that is, entry card of the patient) for check up from the relevant doctor. After making entry in the card, they go to the relevant doctor’s room and the doctor checks up their ailments. According to the ailments, the doctor either prescribes medicine or admits the patient in the relevant department. The patient may choose either private or general room according to his/her need. But before getting admission in the hospital, the patient has to fulfill certain formalities of the hospital like room charges, etc. After the treatment is completed, the doctor discharges the patient. Before discharging from the hospital, the patient again has to complete certain formalities of the hospital like balance charges, test charges, operation charges (if any), blood charges, doctors’ charges, etc. Next, the management talks about the doctors of the hospital. There are two types of the doctors in the hospital, namely, regular doctors and call-on doctors. Regular doctors are those doctors who come to the hospital daily. Call-on doctors are those doctors who are called by the hospital if the relevant regular doctor is not available.

Task:- System vision document. Please include all three parts of document. Problem description, system capabilities, business benefits

In: Computer Science

Please let me know how to make code sort. If you put sort (sort 1000 6...

Please let me know how to make code sort.

If you put sort (sort 1000 6 5 4 3 2 1, not separate), you will get 1 2 3 4 5 6 1000.

sort 50 300 27 5

5 27 50 300

public static void main (String[] args) {
       Scanner scnr = new Scanner(System.in);
       String a = "";
           a = scnr.nextLine();
           String[] b = imput.split(" ")

if (b[0].equalsI("sort")) {

}

Please do not change above code.

In: Computer Science