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
Which of the following types of protection is an employer required to pay for?
77julia77 [94]

Answer:

Hearing protection would be your answer!

Explanation:

This includes earplugs,muffs etc.

Hope it helps!

7 0
4 years ago
Read 2 more answers
A flat plate 1.5 m long and 1.0 m wide is towed in water at 20 o C in the direction of its length at a speed of 15 cm/s. Determi
beks73 [17]

Answer:

15.8

0.0944

Explanation:

L = 1.5

B = 1.0

Speed of water = 15cm

Temperature = 20⁰C

At 20⁰C

Specific weight = 9790

Kinematic viscosity v = 1.00x10^-4m²/s

Dynamic viscosity u = 1.00x10^-3

Density p = 998kg/m²

Reynolds number

= 0.15x1.5/1.00x10^-4

= 225000

S = 5

5x1.5/225000^1/2

= 0.0158

= 15.8mm

Resistance on one side of plate

F = 0.664x1x1.0x10^-3x0.15x225000^1/2

= 0.04724N

Total resistance

= 2N

= 2x0.04724

= 0.0944N

3 0
3 years ago
A tensile test was operated to test some important mechanical properties. The specimen has a gage length = 1.8 in and diameter =
oee [108]

Answer:

a) 60000 psi

b) 1.11*10^6 psi

c) 112000 psi

d) 30.5%

e) 30%

Explanation:

The yield strength is the load applied when yielding behind divided by the section.

yield strength = Fyield / A

A = π/4 * D^2

A = 0.5 in^2

ys = Fy * A

y2 = 30000 * 0.5 = 60000 psi

The modulus of elasticity (E) is a material property that is related to the object property of stiffness (k).

k = E * L0 / A

And the stiffness is related to change of length:

Δx = F / k

Then:

Δx = F * A / (E * L0)

E = F * A / (Δx * L0)

When yielding began (approximately the end of the proportional peroid) the force was of 30000 lb and the change of length was

Δx = L - L0 = 1.8075 - 1.8 = 0.0075

Then:

E = 30000 * 0.5 / (0.0075 * 1.8) = 1.11*10^6 psi

Tensile strength is the strees at which the material breaks.

The maximum load was 56050 lb, so:

ts = 56050 / 0.5 = 112000 psi

The percent elongation is calculated as:

e = 100 * (L / L0)

e = 100 * (2.35 / 1.8 - 1) = 30.5 %

If it necked with and area of 0.35 in^2 the precent reduction in area was:

100 * (1 - A / A0)

100 * (1 - 0.35 / 0.5) = 30%

5 0
3 years ago
B is the desired product, and X and Y are foul pollutants that are expensive to get rid of. The specific reaction rates are at 2
AURORKA [14]

Answer:

See attachment for detailed answer.

Explanation:

Download pdf
3 0
3 years ago
Which of the following are three criteria for creating measurable product attributes?
Vinil7 [7]

Answer:

it A

Explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • Given the following data, plot the stress-strain curves for the two unknown materials on the same set of stress-strain axes. Den
    9·1 answer
  • In some synchronizer applications, the clock frequency f is substituted for the parameter a in metastability MTBF calculations,
    12·1 answer
  • Tech A says that a gear set that has a drive gear with 9 teeth and a driven gear with 27 teeth has a gear ratio of 3:1. Tech B s
    7·1 answer
  • Define ""acidity"" of an aqueous solution. How do you compare the strength of acidity of solutions ?
    6·1 answer
  • Where is the Volkswagen super factory located? how is this locate relevant to us?​
    5·1 answer
  • WhT DO FILM PRODUTION SAY WHEN REMOVING GREEN AND BLUE SCREENS.
    14·1 answer
  • What type of drawing would civil engineers use if they needed to show an
    11·1 answer
  • The minimum fresh air requirement of a residential building is specified to be 0.35 air changes per hour (ASHRAE, Standard 62, 1
    10·1 answer
  • Vital role of maritime english among seaferers
    13·1 answer
  • A total of 245 kip force is applied to a set of 10 similar bolts. If the spring constant of each bolt is 0.4 Mlb/in and that of
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!