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
There is an electric field near the Earth's surface whose magnitude is about 145 V/m . How much energy is stored per cubic meter
weqwewe [10]

Answer:

u_e = 9.3 * 10^-8 J / m^3  ( 2 sig. fig)

Explanation:

Given:

- Electric Field strength near earth's surface E = 145 V / m

- permittivity of free space (electric constant) e_o =  8.854 *10^-12 s^4 A^2 / m^3 kg

Find:

- How much energy is stored per cubic meter in this field?

Solution:

- The solution requires the energy density stored between earth's surface and the source of electric field strength. The formula for charge density is given by:

                                        u_e = 0.5*e_o * E^2

- Plug in the values given:

                                        u_e = 0.5*8.854 *10^-12 *145^2

                                        u_e = 9.30777 * 10^-8  J/m^3

5 0
3 years ago
1). Mention any four operations that requires airlines. 2). Explain how airflow is applicable to the above mentioned operations.
vladimir2022 [97]

Answer:

Following are the answer to this question:

Explanation:

1)

Following the four operations in the airlines:

Landside operations:

In Airlines, the airports are divided into areas on the countryside and on the airside, in which landside region is available to the public, although strictly controlled access to the airside zone. Its area covers all areas of the airport across the aircraft, including parts of the buildings which can only be reached by customers and employees.

Airside Operations:

It's also committed to ensuring which air operations military exercises Ballarat airfields are safe and secure. It includes the provision of parking and flight escort services to itinerant and automates. Organizing operational response to incidents, accidents, or emergencies at the airport.

Billing and invoicing Operations:

This requires several steps, each of which must be performed with absolute accuracy to ensure that perhaps the airport operator is adequately paid for supplying passengers with all the services and infrastructure. After this, the receipts want to be produced and sent to customers on the airline.

Information management:

In this, it collects all the data about the customers and employees and it also helps in finding new routes and after collecting the data it processes on them.  

2)

It involves many activities in the airline, including dispatch, flight preparation, flight watch, weather information source, activities control, ground-to-air communications, and staff coordination, scheduling, and maintenance planning. Computing and expert programs are constantly being used to handle unpredictable activities.

4 0
3 years ago
Air within a piston cylinder assembly executes a Carnot refrigeration cycle between hot and cold reservoirs at TH=600 K and TC=3
Nataly [62]

Answer:

See explaination

Explanation:

for a reverse carnot cycle T-S diagram is a rectangle which i have shown

net work for a complete cycle must be equal to net heat interaction.

Kindly check attachment for the step by step solution of the given problem.

5 0
3 years ago
A step-down transformer (turns ratio = 1:7) is used with an electric train to reduce the voltage from the wall receptacle to a v
SOVA2 [1]

Answer:

wait lemme check it out

Explanation:

6 0
3 years ago
The constant A in Equation 17.2 is 12π4 R/5(θD) 3 where R is the gas constant and θD is the Debye temperature (K). Estimate θD f
kirill115 [55]

Answer:

The Debye temperature for aluminum is 375.2361 K

Explanation:

Molecular weight of aluminum=26.98 g/mol

T=15 K

The mathematical equation for the specific heat and the absolute temperature is:

C_{v} =AT^{3}

Substituting in the expression of the question:

C_{v} =(\frac{12\pi ^{4}R }{5\theta _{D}^{3}  } )T^{3}

\theta _{D} =(\frac{12\pi ^{4}RT^{3}  }{5C_{v}   } ) ^{1/3}

Here

C_{v} =4.6\frac{J}{kg-K} *\frac{1kg}{1000g} *\frac{26.98g}{1mol} =0.1241J/mol-K

Replacing:

\theta _{D}  =(\frac{12\pi ^{4}*8.31*15^{3}  }{5*0.1241} )^{1/3} =375.2361K

3 0
3 years ago
Other questions:
  • Please help me fast, I don’t have time
    15·1 answer
  • In order to avoid slipping in the shop, your footwear should __
    10·2 answers
  • Which of the following waste characteristic is considered to be hazardous:
    15·1 answer
  • A cylinder with a piston restrained by a linear spring contains 2 kg of carbon dioxide at 500 kPa and 400°C. It is cooled to 40°
    7·1 answer
  • Witch one is cuter compared to ur opinion calico kitten or grey?​
    5·1 answer
  • You leave your house at 5:02 PM and run 20 yards down the street. You don't realize that you forgot your Wallet back at home and
    11·1 answer
  • Why might many general contractors begin their careers as construction workers?
    9·1 answer
  • All of the following are drum brake components mounted to the backing plate, EXCEPT:
    12·1 answer
  • A logic circuit with 3 gates and 2 inputs. The circuit will be read from the final output to the inputs.
    9·1 answer
  • Question 3
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!