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
Dmitriy789 [7]
3 years ago
8

Write an application named EnterUppercaseLetters that asks the user to type an uppercase letter from the keyboard. If the charac

ter entered is an uppercase letter, display OK; if it is not an uppercase letter, display an error message. The program continues until the user types an exclamation point. C# C# C#
Engineering
1 answer:
ozzi3 years ago
6 0

Answer:

The solution code is given below

  1. using System;
  2. using System.Linq;
  3.      
  4. public class Program
  5. {
  6. public static void Main()
  7. {
  8.  string[] letters = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T","U", "V", "W", "X", "Y", "Z"};
  9.  
  10.  Console.WriteLine("Please input a letter: ");
  11.  string input_letter = Console.ReadLine();
  12.  
  13.  if(letters.Contains(input_letter)){
  14.   Console.WriteLine("OK");
  15.  }else{
  16.   Console.WriteLine("Error. Not uppercase letter.");
  17.  }  
  18. }
  19. }

Explanation:

Firstly we import the necessary libraries, System and Linq (Line 1-2).

Next we create a string array to hold all uppercase letters (Line 8).

Next, we prompt user to input a letter using the ReadLine() method (Line 10 - 11)

At last, we define if and else conditions to check if the letters contains the input letter. If so, print ok else print an error message. (Line 13-17)

You might be interested in
Explain why surface temperature increases when two bodies are rubbed against each other. What is the significance of temperature
Ronch [10]

Answer:

The surface temperature increases when two bodies are rubbed against each other due to friction.

Explanation:

No object has a perfectly even surface. So, when two bodies with uneven surfaces are rubbed against each other, they experience friction.

Friction is a resistance experienced by the two bodies when they are moved against each other.

The friction between the two surfaces, converts the kinetic energy of the movement to the thermal energy.

Thus, resulting in rise in the surface temperature of the two bodies.

Therefore, when two bodies are rubbed against each other, the surface temperature increases due to friction.

7 0
3 years ago
PLEASE ANSWER FOR DRIVERS ED! WILL GIVE BRAINLIEST
Zepler [3.9K]

Answer:D

Explanation:

Google it it’s 100 ft

8 0
3 years ago
Line.
Veronika [31]

Air supplied to a pneumatic system is supplied through the C. Actuator

Explanation

Pneumatic systems are like hydraulic systems, it is just that these systems uses compressed air rather than hydraulic fluid.  Pneumatic systems are used widely across the industries. these pneumatic systems needs a constant supply of compressed air to operate. This is provided by an air compressor. The compressor sucks in air at a very high rate from the environment and stores it in a pressurized tank. the Air is supplied thereafter with the help of a actuator valve that is a more sophisticated form of a valve.

From the above statement it is clear that Air supplied to a pneumatic system is supplied through the  Actuator

7 0
4 years ago
The size of Carvins Cove water reservoir is 3.2 billion gallons. Approximately, 11 cfs of water is continuous withdrawn from thi
Zolol [24]

Answer:

471 days

Explanation:

Capacity of Carvins Cove water reservoir = 3.2 billion gallons i.e. 3.2 x 10˄9 gallons

As,  

1 gallon = 0.133 cubic feet (cf)

Therefore,  

Capacity of Carvins Cove water reservoir in cf  = 3.2 x 10˄9 x 0.133

                                                                         = 4.28 x 10˄8

 

Applying Mass balance i.e

Accumulation = Mass In - Mass out   (Eq. 01)

Here  

Mass In = 0.5 cfs

Mass out = 11 cfs

Putting values in (Eq. 01)

Accumulation  = 0.5 - 11

                         = - 10.5 cfs

 

Negative accumulation shows that reservoir is depleting i.e. at a rate of 10.5 cubic feet per second.

Converting depletion of reservoir in cubic feet per hour = 10.5 x 3600

                                                                                       = 37,800

 

Converting depletion of reservoir in cubic feet per day = 37, 800 x 24

                                                                                         = 907,200  

 

i.e. 907,200 cubic feet volume is being depleted in days = 1 day

1 cubic feet volume is being depleted in days = 1/907,200 day

4.28 x 10˄8 cubic feet volume will deplete in days  = (4.28 x 10˄8) x                    1/907,200

                                                                                 = 471 Days.

 

Hence in case of continuous drought reservoir will last for 471 days before dry-up.

8 0
3 years ago
Consider a W21x93. Determine the moment capacity of the beam. Assume the compression flange is not laterally braced and that the
OLga [1]

Answer:

The answer is "828.75"

Explanation:

Please find the correct question:

For W21x93 BEAM,

Z_x = 221.00 in^3 \\\\\to \frac{b_t}{2t_f} =4.53\\\\\to \frac{h}{t_w}=32.3

For A992 STREL,

F_y= 50\  ks

Check for complete section:

\to \frac{b_t}{2t_f} =4.53 < \frac{65}{\sqrt{f_y = 9.19}}\\\\\to \frac{h}{t_w} =32.3 < \frac{640}{\sqrt{f_y = 90.5}}

Design the strength of beam =\phi_b Z_x F_y\\\\

                                                =0.9 \times 221 \times 50\\\\=9945 \ in \ \ kips\\\\=\frac{9945}{12}\\\\= 828.75 \ft \ kips \\

8 0
3 years ago
Other questions:
  • All MOS devices are subject to damage from:________
    7·1 answer
  • 1000 lb boulder B is resting on a 500 lb platform A when truck C accidentally accelerates to the right (truck in reverse). Which
    15·1 answer
  • In unguided medium (free space), the electromagnetic (EM) signal wave spreads as it leaves the transmit antenna. Since the power
    10·1 answer
  • By efficiency, we generally mean the ratio of the desired output to the required input. That is, efficiency is a measure of what
    7·1 answer
  • A 50 mol% mixture of propane (1) and n-butane (2) enters an isothermal flash drum at 37°C. If the flash drum is maintained at 0.
    12·1 answer
  • A preheater involves the use of condensing steam at 100o C on the inside of a bank of tubes to heat air that enters at I atm and
    14·1 answer
  • Why does an aeroplane smoke in the air​
    14·1 answer
  • Which of the following activities could be considered unethical?
    7·1 answer
  • What speeds did john j montgomerys gliders reach
    12·1 answer
  • A jet of water 75m in diameter,issues with a velocity of 30m/s and impinge on a stationary plate which distort its forward motio
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!