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
mrs_skeptik [129]
3 years ago
14

Write a program that reads characters from the standard input to end-of-file. For each character, have the program report whethe

r it is a letter. If it is a letter, also report its numerical location in the alphabet. For example, c and C would both be letter 3. Incorporate a function that takes a character as an argument and returns the numerical location if the character is a letter and that returns –1 otherwise.
Engineering
1 answer:
Molodets [167]3 years ago
7 0
From stack overflow

in the C language:

#include ctype.h
int GetPosition(char c)
{
c = tolower(unsigned char(c));
if (c >= 'a' && c <= 'z') return c - 'a';
else return -1;
}
You might be interested in
When converting liquid level units to sensor output signal units, you should first convert the liquid level units to _____ units
dangina [55]
The answer is 2 because I just took the test!
7 0
2 years ago
Air modeled as an ideal gas enters a combustion chamber at 20 lbf/in.2
motikmotik

Answer:

The answer is "112.97 \ \frac{ft}{s}"

Explanation:

Air flowing into thep_1 = 20 \ \frac{lbf}{in^2}

Flow rate of the mass m  = 230.556 \frac{lbm}{s}

inlet temperature T_1 = 700^{\circ} F

PipelineA= 5 \times 4 \ ft

Its air is modelled as an ideal gas Apply the ideum gas rule to the air to calcule the basic volume v:

\to \bar{R} = 1545 \ ft \frac{lbf}{lbmol ^{\circ} R}\\\\ \to M= 28.97 \frac{lb}{\bmol}\\\\ \to pv=RT \\\\\to v= \frac{\frac{\bar{R}}{M}T}{p}

      = \frac{\frac{1545}{28.97}(70^{\circ}F+459.67)}{20} \times \frac{1}{144}\\\\=9.8 \frac{ft3}{lb}

V= \frac{mv}{A}

   = \frac{230.556 \frac{lbm}{s} \times 9.8 \frac{ft^3}{lb}}{5 \times 4 \ ft^2}\\\\= 112.97 \frac{ft}{s}

8 0
3 years ago
What is the resistance of a resistor if the current flowing through it is 3mA and the voltage across it is 5.3V?
Flura [38]

Answer: 1766.667 Ω = 1.767kΩ

Explanation:

V=iR

where V is voltage in Volts (V), i is current in Amps (A), and R is resistance in Ohms(Ω).

3mA = 0.003 A

Rearranging the equation, we get

R=V/i

Now we are solving for resistance. Plug in 0.003 A and 5.3 V.

R = 5.3 / 0.003

= 1766.6667 Ω

= 1.7666667 kΩ

The 6s are repeating so round off to whichever value you need for exactness.

6 0
1 year ago
What is the force in kN of work done is 1.2 ms moves through 120m​
Semmy [17]

Answer:

\frac{1.2}{120}

0.01

5 0
2 years ago
A liquid phase chemical reaction (A → B) takes place in a well-stirred tank. The concentration of compound A in the feed is CA0
SCORPION-xisa [38]

Answer:

EH buddy use a sparkplug use a drill through a hose im from da bronx

Explanation:

4 0
4 years ago
Other questions:
  • What parts does the block contain?
    5·2 answers
  • Very thin films are usually deposited under vacuum conditions to prevent contamination and ensure that atoms can fly directly fr
    14·1 answer
  • A student proposes a complex design for a steam power plant with a high efficiency. The power plant has several turbines, pumps,
    6·1 answer
  • 1. Represent each of the following combinations of units in the correct SI form using the appropriate prefix: (a) μMN, (b) N/μm,
    6·1 answer
  • A logic chip used in a computer dissipates 3 W of power in an environment at 120°F, and has a heat transfer surface area of 0.08
    11·1 answer
  • What are the initial questions that a systems analyst must answer to build an initial prototype of the system output.
    14·1 answer
  • Help me asap I rely need help u will be my fav​
    8·2 answers
  • if stall speed in ktas for an aircraft us 100 ktas at sea level, what is the stall speed in ktas of the aircraft at 5000 ft dens
    7·1 answer
  • Evaluate, please show work as I don't understand. thanks
    5·1 answer
  • A particular electromagnetic wave travelling in vacuum is detected to have a frequency of 3 × 10 12 Hz. How much time will it ta
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!