Page 1 of 1

Email Question During the lockdown period, the EECE Department appointed an Inventory Manager to manage and distribute s

Posted: Thu Jul 14, 2022 2:12 pm
by answerhappygod
Email Question During The Lockdown Period The Eece Department Appointed An Inventory Manager To Manage And Distribute S 1
Email Question During The Lockdown Period The Eece Department Appointed An Inventory Manager To Manage And Distribute S 1 (78.33 KiB) Viewed 30 times
Email Question During the lockdown period, the EECE Department appointed an Inventory Manager to manage and distribute second hand components Component Initiative (ECl) to students in need. The Ineventory Manager received the following email: From: [email protected] To : [email protected] Dear Inventory Manager, I have a practical assignment in which I have to design a simple RL Filter. I require the following components for my el ectronics kit. Could you kindly check whether you have them in stock? - 5×360Ohm resistors - 4x Green LEDs - 2x minimum resistance potentiometers - 3x maximum resistance potentiometers - 25x Jumper wires - A 3 V rechargeable Alkaline battery May I request that you ship all available components from the list above to the following address:
May I request that you ship all available components from the list above to the following address: 25 Simon Avenue, Brooklyn, Pretoria. I would also appreciate some guidance regarding which inductor I should use, as I am not sure how to calculate the requi red value. If I use your minimum resistor value, what value inductor should I use to achieve a high-pass cut-off frequen cy of 5000 Hz ? Would you be able to also give me one of these minimum value resistors to use in my filter? Thank you in advance for your time and trouble. Kind regards, John Doe e component inventory is stored in a dictionary in the file emr201.py, which is provided. The following questions are all based on the email and the data in e dictionary, with the aim to generate a response email for the student.
Question 1: Creating Variables and Population of Variables Hint: Check the comments in the code for tips. Q 1.1.: Create and Assign Variables for Personal Details (2 marks) Create an interface which allows the inventory manager to enter the required details from the student email in variables. The required data - name (String), - surname (String), - student_number (Integer, do not include the 'u'), - delivery_required (Boolean), - delivery_address (String). Create a list with the name personal_details (case sensitive) containing the variables listed above. The order of the list entries should be: [name, surname, student_number, delivery_required, delivery_address].
Create and populate variables containing the information regarding the components needed by the student. The required data are: - resistance (Integer), - number_of_resistors (Integer), - led_colour (String), - number_of_leds (Integer), - number_of_min_pots (Integer), - number_of_max_pots (Integer), - number_of jumpers_needed (Integer), - battery_voltage (String), - battery_charge_type (String), - battery_type (String), - filter_frequency (float). Create a list with the name component_details (case sensitive) containing the variables listed above. The order of the list entries should be: [resistance, number_of_resistors, led_colour, number_of_leds, number_of_min_pots, number_of_max_pots, number_of_jumpers_ needed, battery_voltage, battery_charge_type, battery_type, filter_frequency].
Q 2.1.: Resistor Availability Check (1 mark) Q 2.2: LED Availability Check (5 marks) are enough LEDs. For this question, please use the following variable names for their prescribed goals: - number_of_leds_needed: Describes how many LEDs the student requires for the given colour. - desired_led_colour: A boolean operator checking whether the colour of the LEDs required by the student is in the inventory. - max_available: Describes the number of LEDs that are available for the given colour. - enough_LEDs: A boolean operator checking whether there are enough LEDs in the given colour in the inventory. Hint: Check for case mismatches (use .lower()). Q 2.3: Maximum and Minimum Potentiometer Values (4 marks) Determine the minimum and maximum potentiometer values available from the inventory. Assume the values are stored in Ω and return the values as integers.
Q 2.4.: Jumper wires arithmetic (2 marks) requested number of wires are allocated. Q 2.5: Battery (4 marks) Extract the specifications of the battery and test whether they meet the requirements posed by the student (see the email). Hint: use .upper() or .lower() to remove case sensitivity when comparing strings. Q 2.6: High-Pass RL Filter (5 marks) The equation below shows how the inductance value for a given cut-off frequency and resistor value of a passive high-pass RL filter is determined. Use this equation to determine the inductor value required for a given cutoff frequency using the minimum available resistor value in the inventory. L=2πfR​ Create a variable and store the resistance (in Ω ) of the minimum available resistor. Create another variable and store the inductor value (in μH ), accurate to two decimal places in the variable. Assume π has a value of 3.14. Check if the calculated inductor value is within the range of capalor in
the assessment. line_1: To: u[student number]@tuks.co.za line_2: From: [email protected] line_3: Dear [student name] [student surname], line_4: As requested, I have also calculated the inductor value required for your RL high-pass setup. When using the smallest available resistor ([minimum resistance resistor] Ω ), you should use an inductor with an inductance of approximately [inductor val] μH. [Inductor availability string] line_5: The following components will be made available to you: line_6: [no. resistors] [resistor value] Ω resistors, line_7: [no. LEDs]x [LED colour] LEDs, line_8: [no. min_pots]x [minimum resistance potentiometer] Ω potentiometers, line_9: [no. max_pots]x [maximum resistance potentiometer] Ω potentiometers, line_10: [no. jumpers]x Jumper wires, line_11: 1x [minimum resistance resistor] Ω resistor, line_12: [Battery availability string]
line_3: Dear [student name] [student surname], line_4: As requested, I have also calculated the inductor value required for your RL high-pass setup. When using the smallest available resistor ([minimur resistance resistor] Ω ), you should use an inductor with an inductance of approximately [inductor val] μH. [Inductor availability string] line_5: The following components will be made available to you: line_6: [no. resistors] [resistor value] Ω resistors, line_7: [no. LEDs]x [LED colour] LEDs, line_8: [no. min_pots] [minimum resistance potentiometer] Ω potentiometers, line_9: [no. max_pots]x[maximum resistance potentiometer] Ω potentiometers, line_10: [no. jumpers] x Jumper wires, line_11: 1× [minimum resistance resistor] Ω resistor, line_12: [Battery availability string] line_13: Best of luck with your practical assignment. line_14: Kind regards, line_15: Inventory Manager Hint: The unicode characters for Ω and μ, respectively, are: \u03A9 and \u03BC.