TypicalExaminationQuestionFormat

.docx

School

University of Miami *

*We aren’t endorsed by this school

Course

422

Subject

Industrial Engineering

Date

Oct 30, 2023

Type

docx

Pages

1

Uploaded by CorporalRaven3623

Report
Programming for Engineers (ELEE1147): A Typical Format for an Examination Question An examination question will be structured in order to allow the awarding of marks, and marks that build up through the classification levels. For example: 3. Structures are important compound data structures in C++ and are often used to handle complex data (real and imaginary values) in signal collection systems. a) Implement the structure shown by Figure Q3 in a main/client function and with the following initialisation of the variables: fc = 415000; fs = 16000; delta_f = 0; buffer_count = 0; [4 Marks] b) With the use of example code, show how the contents of the implemented structure can be displayed to STDOUT. [6 Marks] c) There is a requirement to keep track on how many times the implementation of a struct such as Signal is called in a program. Describe (with supporting code if necessary) how the use of a static variable could be used for this purpose. In other words, does the use of int buffer_count achieve this? [5 Marks] d) How could the real and imaginary parts of a complex number, e.g.: (2.35 + 4.00j), be handled in an array? [5 Marks] #include<iostream> using namespace std; #define BUFFER_SIZE 8 struct Signal { float fc; // Carrier Frequency float fs; // Sampling Frequency; int delta_f; // Change of Carrier? int buffer_count; // Number of Buffers used double data[BUFFER_SIZE]; // The data, which could be complex }; Figure Q3 Dr D I Armour-Chélu December 2018 Faculty of Engineering and Science “Set the scene” All students should be able to answer this – the “4/10” / 3rd Here, we are starting to draw out the average/above average student – the “5-6/10” / 2:2 and 2:1 This is “tricky” and a student that reads beyond the current level of this course should be able to answer this – the “7-10/10” / 1st
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help

Browse Popular Homework Q&A

Q: a subspace of the vector space R³ or not. Briefly explain. 71. ry 2 0. 72. |x| = yl. 73. ry ≥ 0 and…
Q: f(x) = 2x +3, P = {-4, -1, 1, 4, 8), C = (-3, 0, 2, 5)
Q: Suppose you are playing hockey on a new-age ice surface for which there is no friction between the…
Q: Determine is the given alternating series converges or diverges using the Alternating Series Test.…
Q: July 1 Purchased merchandise from Griffin Company for $10,400 under credit terms of 1/15, n/30, FOB…
Q: (a) Factor the expression 4x2 + 17x - 15. (b) Solve the equation 4x2 + 17x - 15 = 0. If there is…
Q: A 6.0 kg box slides down an inclined plane that makes an angle of 39° with the horizontal. If the…
Q: name a movie or tv show that relate to the time period (3500 BCE – 1700 CE) and how so?
Q: Deer ticks can be carriers of either Lyme disease or human granulocytic ehrlichiosis (HGE). Based on…
Q: sin x and y = k (dotted) are shown at right. Given that the coordinates of P are (0, k), find the…
Q: Mauricio has a circus act that involves monkeys on unicycles. Mauricio has a fixed amount to spend…
Q: In the question below, do 50 minutes imply the mean of the population or the mean of the sample?…
Q: Senegal K MALI 0 0 Timbuktu ALMORAVID EMPIRE (1050-1140) GHANA 500 B 500 SONGHAI Gao KANEM- HAUSA…
Q: Problem 4. Determine whether the following vectors form a spanning set for the vector space R2: (i)…
Q: Allison will graduate from high school next June. She has ranked her three possible post- graduation…
Q: Step 1: Balance the unbalanced half oxidation reaction for Pb(s) → Pb2+ (aq) Step 2: Balance the…
Q: Find the present value of an ordinary annuity with deposits of $22,325 quarterly for 5 years at 7.6%…
Q: How about some instances of software maintenance strategies in the real world?
Q: se the sample data and confidence level given below to complete parts​ (a) through​ (d).   A drug is…
Q: A) empirical B) prescriptive C) theoretical D) descriptive E) observed
Q: a life example that involves the dramaturgical app
Q: What is the light collecting area of the human eye in darkness, when it has a pupil diameter of 0.01…