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]
4 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]4 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
Suppose that the raw daily oxygen purities delivered by an air-products supplier have a standard deviation σ ≈ .1 (percent), and
Kay [80]
<span>approximate the probability that the sample mean x of n using the given formuka</span>
4 0
3 years ago
Swifty Company's accounting records show the following at the year ending on December 31, 2022: Purchase Discounts $ 11300 Freig
Juli2301 [7.4K]

Cost of goods sold (Periodic System) = Beginning inventory + (Purchases, net of returns and allowances, and purchase discounts) + freight in − Ending inventory .

COGS = Cost of goods sold

COGS = 46200+(401100-13500-11300)+16000-57900

COGS = 380600

The total sum that your company spent on expenses directly associated with the selling of goods is known as the cost of goods sold. Depending on the nature of your firm, this could also include raw materials, packaging, direct labor involved in making or selling the product, and items bought for resale.

First In First Out (FIFO), Last In First Out (LIFO), and the Average Cost Method are the three techniques that a business might employ when tracking the amount of inventory sold over a given time period.

Learn more about cost of goods sold here

brainly.com/question/17205761

#SPJ4

7 0
2 years ago
An issuer has filed a registration statement in the state proposing to offer 500,000 shares in a combined primary and secondary
sweet-ann [11.9K]

Answer:

b. 300,000 shares being sold is an issuer transaction and the 200,000 shares being sold is a non-issuer transaction.

Explanation:

A non-issuer transaction is a transaction that does not directly benefit an issuer or it was not directly executed to benefit an issuer.

According to the Uniform State Law, an entity involved in the sales of certificates of interest, leases, mining titles among others is officially exempted from being labelled as an issuer. Hence, the entity (officers of the firm) in the question are non-issuer brokers.

Specifically, when the sales of stock are carried out by someone or an individual who is not a registered stockbroker, that individual officially becomes what is called 'a non-issuer broker-dealer'. The implication is that such a transaction is to be exempted from the registration requirements of the Security Exchange Commission.

In this question, since the issuer newly issued 300,000 shares while the remaining 200,000 in the proposed combination was offered by Officers of the firm - non-issuer broker-dealers. The Law states that it must be separated to show that 300,000 shares are sold in an issuer transaction (Primary) directly involving an official issuer while 200,000 shares are sold in a non-issuer transaction (Secondary).

3 0
4 years ago
Michael Pollan discusses ""industrial organic"" agricultural systems in The Omnivore’s Dilemma. What is / are characteristic(s)
Kipish [7]

Answer:

The characteristics of industrial organic agriculture are:

  • economies of scale and mechanization
  • substitution of conventional inputs such as conventional fertilizer with organic fertilizers
  • bagging technology makes the transport of organic salads possible

Explanation:

Pollan's book discusses how modern individuals have a disconnection between food and knowledge. Modern individuals just pick up their food and practically don't know anything about how that food got reached our tables.

6 0
3 years ago
McDonald's "Plan to Win" strategy has added healthy food options to its menu, phased out traditional artery-clogging trans fats,
Anarel [89]
The correct answer will be A
7 0
3 years ago
Other questions:
  • Select the statement that does not support the narrow view of non-managerial employees' responsibilities to their employer, the
    10·1 answer
  • Which of the following is not an advantage of budgeting? a.It forces managers to plan. b.It provides information for decision ma
    14·2 answers
  • Liabilities and owner's equity of a company are $150,000 and $30,000, respectively. Determine assets using the accounting equati
    12·1 answer
  • A government security issued in minimum units of $1,000 with a 10-year to 30-year maturity is called a_____________.
    15·1 answer
  • If the percentage change in the quantity demanded of a good is greater than the percentage change in the price of the good, then
    6·2 answers
  • The HR department at Devlin Enterprises has a variety of communication tasks it has been assigned to handle. First, Isabelle, th
    8·1 answer
  • A reconciliation of pretax financial statement income to taxable income is shown below for Shaw-Anderson Industries for the year
    5·1 answer
  • This is a partial adjusted trial balance of Pharoah Company. PHAROAH COMPANY Adjusted Trial Balance January 31, 2022 Debit Credi
    12·1 answer
  • Provide some of your thoughts on what “dress for success” means to you, and give some examples
    8·1 answer
  • Which piece of information in the sales contract does not help the parties specify exactly which property is being purchased?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!