hi needed just decomposition and source code. XYZ must be changed to 498. please help. question is attached bellow;
Posted: Sun Jul 03, 2022 9:59 am
hi needed just decomposition and source code. XYZ must bechanged to 498. please help.
question is attached bellow;
In your solution document, in answer to Part ii below, write down your Pl and the individual number that you have obtained via Steps 1-3 from your Pl. We ask you to make use of the individual number based on your PI so you can demonstrate that your solution to this question part is your own. If you are unclear about how to use your PI to arrive at the individual number, do not hesitate to ask your tutor for advice. Please state your full PI and the individual number you obtained, so your tutor can establish that the digits you use for XYZ in 1.01XYZ correspond with the final three digits of your Pl. In this question part, you will develop an algorithm to calculate how a user might be affected when the receiver is travelling at speed. For example, someone in the back of a car using a mobile cell phone. You should read the question all the way through before you start, to make sure that you understand the scenario. Background to the problem: When an ambulance passes in the street the pitch of the siren drops suddenly as it passes by. This is because the sound waves are compressed as the ambulance approaches and decompressed as the ambulance moves away. This is an example of "Doppler Shift. Radio waves in cellular communications are subject to Doppler shift when the transmitter and the receiver are moving relative to each other. The importance of Doppler shift to mobile radio communications is that a large shift could move a transmission from one channel to another, especially when channels are closely spaced. A typical situation for cellular communications is when the cell phone is moving, as in the illustration below. The car with the cell phone moving from A to B at speed or velocity v towards the cellular base station which is transmitting to the cell phone in the car. The problem: 1) A Figure 1 A scenario where a car with a cell phone inside is moving towards the cellular base station. B Imagine you are a passenger in a car moving at velocity v either towards or away from a mobile phone transmitter broadcasting a signal at frequency f, in MHz. The velocity v in m/s will be multiplied by your individual number. Your algorithm should calculate f, in Hz that is the frequency at which your phone is receiving the signal (as a result of the Doppler shift). Step 1: The amount of the frequency change is dependent on the original frequency (f), the speed of the car (v) and the speed of ft, converted xx 101XYZ light (c). This change is the Doppler shift (f). The equation to calculate the Doppler shift is: f = The speed of light is 3 x 10³ m/s 2300 MHz Your individual number is tied to the velocity of the car throughout so that v is multiplied by 1.01XYZ at the start. f=2300×108 x 15 x 1.01123 3x108 fa = 116.29Hz For example, if the speed of the car is 15m/s, (just over 30 miles per hour) and the transmission frequency is 2300 MHz (2300 x 10 Hz) and the individual number is 1.01123 then: . Step 2: You can use a Boolean is_towards for the position of the car. If your car is travelling towards the transmitter then this frequency shift is added to the transmitter frequency, and if it is travelling away from the transmitter it is subtracted: Car travelling toward transmitter: fr = ft +fd Car travelling away from transmitter fr = ft - fd i. Develop an initial decomposition of the problem using the chevron notation (> and >>) from the module materials. Include your decomposition in your solution document. ii. Building on your decomposition for Part i, develop an algorithm for solving the problem. Include this algorithm in your solution document. In your solution document, in answer to this part, also write down your Pl and the individual number that you have obtained via Steps 1-3 from your Pl. iii. Write a Python function definition following the instructions that are provided below. Save your function in a file called Q4_OUCU.py, where OUCU is your OUCU number. When you have completed your work on this part: • submit the .py file with your function • paste the function definition from your .py file as text (with indentation preserved) into your solution document Instructions for writing the function: • Provide a single Python function that implements the algorithm you wrote for part c(ii). Your function must be a translation of your algorithm from part c(ii), otherwise no marks will be awarded. • The function should have three arguments: one for the car speed v (m/s), one for the frequency of transmission ft (MHz) and one for the direction of the movement of the car is_towards (to indicate whether it is moving towards or away from the transmitter). The function should have one return value for the received frequency fr iv. Test the function by calling it in the Python with the arguments 15, 2300 and the car is moving towards the base station. Include the function call and the result.
question is attached bellow;
In your solution document, in answer to Part ii below, write down your Pl and the individual number that you have obtained via Steps 1-3 from your Pl. We ask you to make use of the individual number based on your PI so you can demonstrate that your solution to this question part is your own. If you are unclear about how to use your PI to arrive at the individual number, do not hesitate to ask your tutor for advice. Please state your full PI and the individual number you obtained, so your tutor can establish that the digits you use for XYZ in 1.01XYZ correspond with the final three digits of your Pl. In this question part, you will develop an algorithm to calculate how a user might be affected when the receiver is travelling at speed. For example, someone in the back of a car using a mobile cell phone. You should read the question all the way through before you start, to make sure that you understand the scenario. Background to the problem: When an ambulance passes in the street the pitch of the siren drops suddenly as it passes by. This is because the sound waves are compressed as the ambulance approaches and decompressed as the ambulance moves away. This is an example of "Doppler Shift. Radio waves in cellular communications are subject to Doppler shift when the transmitter and the receiver are moving relative to each other. The importance of Doppler shift to mobile radio communications is that a large shift could move a transmission from one channel to another, especially when channels are closely spaced. A typical situation for cellular communications is when the cell phone is moving, as in the illustration below. The car with the cell phone moving from A to B at speed or velocity v towards the cellular base station which is transmitting to the cell phone in the car. The problem: 1) A Figure 1 A scenario where a car with a cell phone inside is moving towards the cellular base station. B Imagine you are a passenger in a car moving at velocity v either towards or away from a mobile phone transmitter broadcasting a signal at frequency f, in MHz. The velocity v in m/s will be multiplied by your individual number. Your algorithm should calculate f, in Hz that is the frequency at which your phone is receiving the signal (as a result of the Doppler shift). Step 1: The amount of the frequency change is dependent on the original frequency (f), the speed of the car (v) and the speed of ft, converted xx 101XYZ light (c). This change is the Doppler shift (f). The equation to calculate the Doppler shift is: f = The speed of light is 3 x 10³ m/s 2300 MHz Your individual number is tied to the velocity of the car throughout so that v is multiplied by 1.01XYZ at the start. f=2300×108 x 15 x 1.01123 3x108 fa = 116.29Hz For example, if the speed of the car is 15m/s, (just over 30 miles per hour) and the transmission frequency is 2300 MHz (2300 x 10 Hz) and the individual number is 1.01123 then: . Step 2: You can use a Boolean is_towards for the position of the car. If your car is travelling towards the transmitter then this frequency shift is added to the transmitter frequency, and if it is travelling away from the transmitter it is subtracted: Car travelling toward transmitter: fr = ft +fd Car travelling away from transmitter fr = ft - fd i. Develop an initial decomposition of the problem using the chevron notation (> and >>) from the module materials. Include your decomposition in your solution document. ii. Building on your decomposition for Part i, develop an algorithm for solving the problem. Include this algorithm in your solution document. In your solution document, in answer to this part, also write down your Pl and the individual number that you have obtained via Steps 1-3 from your Pl. iii. Write a Python function definition following the instructions that are provided below. Save your function in a file called Q4_OUCU.py, where OUCU is your OUCU number. When you have completed your work on this part: • submit the .py file with your function • paste the function definition from your .py file as text (with indentation preserved) into your solution document Instructions for writing the function: • Provide a single Python function that implements the algorithm you wrote for part c(ii). Your function must be a translation of your algorithm from part c(ii), otherwise no marks will be awarded. • The function should have three arguments: one for the car speed v (m/s), one for the frequency of transmission ft (MHz) and one for the direction of the movement of the car is_towards (to indicate whether it is moving towards or away from the transmitter). The function should have one return value for the received frequency fr iv. Test the function by calling it in the Python with the arguments 15, 2300 and the car is moving towards the base station. Include the function call and the result.