In performing a SWOT analysis, provide a key term for each of the letters representing SWOT
and say how one company can have an advantage over the other using the key term chosen.
Solution
SWOT analysis is a systematic approach to understand the total environment. SWot analysis is
elaborated as Strength, weakness, opportunities , threats . Business firms take SWOT analysis to
understand the internal as well as external environment. It helps to understand the organization’s
existing weaknesses and strength and accordingly organization analyses the opportunities and
threats in the environment so that effective strategy can be formulated.
The components of SWOT analysis are-
SWOT analysis enables the firm in identification of various strategic alternatives, by analyzing
its internal strength and weakness by considering external opportunities and threats.
It helps the manager to craft the business model that helps to gain a competitive advantage in the
industry, which also helps to increase profitability and achieve growth in fast changing global
business environment.
It provide the logical framework for systematic and clear understanding of all the issues which
may have implications for organization in short and long term.
It provide information in a structured form about both external and internal environment, where
one can compare external opportunities and threats with internal strengths and weaknesses. It
helps in developing pattern in of relationship by matching opportunities, threats ,strength and
weakness..
Major project report on Tata Motors and its marketing strategies
Inventory Management System objective Work with multiple objects and.pdf
1. Inventory Management System objective: Work with multiple objects and review reading data
files. Description: A wholesale distributor has six warehouses (Atlanta, Baltimore, Chicago,
Denver, Ely and Fargo) and sells five different items (identified by part number: 102, 215, 410,
525 and 711). Each warehouse may stock any or all of the five items. The company buys and
sells these items constantly. Company transaction records contain a transaction code (P" for a
purchase or 'S' for a sale) followed by an item number and the quantity (bought or sold). The
transaction records are contained in a transaction data file named Transactions.txt. Sample
transaction records Transactions.txt P 410 1000 S 215 120 S 711 300 A separate data file
contains the initial status of the six warehouses at the beginning of the day (i.e., the ending status
from the night before). This data file has only six records (lines). Each record (line) contains five
numbers that show the quantity on hand for the five items in that warehouse. This file is named
inventory.txt. Sample status data file: Inventory.txt 500 120 60 0 350 100 230 0 500 0 75 00 220
600 50 120 300 40 210 160 30 80 500 90 50 90 200 70 The status data file is updated by
processing the transaction records in the transaction data file according to these rules
Solution
driver.java
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.*;
public class driver {
public static void main(String[] args) {
try
{
File file = new File("Inventory.txt");
String line;
FileReader fileReader = new FileReader(file);
BufferedReader bufferedReader = new BufferedReader(fileReader);
line = bufferedReader.readLine();
String[] parts = line.split(" ");
int i1 = Integer.parseInt(parts[0]);
int i2 = Integer.parseInt(parts[1]);
2. int i3 = Integer.parseInt(parts[2]);
int i4 = Integer.parseInt(parts[3]);
int i5 = Integer.parseInt(parts[4]);
warehouse wh1 = new warehouse("Atlanta",i1,i2,i3,i4,i5);
line = bufferedReader.readLine();
parts = line.split(" ");
i1 = Integer.parseInt(parts[0]);
i2 = Integer.parseInt(parts[1]);
i3 = Integer.parseInt(parts[2]);
i4 = Integer.parseInt(parts[3]);
i5 = Integer.parseInt(parts[4]);
warehouse wh2 = new warehouse("baltimo",i1,i2,i3,i4,i5);
line = bufferedReader.readLine();
parts = line.split(" ");
i1 = Integer.parseInt(parts[0]);
i2 = Integer.parseInt(parts[1]);
i3 = Integer.parseInt(parts[2]);
i4 = Integer.parseInt(parts[3]);
i5 = Integer.parseInt(parts[4]);
warehouse wh3 = new warehouse("chicago",i1,i2,i3,i4,i5);
line = bufferedReader.readLine();
parts = line.split(" ");
i1 = Integer.parseInt(parts[0]);
i2 = Integer.parseInt(parts[1]);
i3 = Integer.parseInt(parts[2]);
i4 = Integer.parseInt(parts[3]);
i5 = Integer.parseInt(parts[4]);
warehouse wh4 = new warehouse("denver",i1,i2,i3,i4,i5);
line = bufferedReader.readLine();
parts = line.split(" ");
i1 = Integer.parseInt(parts[0]);
i2 = Integer.parseInt(parts[1]);
i3 = Integer.parseInt(parts[2]);
i4 = Integer.parseInt(parts[3]);
i5 = Integer.parseInt(parts[4]);
warehouse wh5 = new warehouse("Ely",i1,i2,i3,i4,i5);
3. line = bufferedReader.readLine();
parts = line.split(" ");
i1 = Integer.parseInt(parts[0]);
i2 = Integer.parseInt(parts[1]);
i3 = Integer.parseInt(parts[2]);
i4 = Integer.parseInt(parts[3]);
i5 = Integer.parseInt(parts[4]);
warehouse wh6 = new warehouse("fargo",i1,i2,i3,i4,i5);
fileReader.close();
file = new File("Transactions.txt");
fileReader = new FileReader(file);
bufferedReader = new BufferedReader(fileReader);
while(true)
{
String line1 = bufferedReader.readLine();
if(line1 == null)
{
break;
}
parts = line1.split(" ");
String ss = parts[0];
int item_num = Integer.parseInt(parts[1]);
int tmp = Integer.parseInt(parts[2]);
if(ss.equals("P"))
{
//find ware house with mininum items
int item = 0;
if(item_num == 102)
{
item = 0;
}
else if(item_num == 215)
{
item = 1;
}