Questions
#7. X Company is trying to decide whether to continue using old equipment to make Product...

#7. X Company is trying to decide whether to continue using old equipment to make Product A or replace it with new equipment that will have lower operating costs. The following information is available:

  • The new equipment will cost $50,000. Disposal value at the end of its 5-year useful life will be $5,500.
  • The old equipment was purchased 3 years ago for $21,000. It can be sold immediately for $10,000 but will have zero disposal value in 5 years.
  • Maintenance work, costing $3,500, will be necessary on the new equipment in Year 4.
  • The new equipment will result in $9,000 of operating cost savings each year.

Assuming a discount rate of 5%, what is the net present value of replacing the old equipment with the new equipment?

In: Accounting

Silvana Zhang of Sajjad Jafri & Geopeng Li Limited is considering purchasing a new widget making...

Silvana Zhang of Sajjad Jafri & Geopeng Li Limited is considering purchasing a new widget making machine. The new machine will replace the existing machine, which has a current market value of $1,000,000. New machine will reduce before tax operating cost by $300,000 per year for 15 years. The old machine is expected to last for another 10 years and will have a salvage value of $100,000 at the end of 10 years. The new machine is expected to last for 15 years and will have a salvage value of $200,000. CCA rate is 20%, tax rate is 30%, and the required rate of return is 15%

She would like to know the maximum price she should pay for the new machine.

In: Finance

A2Z Forensics is a digital forensics investigation firm that conducts forensic investigations for public as well...

A2Z Forensics is a digital forensics investigation firm that conducts forensic investigations for public as well as private sectors. You are working in this firm as a forensics specialist for a number of years now. The firm is establishing a new forensics lab to meet the future requirements. You have been asked to prepare a business case for this new lab. Your job is to focus on three aspects of the new lab which are hardware, software and lab security. Based on the knowledge of topic 2, prepare a brief business case, summarise and justify the equipment (both hardware and software) you recommend for this new lab that will meet future requirements. Also, briefly explain the security measures you recommend for this new lab

In: Computer Science

You are about to launch a new Dyson Vacuum Cordless Cleaner Questions to be answered 1....

You are about to launch a new Dyson Vacuum Cordless Cleaner

Questions to be answered

1. Describe the market research you would conduct to analyze and segment the market for the new vacuum cleaner.

2. Explain how you would select a target market or markets for the product offering. These can be domestic markets, international markets, or both.

3. In addition, explain the process of positioning the new Dyson vacuum cleaner relative to the competition.

write a value proposition for the new Dyson Vacuum Cordless product.

To be answered

1. Identifying your new product idea, explaining the procedure you used to develop the process (from idea to launch),

2. And state your value proposition.

In: Operations Management

Cully Company needs to raise $45 million to start a new project and will raise the...

Cully Company needs to raise $45 million to start a new project and will raise the money by selling new bonds. The company will generate no internal equity for the foreseeable future. The company has a target capital structure of 60 percent common stock, 5 percent preferred stock, and 35 percent debt. Flotation costs for issuing new common stock are 7 percent, for new preferred stock, 4 percent, and for new debt, 2 percent. What is the true initial cost figure the company should use when evaluating its project? (Do not round intermediate calculations and enter your answer in dollars, not millions, rounded to the nearest whole dollar amount, e.g., 1,234,567.)

In: Finance

What is Open Banking? As it is a new challenge for international banks, how should banks...

What is Open Banking? As it is a new challenge for international banks, how should banks prepare for the new challenge?

In: Finance

What is Open Banking? As it is a new challenge for international banks, how should banks...

What is Open Banking? As it is a new challenge for international banks, how should banks prepare for the new challenge?

In: Finance

What are the distinguishing features of the New Classical Macroeconomics? Discuss two policy implications of the...

What are the distinguishing features of the New Classical Macroeconomics? Discuss two policy implications of the New Classical Macroeconomics.

In: Economics

look this code is a correct but i want modify it to allow the client to...

look this code is a correct but i want modify it to allow the client to have three attempts to login to the server

package hw2;

import java.net.*;
import java.util.Formatter;
import java.util.Random;
import java.util.Scanner;
import java.io.*;

public class Client {
   Socket server;
   int port;
   Formatter toNet = null;
   Scanner fromNet = null;
   Scanner fromUser = new Scanner(System.in);

   public Client() {
       try {
           // login at server at local host port 4000
           server = new Socket("localhost",4000);
           System.out.println("UserName: ");
           String user = fromUser.nextLine();
           System.out.println("Password: ");
           String pass = fromUser.nextLine();
           //to dedecate with the server
           fromNet = new Scanner(server.getInputStream());
           toNet = new Formatter(server.getOutputStream());
           toNet.format("%s\n", user);
           toNet.flush();
           toNet.format("%s\n", pass);
           toNet.flush();
           String response=fromNet.nextLine();
           if(!response.equals("valid") {
               System.out.println("Invalid Login!!");
           }else {
               // if login is successful vote at local host port 4001
               server = new Socket("localhost",4001);//establish new connection
               //establish a strem
               toNet = new Formatter(server.getOutputStream());
               System.out.prinln("Enter your vote 0-9: ");
                   String vote = formUser.nextLine();
                   toNet.format("%s\n", vote);
                   toNet.flush();
           }
              
       } catch (IOException ioe) { }
   }

   public static void main(String[] args) {
           new Client();
   }
}

package hw2;
import java.net.*;
import java.io.*;

public class Server extends Thread{//multiple services each is a thread on different port
   ServerSocket server;
   Socket client;
   int port;
  
  
   public Server(int port) {
       this.port=port;
       server= new ServerSocket (port);
       run();
   }
   public void run() {
       try {
           while(true) {
               server = new ServerSocket(port);
               client = server.accept();
               switch(port) {
               case 4000:
                   new ServiceServer0(client).start();
                   break;
               case 4001:           
                   new ServiceServer1(client).start();
                   break;
               default:
                   System.out.println("Invalid port");
                   System.exit(0);
                  
               }
           }
       }catch(IOException ioe) {}
   }

   public static void main(String[] args) {
       new Server (4000).start();
       new Server(4001).start();
      
   }

}

package hw2;
import java.net.*;
import java.util.Formatter;
import java.util.Scanner;
import java.io.*;

public class ServiceServer0 extends Thread{//login multithreaded service
   Socket client;
   Scanner fromNet = null;
   Formatter toNet = null;
   private String login[][] = { { "user1", "pass1" }, { "user2", "pass2" }, { "user3", "pass3" }, { "user4", "pass4" },
           { "user5", "pass5" }, { "user6", "pass6" }, { "user7", "pass7" }, { "user8", "pass8" },
           { "user9", "pass9" }, };
   public ServiceServer0(Socket client) {
       this.client = client;
   }
   public void run() {
       System.out.println("Login Service: Serving client ...");
       try {
           fromNet = new Scanner(client.getInputStream());
           toNet = new Formatter(client.getOutputStream());
           String user = fromNet.nextLine(); //read the user
           String pass = fromNet.nextLine(); // read the pass
           String respone = " ";
           boolena fount = false;
           for (int i=0; i<long.length; i++) {
               if(login[i][0].equals(user) && login[i][1].equals(pass)) {
                   respone="valid";
                   found = true;
                   break; // to go out from for loop
               }
           }
          
           if(!found)
               response= "Invalid";
              
           toNet.format("%s\n", response);
           toNet.flush();
          
       }catch(IOException ioe) {}  
   }
}

package hw2;
import java.net.*;
import java.util.Formatter;
import java.util.Scanner;
import java.io.*;

public class ServiceServer1 extends Thread{
   Socket client;
   Scanner fromNet = null;
   Formatter toNet = null;
   static int[]votes = new int[10];//one instance to accumulate voting results
   public ServiceServer1(Socket client) {
       this.client = client;
   }
   public void run() {
       System.out.println("Voting Service: Serving client ...");
       try {
           fromNet = new Scanner(client.getInputStream());
           toNet = new Formatter(client.getOutputStream());
           int vote = Integer.parseInt(fromNet.nextLine());
           ++votes[vote];
          
           showVotes();
       }catch(IOException ioe) { }
   }
   void showVotes() {
      
   }
}

package hw2;
import java.net.*;
import java.util.Formatter;
import java.util.Scanner;
import java.io.*;

public class ServiceServer2 extends Thread{//other services in similar manner
   Socket client;
   Scanner fromNet = null;
   Formatter toNet = null;

   public ServiceServer2(Socket client) {
       this.client = client;
   }
   public void run() {
       System.out.println("ServiceServer2: Serving client ...");
       try {
           fromNet = new Scanner(client.getInputStream());
           toNet = new Formatter(client.getOutputStream());

          
       }catch(IOException ioe) {}
      
   }

}

In: Computer Science

We will simulate a dice game in which 2 dice are thrown. If the roll is...

We will simulate a dice game in which 2 dice are thrown.

  • If the roll is 7 or 11, you win.
  • If the roll is 2, 3, or 12, you lose
  • If the roll is any other value, it establishes a point.
    • If with a point established, that point is rolled again before a 7, you win.
    • If, with a point established, a 7 is rolled before the point is rolled again you lose.

Build your algorithm incrementally. First write a program that simulates a roll of two dice, then outputs if it is a simple win (7 or 11), or a simple loss (2 or 3 or 12), or something else.

  1. Here is the algorithm.

//get a random number between 1 and 6, call it d1

//get a second random number between 1 and 6, call it d2.

//get the total & print it so we know what it was

//If the total is 7 or 11 print “Congratulations, you win”

//If the total is 2 or 3 or 12 print “You lose”

//If neither of these print “something else”  

  1. Now fix the part where we wrote “something else”. In this case, we rolled a number which we called total. We need to keep rolling the dice and looking at the new total each time. Output the new total each time so you can check if your program is working correctly. If the new total is the same as the total, we win. If the new total is 7, we lose. And if something else we roll again……

Sample output:

The total is 10
The new total is 8
The new total is 10
You win

Sample output:

The total is 9
The new total is 4
The new total is 8
The new total is 10
The new total is 5
The new total is 7
You lose

Sample output:

The total is 7
Congratulations, you win

Sample output:

The total is 12
You lose

Code language: Java use if-else statement

In: Computer Science