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
Write the closed-loop transfer function for the system and determine the closed-loop pole locations. Is the closed-loop system s
Naily [24]

Answer:

Check the explanation

Explanation:

To write the closed-loop transfer function for the system and determine the closed-loop pole locations as well as to determine the damping ratio and the natural frequency, we will be be doing a step by step calculation and explanation including the graphical presentation as seen in the attached images below.

6 0
4 years ago
Explain why slopping roofs are used in areas with heavy rain or snow fall
Savatey [412]

Answer:

Slopping or slanting roofs are found in houses where there are snow or rain, because it helps the water or the snow to skid down easily. It minimizes the chances of waterlogging because water cannot rest on the roof surface for long.

Explanation:

Brainliest pls.

8 0
3 years ago
Refrigerant 134a vapor in a piston-cylinder assembly undergoes a process at constant pressure from an initial state at 8 bar and
jonny [76]

Answer:

- Work done is 2.39 kJ

- heat transfer is 20.23 kJ/kg

Explanation:    

Given the data in the question;

First we obtain for specific volumes and specific enthalpy from "Table Properties Refrigerant 134a;

Specific Volume v₁ =  0.02547 m³/kg

Specific enthalpy u₁ = 243.78 kJ/kg

Specific Volume V₂ = 0.02846 m³/kg

Specific enthalpy u₂ = 261.62 kJ/kg

p = 8 bar = 800 kPa

Any changes in kinetic and potential energy are negligible.

So we determine the work done by using the equation at constant pressure

]Work done W = p( v₂ - v₁ )

we substitute

W = 800 kPa( 0.02846 m³/kg - 0.02547 m³/kg )

W = 800 kPa( 0.00299 m³/kg )

W = 2.39 kJ

Therefore, Work done is 2.39 kJ

Heat transfer;

using equation at constant pressure

Heat transfer Q = W + ( u₂ - u₁ )

so we substitute

Q = 2.392 kJ + ( 261.62 kJ/kg - 243.78 kJ/kg )

Q = 2.392 kJ +  17.84 kJ/kg )

Q = 20.23 kJ/kg

Therefore, heat transfer is 20.23 kJ/kg

3 0
3 years ago
PLEASE ANSWER ASAP 20 points and brainlyyy
k0ka [10]

Answer:

top right

Explanation:

4 0
3 years ago
Read 2 more answers
A vacuum gage connected to a chamber reads 35 kPa at a location where the atmospheric pressure is 92 kPa. The absolute pressure
Elodia [21]

Answer:

Absolute pressure= 57 KPa

Explanation:

Given that

Vacuum gauge pressure = 35 KPa

Atmospheric pressure = 92 KPa

We know that

Absolute pressure=Atmospheric pressure  + gauge pressure

But we should remember that Vacuum gauge pressure is also called negative gauge pressure.So when given that pressure is vacuum gauge then subtract gauge pressure from atmospheric pressure instead of addition.

So now by putting the values

Absolute pressure=Atmospheric pressure  - Vacuum gauge pressure

Absolute pressure=92 - 35 KPa

Absolute pressure= 57 KPa

7 0
3 years ago
Other questions:
  • Identify the five protective factors
    10·2 answers
  • A westbound section of freeway currently has three 12-ft wide lanes, a 6-ft right shoulder, and no ramps within 3 miles upstream
    6·1 answer
  • How do cellphones affect the communication industry?
    15·1 answer
  • Mild neurotoxins can cause which of these physical effects?
    11·1 answer
  • 50POINTS
    15·2 answers
  • What is angle of p hirojection​
    13·1 answer
  • What is the primary reason that heating, ventilating, and air conditioning (HVAC) is critical to a data center
    8·1 answer
  • Which of the following explains why truck drivers are required to take a rest period after a certain period of driving?
    8·2 answers
  • What is the minimum level of isolation required on T2 such that T2 never sees a value of zero in its output
    10·1 answer
  • Soru No 3
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!