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).
Answer:
(a) 20 MHz
(b) 1.025 KW
(c) 3.33 ns
(d) 33 pF
Explanation:
(a) 20,000,000 Hz = 20 x 10^6 Hz = 20 Mega Hz = <u>20 MHz</u>
(b) 1025 W = 1.025 x 10^3 W = 1.025 Kilo W = <u>1.025 KW</u>
(c) 0.333 x 10^(-8) s = 3.33 x 10^(-9) s = 3.33 nano s = <u>3.33 ns</u>
(d) 33 x10^(-12)F = 33 pico F = <u>33 pF</u>
Answer:
b) The null hypothesis should be rejected.
Explanation:
The null hypothesis is that the mean shear strength of spot welds is at least
3.1 MPa
H0: u ≥3.1 MPa against the claim Ha: u< 3.1 MPa
The alternate hypothesis is that the mean shear strength of spot welds is less than 3.1 MPa.
This is one tailed test
The critical region Z(0.05) < ± 1.645
The Sample mean= x`= 3.07
The number of welds= n= 15
Standard Deviation= s= 0.069
Applying z test
z= x`-u/s/√n
z= 3.07-3.1/0.069/√15
z= -0.03/0.0178
z= -1.68
As the calculated z= -1.68 falls in the critical region Z(0.05) < ± 1.645 the null hypothesis is rejected and the alternate hypothesis is accepted that the mean shear strength of spot welds is less than 3.1 MPa