1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
dusya [7]
3 years ago
8

3) Write code in a language of your choice that checks a source file (input file in plain text format) that separates lexemes by

white space and special characters. This lexical analyzer will only have tokens for special characters and alphanumeric strings. Ie: 2345 6tgbsauhd9sa67*I{OPKDSl;jaklhl Would be 2345 6tgbsauhd9sa67 * I { OPKDSl ; jaklhl
Business
1 answer:
Genrish500 [490]3 years ago
4 0

Answer:

Explanation:

CODE:

import java.io.*;

class Test

{

  public static void main(String[] args) {

      File file = new File("input.txt");

 

      try{

      BufferedReader b = new BufferedReader(new FileReader(file));

     

      String line;

      while ((line = b.readLine()) != null)

      {

          for(int i=0;i<line.length();i++)

          {

              char c=line.charAt(i);

              if((c>='A' && c<='Z') || (c>='a' && c<='z') || (c>='0' && c<='9'))   //check if char is digit or alphabet

                  System.out.print(c);

              else

                  System.out.println("\n"+c);

          }

      }

      }

      catch(Exception e)

      {

          System.out.println(e);

      }

     

}

 

}

You might be interested in
Companies employing total quality management (TQM) programs know that Multiple Choice quality control should be incorporated onl
ladessa [460]

Answer:

<u>TQM requires constant improvements in all areas of the company as well as employee empowerment.</u>

Explanation:

As the name implies, total quality management requires constant improvements in all areas of the company as well as employee empowerment.

In other words, the company expects 99.99% accuracy in all areas of operations which should also include employee empowerment so that they can better meet quality standards.

4 0
3 years ago
Choose all that apply. Select all of the tools you could use to track your expenses.
fgiga [73]

Answer:

budget software

spreadsheet

Mint©  

Mvelopes®

Explanation:

The spreadsheet is also the same as Excel. It used to organize and analyze expenses and identify how your expenses can be reduced

Mint© is an online expensive tracking device, that can be used to track credit score and manage expenses.

Budget software is budgeting and expensive tracking device. It can be used to track credits cards and bank account

Mvelopes® is an online expensive tracking device that is used in taking care of the budget.

6 0
3 years ago
Suppose that you deposit $4,500 in your bank and the required reserve ratio is 18 percent. the maximum loan your bank can make a
NNADVOKAT [17]

Suppose that you deposit $4,500 in your bank and the required reserve ratio is 18 percent. The maximum loan your bank can make as a direct result of your deposit is 3690.

<h3>What exactly is a bank loan and the required reserve ratio?</h3>
  • A loan is a quantity of money that one or more people or businesses obtain from banks or other financial organizations in order to handle their finances in connection with anticipated or unforeseen circumstances.
  • By doing this, the borrower creates a debt that must be repaid with interest within a predetermined time frame.
  • The percentage of deposits that authorities mandate a bank maintain in reserves and refrain from lending out is known as the required reserve ratio.
  • If the required reserve ratio is 1 to 10, a bank can only lend out $0.90 of every dollar it has on deposit, but it must retain $0.10 in reserves.

Hence, The maximum loan your bank can make as a direct result of your deposit is 3690.

To learn more about the loan, refer to the following link:

brainly.com/question/25599836

#SPJ4

6 0
2 years ago
In its first month of operations, Wildhorse Co. made three purchases of merchandise in the following sequence: (1) 370 units at
Andreas93 [3]

Answer:

The cost of the ending inventory under FIFO is $2,430 and under LIFO is  $1,620

Explanation:

First determine the units sold

Units Sold = Total Purchases - Units in hand

                  = 1,410 units - 270 units

                  = 1,140

Note ; Wildhorse Co. uses a periodic inventory system. This means we calculate the cost at the end of the period.

FIFO

Means First in First Out

Cost of the ending inventory = 270 x $9.00 = $2,430

LIFO

Means Last in First Out

Cost of the ending inventory = 270 x $6.00 = $1,620

Conclusion

The cost of the ending inventory under FIFO is $2,430 and under LIFO is  $1,620

5 0
3 years ago
The company cost of capital for a firm with a 60/30/10 debt/common/preferred split, 8% cost of debt, 15% cost of equity, preferr
sveticcg [70]

Answer:

b. 8.82%

Explanation:

WACC = Cost of equity x Weight of equity + Cost of Preferred Stock x Weight of Preferred Stock + Cost of Debt x Weight of Debt

Cost of Preferred Stock calculation :

Cost of Preferred Stock = Expected dividend / Market Price x 100

                                        = $6 / $50 x 100

                                        = 12 %

After tax cost of debt calculation :

After tax cost of debt = Interest x (1 - tax rate)

                                    = 8 % x (1 - 0.35)

                                    = 5.20 %

therefore,

WACC = 15% x 30 % + 12 % x 10 %+ 5.20 % x 60 %

           = 8.82 %

6 0
2 years ago
Other questions:
  • What was the nickname of the person who replaced Don Meredith during the 1974 pre-season?
    13·2 answers
  • Closing entries
    10·2 answers
  • Moyas Corporation sells a single product for $20 per unit. Last year, the company's sales revenue was $300,000 and its net opera
    10·1 answer
  • If short-run marginal cost and average variable cost curves for a competitive firm are given by SMC = 2 + 4Q, and AVC = 2 + 2Q,
    9·1 answer
  • When leasing nonresidential properties,owners would prefer to rent exclusively to high quality tenants.Such owners will tend to
    15·1 answer
  • How does a production possibility chart assist in outlining opportunity cost?
    11·1 answer
  • Fill in the blanks with given options:
    5·1 answer
  • If a firm with a positive net worth is operating its fixed assets at full capacity, if its dividend payout ratio is 100%, and if
    9·1 answer
  • Moss exchanges a warehouse for a building he will use as an office building. The adjusted basis of the warehouse is $ 600,000 an
    15·1 answer
  • What is the difference between reliability for quantitative research and reliability for qualitative research?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!