Ask Computer Engineering Expert

Q1. You cannot the limits on the axes in MATLAB.

TRUE

FALSE

Q2. In C the printf function will print the entire contents of an array.

TRUE

FALSE

Q3. A for loop is required to print out the elements of a structure in C.

TRUE

FALSE

Q4. The subscript 0 corresponds to the first element of an array in MATLAB.

TRUE

FALSE

Q5. In C it is not possible to create an array of structure.

TRUE

FALSE

Q6. There can be no more than 20 members in a structure.

TRUE

FALSE

Q7. The member operator, ",", is used to access the members of a structure.

TRUE

FALSE

Q8. In MATLAB a user defined function can only return one value.

TRUE

FALSE

Q9. MATLAB is a great tool for creating data plots quickly.

TRUE

FALSE

Q10. A string is a one dimensional array characters.

TRUE

FALSE

Q11.  Arrays in C can have _______ dimensions.

A. no less than two

B. no more than 4

C. more than 100

D. none of the above  

Q12. Which command would find the MATLAB function that calculates the standard deviation of a vector:

A. doc standard deviation

B. clc

C. look for 'standard deviation'

D. help 'standard deviation'

Q13. Which is the best song ever:

A. Baby

B. Boyfriend

C. U Smile

D. Love me

E. One Time

F. Justine Bieber songs are like children.

G. You have to love them all equally

Q14. Typpedef struct circle

{

double radius;

double center_x;

double center_y;

} Circle;

Please write the statement needed to declare and initialize a structure of type Circle. The radius is 5, center x coordinate of 3.5, and center y coordinate of -5.2. Remember this requires only one line.

Q15. Write the MATLAB command needed to create a vector t that begins with -2 and progresses to 10 at increments of 0.25.

Now write a MATLAB statement to square each element in t and add five to the result.

Q16. Declare a structure for holding information about a car. It should hold the model name, year , and mileage.

Use typedef to give the structure a name that does not require struct when creating an instance of it.

Q17. a)  Write a C statement to declare an array buff with 200 characters:

b) Write a C statement to declare a two dimensional array wind. The array must be able to hold a 5 by 6 table of data.

c) Write a C statement to declare an astray of four doubles g initialized with the value 1.8, 4, 12.98, and -0.3;

Q18. The U.S. Geological Survey is doing a survey of the Red River of the North. They are flying a UAV over the river and using a radar to get depths of the river bed. This is basically like taking depth readings along a slice of the river. The flow rate of the river is proportional to the area of the slices. To be able to predict river levels they need to read in the data captured by the UAV and calculate the area of the slices. Then print out the corresponding areas. To get the area of a slice, multiply each river depth by the radar beams width, 100 ft, and sum the values. There are three readings per slice.

1730_Figure.png

Step 1: State the problem

Step 2: Input and outputs

Step 3: Work hand example

Step 4: Develop the algorithm

Q19. The MATLAB starting point for a function is:

function ( output_args ) = Untitled( input_args )

%UNTITLED Summary of this function goes here

%  Detailed explanation goes here

end

a) Please give the first line to a MATLAB function that has three inputs: a, h, and c. The function should return the sum and average of the corresponding numbers. The function's name should be "sum_ave_three.

b) Provide the body of the function that calculates each value being returned.

c) Call the created function to find the sum and average of 3, 7, and 2. Store the results in my_sum and my_ave.

Q20. Describe two of the three types of data files. Provide a pro and con of each.

Q21. Please convert the following to MATLAB statements. Assume t and x are vectors.

a) 5+6*31.85/35+711.5

b) g = 25/1.3*t3 - 2.9*t2+28

c) w = 1.54 * sin2(x * π) + 0.678 * sin (x * π) + 15.32

Q22. What MATLAB function should be used to determine what the command/function sqrt does?

Q23. What is the best learning activity you have done in a class at UND?

Attachment:- Algorithm Q18.rar

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91957172

Have any Question?


Related Questions in Computer Engineering

Does bmw have a guided missile corporate culture and

Does BMW have a guided missile corporate culture, and incubator corporate culture, a family corporate culture, or an Eiffel tower corporate culture?

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Question -under what circumstances is it ethical if ever to

Question :- Under what circumstances is it ethical, if ever, to use consumer information in marketing research? Explain why you consider it ethical or unethical.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks,

Among the who imf and wto which of these governmental

Among the WHO, IMF, and WTO, which of these governmental institutions do you feel has most profoundly shaped healthcare outcomes in low-income countries and why? Please support your reasons with examples and research/doc ...

A real estate developer will build two different types of

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments. In addition, the developer will build either a swimming pool or a tennis cou ...

Question what some of the reasons that evolutionary models

Question : What some of the reasons that evolutionary models are considered by many to be the best approach to software development. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As