Answer:
- using System;
- public class Program
- {
- public static void Main()
- {
- Console.WriteLine("Enter number of students: ");
- int num = Convert.ToInt32(Console.ReadLine());
- string [] firstName = new string[num];
- string [] lastName = new string[num];
-
- for(int i=0 ; i < num; i++){
- Console.WriteLine("Enter first name: ");
- firstName[i] = Console.ReadLine();
-
- Console.WriteLine("Enter last name: ");
- lastName[i] = Console.ReadLine();
- }
-
- for(int j=0; j < num; j++){
- Console.WriteLine(lastName[j] + "," + firstName[j]);
- }
- }
- }
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).
because not all substances react the same to temperature changes. If you heat a metal and an organic substance and you turn the temperature up, the organic substance like water will react (boil) while most metals need higher temperature to react.
Sometimes for a phone or computer
Answer:
Wright Company
Bank Reconciliation
May 31, 2013
Credit side Debit side
Bank statement $26200 | Book balance $27900
<em>Add; </em>
Deposit on May 31 $6400
Bank error $420
Sub-total=$33020
Deductions; | Deduct
ions
Outstanding checks $5800 | Bank service charge $120
Adjusted bank balance $27220 | NSF check $560
Total deduction $680
Adjusted book balance $27220