Questions
Directly copy the source code and paste into the Word file. Screenshot of running result must...

Directly copy the source code and paste into the Word file. Screenshot of running result must be presented.

1. (20 points) Write the “Hello, world!” program.

2. (30 points) Write a program to calculate the sum from -5 to10. Use the for loop to do the calculation.

3. (20 points) Write a complete C++ program that asks the user to enter the necessary information about the cylinder, calculate the volume in a function (named as calculate_vol, using reference to pass the volume value out), then display the cylinder volume in main function. The volume of cylinder is:

Vol_Cylinder = πr2h

Where π is 3.14159265, r is the radius, and h is the height.

4. (30 points) Declare a vector container. Using keyboard to input several integer numbers, say at least six integer numbers; find the smallest number and display the result.

In: Electrical Engineering

BY Using MATLAB software: Exercise 3: Calculation of the parameters of a dipole. % M-File: ML0804...

BY Using MATLAB software:

Exercise 3: Calculation of the parameters of a dipole.

% M-File: ML0804

%

% Perform numerical integration to find

% beam solid angle, directivity, and the

% maximum power function for a given length

% dipole.

%

% Variables

% L dipole length (in wavelengths)

% bL2 phase constant * length/2

% N number of theta points

% th,thr angle theta in degrees,radians

% dth differential theta

% num,den temporary variables

% F un-normalized power function

% Fmax maximum power function (W/m^2)

% omegaP beam solid angle (sr)

% D Directivity

clc %clears the command window

clear %clears variables

% Initialize variables

L=1.5;

bL2=pi*L;

N=90;

% Perform calculations

i=1:1:N;

dth=pi/N;

th(i)=i*pi/N;

num(i)=cos(bL2.*cos(th(i)))-cos(bL2);

den(i)=sin(th(i));

F(i)=((num(i)).^2)./den(i);

Fmax=max(F);

Pn=F./Fmax;

omegaP=2*pi*dth*sum(Pn)

D=4*pi/omegaP

Fmax

Question 3: Run this program for different choices of the dipole length.

In: Electrical Engineering

Consider a wind turbine comprised of two blades, with a radius of 63 ft., which delivers...

Consider a wind turbine comprised of two blades, with a radius of 63 ft., which delivers maximum power when the wind speed is above 16 knots (18.4 mph). The wind turbine is designed to produce 135 hp with an efficiency of 74%. The rotor is designed to operate at a constant speed of 45 rpm in winds over 5 knots (5.8 mph) by controlling system load and adjusting blade angles.

Estimate the blade speed and power coefficient for the maximum power condition.

In: Electrical Engineering

What is the space state averaged model of a Boost Converter? Please show ALL work and...

What is the space state averaged model of a Boost Converter? Please show ALL work and steps!

In: Electrical Engineering

Explain the role of forward resistance in PN junction diode . Differentiate the approximate and simplified...

Explain the role of forward resistance in PN junction diode . Differentiate the approximate and simplified diode models on the basis of forward resistance.

In: Electrical Engineering

Q1Explain with your own words the function of a voltage divider and list 3 applications (include...

Q1Explain with your own words the function of a voltage divider and list 3 applications (include the reference/swith your answer)

Q2Explain with your own words the function of a current divider and list 3 applications (include the reference/s with your answer)

Q3Explain the function of dependent or controlled voltage and current sources and list 3 applications (include the reference/s with your answer)

Q4Explain the meaning of Passive Reference Configuration.

In: Electrical Engineering

Describe the starting curves of asynchronous motors, with direct start, star-delta start and soft start. (graph...

Describe the starting curves of asynchronous motors, with direct start, star-delta start and soft start. (graph and explain)

In: Electrical Engineering

A 37.3 kW 4 pole 50 Hz induction machine has a friction windage torque of 22...

  1. A 37.3 kW 4 pole 50 Hz induction machine has a friction windage torque of 22 N-m. the stator losses equal the rotor circuit loss. Calculate:
  1. The input power to the stator when delivering full-load output at a speed of 1.440 rev/min [44000 W]
  2. The gross input and stator output power when running at a speed of 1560 rev/min. the stator losses are as in (a) and the windage and friction torque is unchanged [291 N-m; 40300 W]

In: Electrical Engineering

Define distributed generation (DG) system. In your opinion, explain briefly THREE (3) reasons why distribution generation...

  1. Define distributed generation (DG) system. In your opinion, explain briefly THREE (3) reasons why distribution generation (DG) based on renewable energy sources (RES) has become more popular now.

In: Electrical Engineering

List and describe the steps in the power-on procedure

List and describe the steps in the power-on procedure

In: Electrical Engineering

You recently shifted in a house, and you found three appliances, A of 900 W, B...

You recently shifted in a house, and you found three appliances, A of 900 W, B of 1300 W, and C of 750W, in the kitchen connected to a supply of 240 volts and a circuit breaker of 7.5 A current. Which appliances can be used simultaneously?

a = 1, b = 3 , c= 9

Need answer quick

thanks

In: Electrical Engineering

How do you connect a relay switch to a servo motor to turn it on/off? (Schematic)

How do you connect a relay switch to a servo motor to turn it on/off? (Schematic)

In: Electrical Engineering

(CO 3) If an event is captured at a reading of 0x52BA, what will the counter...

(CO 3) If an event is captured at a reading of 0x52BA, what will the counter value be if the next event occurs after 1 ms? The E-clock is 12 MHz.

Group of answer choices

a) 0xD06C

b) 0x72AC

c) 0x819A

d) 0xF020

In: Electrical Engineering

3. Use Matlab to find the partial fraction expansion of the functions below. a) F(s)=16(s+2)/((s+4)(s2+6s+9)) show...

3. Use Matlab to find the partial fraction expansion of the functions below.

a) F(s)=16(s+2)/((s+4)(s2+6s+9))

show your Matlab commands and answers in the space below

b) F(s)=(s2+2s+2)/((s+1)2(s+4)2)

show your Matlab commands and answers in the space below

In: Electrical Engineering

Explain the concept of modulation. b-) Explain the reasons for the modulation. c-) Classify the modulation...

Explain the concept of modulation. b-) Explain the reasons for the modulation. c-) Classify the modulation and write the usage places. d-) Write down the factors that cause a loss in modulation circuits

In: Electrical Engineering