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
Proper handling of blueprints includes which of the following
marta [7]

Answer:

folding plans neatly after use

3 0
3 years ago
The dry unit weight of a soil sample is 14.8 kN/m3.
Jlenok [28]

Answer:

See attachment for completed question

Explanation:

Given that; Brainly.com

What is your question?

mkasblog

College Engineering 5+3 pts

The dry unit weight of a soil sample is 14.8 kN/m3.

Given that G_s = 2.72 and w = 17%, determine:

(a) Void ratio

(b) Moist unit weight

(c) Degree of saturation

(d) Unit weight when the sample is fully saturated

See complete solving at attachment

4 0
4 years ago
What is stress corrosion cracking?
aksik [14]

Answer:

The growth of crack formation in a corrosive environment.

Explanation:

6 0
3 years ago
Conditions of special concern: i. Suggest two reasons each why distillation columns are run a.) above or b.) below ambient press
lutik1710 [3]

Solution :

Methods for selling pressure of a distillation column :

a). Set, \text{based on the pressure required to condensed} the overhead stream using cooling water.

  (minimum of approximate 45°C condenser temperature)

b). Set, \text{based on highest temperature} of bottom product that avoids decomposition or reaction.

c). Set, \text{based on available highest } not utility for reboiler.

Running the distillation column above the ambient pressure because :

The components to be distilled have very high vapor pressures and the temperature at which they can be condensed at or below the ambient pressure.

Run the reactor at an evaluated temperature because :

a). The rate of reaction is taster. This results in a small reactor or high phase conversion.

b). The reaction is endothermic and equilibrium limited increasing the temperature shifts the equilibrium to the right.

Run the reaction at an evaluated pressure because :

The reaction is gas phase and the concentration and hence the rate is increased as the pressure is increased. This results in a smaller reactor and /or higher reactor conversion.

The reaction is equilibrium limited and there are few products moles than react moles. As increase in pressure shifts the equilibrium to the right.

7 0
3 years ago
What are the philological elements of interior design most like?
sp2606 [1]

Answer:

Ea public address glven via the intercom system of a large buildingxplanation:

7 0
2 years ago
Other questions:
  • A 500-m^3 rigid tank is filled with saturated liquid-vapor mixture of water at 200 kPa. If 20% of the mass is liquid and the 80%
    11·1 answer
  • How do I calculate the gear ratio​
    6·1 answer
  • The 10mm diameter rod is made of Kevlar 49. Determine the change in
    7·1 answer
  • Is microwave man made
    5·2 answers
  • ‘Politics and planning are increasingly gaining prominence in contemporary urban and regional planning debates’. Using relevant
    9·2 answers
  • Please I need help!<br><br> I need 1,2,&amp;3 drawn with front top and side view. Please help asap
    6·1 answer
  • You have a 12 volt power source running through a circuit that has 3kΩ of resistance, how many amps (in mA) can flow through the
    15·1 answer
  • a motor has torque of 200 nm if i motors attached to an arm with a length of 25 cm and a string is too attached to the end appro
    13·1 answer
  • What is the biggest disadvantage of using nuclear power to produce electricity?.
    10·1 answer
  • When cutting a FBD through an axial member, assume that the internal force is tension and draw the force arrow _______ the cut s
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!