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
slamgirl [31]
3 years ago
12

C#: Arrays - Ask the user how many students names they want to store. You will create two parallel arrays (e.g. 2 arrays with th

e same size, the first array will hold all of the students first names and the second array will hold all of the students last names). Once the user has input all of the students first names last names, output all of the students names in the following format: Lastname, Firstname. You must use two separate loops, the first to store the values in the arrays and the second to output all of the names.
Engineering
1 answer:
zhenek [66]3 years ago
4 0

Answer:

  1. using System;      
  2. public class Program
  3. {
  4. public static void Main()
  5. {
  6.  Console.WriteLine("Enter number of students: ");
  7.  int num = Convert.ToInt32(Console.ReadLine());
  8.  string [] firstName = new string[num];
  9.  string [] lastName = new string[num];
  10.  
  11.  for(int i=0 ; i < num; i++){
  12.   Console.WriteLine("Enter first name: ");
  13.   firstName[i] = Console.ReadLine();
  14.    
  15.   Console.WriteLine("Enter last name: ");
  16.   lastName[i] = Console.ReadLine();
  17.  }
  18.  
  19.  for(int j=0; j < num; j++){
  20.   Console.WriteLine(lastName[j] + "," + firstName[j]);
  21.  }
  22. }
  23. }

Explanation:

Firstly, prompt user to enter number of student to be stored (Line 6- 7). Next, create two array, firstName and lastName with num size (Line 8-9).

Create a for-loop to repeat for num times and prompt user to enter first name and last name and then store them in the firstName and lastName array, respectively (Line 11 - 17).

Create another for loop to traverse through the lastName and firstName array and display the last name and first name by following the format given in the question (Line 19 - 21).

You might be interested in
13. Which stroke of the four-stroke cycle is shown in the above figure?
lianna [129]

Answer:

the cycle is on the power just before the exhaust as both the valves are closed

7 0
2 years ago
30POINTS
garri49 [273]
Concentrating solar power (CSP) plants use mirrors to concentrate the sun's energy to drive traditional steam turbines or engines that create electricity. The thermal energy concentrated in a CSP plant can be stored and used to produce electricity when it is needed, day or night. Today, roughly 1,815 megawatts (MWac) of CSP plants are in operation in the United States.

Parabolic Trough
Parabolic trough systems use curved mirrors to focus the sun’s energy onto a receiver tube that runs down the center of a trough. In the receiver tube, a high-temperature heat transfer fluid (such as a synthetic oil) absorbs the sun’s energy, reaching temperatures of 750°F or higher, and passes through a heat exchanger to heat water and produce steam. The steam drives a conventional steam turbine power system to generate electricity. A typical solar collector field contains hundreds of parallel rows of troughs connected as a series of loops, which are placed on a north-south axis so the troughs can track the sun from east to west. Individual collector modules are typically 15-20 feet tall and 300-450 feet long.

Compact Linear Fresnel Reflector
CLFR uses the principles of curved-mirror trough systems, but with long parallel rows of lower-cost flat mirrors. These modular reflectors focus the sun's energy onto elevated receivers, which consist of a system of tubes through which water flows. The concentrated sunlight boils the water, generating high-pressure steam for direct use in power generation and industrial steam applications.
3 0
3 years ago
Read 2 more answers
Establishes general guidelines concerning licensing and vehicle
gavmur [86]

Answer:

A. National Highway Safety Act

Explanation:

The National Highway Safety Act establishes general guidelines concerning licensing, vehicle registration and inspection, and traffic laws for state regulations. The act was made in 1966 to reduce the amount of death on the highway as a result of increase in deaths by 30% between 1960 and 1965

National Traffic and Motor Vehicle Safety Act regulates vehicle manufacturers  by ensuring national safety standards and issuance recalls for defective vehicles

Uniform Traffic Control Devices Act  defines shapes, colors and locations for road signs, traffic signals, and road markings

5 0
3 years ago
Read 2 more answers
Which best describes the body in terms of simple machines?
alex41 [277]

Answer:B

Explanation:

5 0
3 years ago
Affordability is most concerned with:
leva [86]

Answer:

feasibility study

Explanation:

7 0
2 years ago
Other questions:
  • A closed, rigid tank fitted with a paddle wheel contains 2.0 kg of air, initially at 200oC, 1 bar. During an interval of 10 minu
    8·1 answer
  • Significant figures are an indicator of accuracy. a) True b) False
    8·1 answer
  • name the process by which mild steel can be converted into high carbon steel and explain it briefly ?​
    12·1 answer
  • Which of the following is a purpose of sports biomechanics?
    14·1 answer
  • A 1/4" nut driver with a 1.52 inch diameter handle is used to install a 14" 6 UNC
    13·1 answer
  • EverFi future smart pie chart
    11·1 answer
  • How do all the cars work to move?
    9·2 answers
  • What is the minimum clamp time for gluing a panel?
    7·1 answer
  • A technician is building a high-performance gaming pc. which two items should the technician focus on selecting parts for the ma
    8·1 answer
  • Key term of Bimetal strip
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!