Task 1/3: No coding is necessary for this task. Using whatever means you like, process the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Task 1/3: No coding is necessary for this task. Using whatever means you like, process the following signal stream into a 52 (width) by 27 (height) ASCII art image frame: ------/XMMMM: :!!nn:X! MMM !MMMMX- MMMMMM !nMMMMM MMMX:X: : :/X:MMnnM: MMMMM innXMMn ∙nn- MMMMMMX: -!! MMM !nMMMM nMMMM: <TODO - Paste resultant image here> I: nnnxnnnXXn MMMMX MMMMnM- :MMMn! XnnMn! XXMMn Paste the parsed image below as text or a screenshot: MMMMM! -/XnMM! MMMMM: MMMM nMMMMX: MMMMM IMMMMM:: MXnn MMMMMMMMM --/::X:M! Task 2/3: But manually reconstituting an image is difficult and we'd much rather have our computers do the task for us. Based on the following code: 27, 52 char each line + public class Main { public static void main(String[] args) { /XnMMMMMMM: String quack = } MMMMMMMM ---::-: } MMMM IMMM: ./main -/XMMMM:: !nn:X!! !MMMMX- MMMMM: nnnxnnnXXn! nMX: MMMn! XnnMn! nMXXnnnnXMMn!! ----/XMMMM: !! MMM MX:X: System.out.print (quack.charAt(0) ); -/XXMMn! :/X:MMnnM: MMMMMMn !nMMMM: Fig. 2.3 - Sample code execution <TODO - Paste code that generates one line of output here> MMMMMMX Write a loop that will print the first "line" (the first 52 chars) of the ASCII image and paste your code below. MMMnl MMMMnM- -/::X:M! Task 3/3: Finally, modify your code from Task 2 to process and represent the whole image. -/XMMMM: ---/XnMM! MMMMM: /X:MMnnM: MMMMMMn- [...] Paste your code and output below: -- <TODO - Paste output here> -/::X:M! -- /XXMMn! wwwww −−!!! - Fig. 2.5 - Sample code execution <TODO - Paste code that generates full frame of output here> Problem Description: In order to transmit data across a cable, a sender transmits a series of high and low voltages which a receiver may interpret as "1's" and "0's". This may be further abstracted by dividing the stream into discrete chunks, then calling these chunks a representation of something (like letters, numbers, frequencies, amplitudes, etc.). One of the most familiar examples of this is video signals, where each pixel P in a frame is transmitted one after another along the wire. SENDER -> Px -> P₁₁ -> P3 -> P₂ -> P, -> P. -> RECEIVER But if the pixels are all lined up, how are they interpreted as an image? In one strategy, the display merely places the pixels as one might place letters when writing a book, from the top left, in horizontal lines, to the bottom right. Each row is referred to as a "scanline", and the display is specified by the width and height in pixels. Currently, a high quality display (colloquially termed '4K') might have a resolution up to 3840 x 2160 (width x height). This is sometimes also called '2160p', or 2160 line resolution. Interlude (just for funsies)! Calculate the number of bytes needed to represent an R:G:B tuple if each color channel can be in a state from 0 to 255. Calculate the following based on a 4K display: How many pixels are present on a 4K image? If the display refreshes at 60 hertz, how many pixels must be processed per second? Based on your byte calculation for the RGB values, how many bytes (minimum) are needed to refresh a 4K image at 60 hertz? An HDMI cable (standard speed) can transmit data at 4.92 gigbits per second. Is this a sufficient connection to carry this signal? Task 1/3: No coding is necessary for this task. Using whatever means you like, process the following signal stream into a 52 (width) by 27 (height) ASCII art image frame: ------/XMMMM: :!!nn:X! MMM !MMMMX- MMMMMM !nMMMMM MMMX:X: : :/X:MMnnM: MMMMM innXMMn ∙nn- MMMMMMX: -!! MMM !nMMMM nMMMM: <TODO - Paste resultant image here> I: nnnxnnnXXn MMMMX MMMMnM- :MMMn! XnnMn! XXMMn Paste the parsed image below as text or a screenshot: MMMMM! -/XnMM! MMMMM: MMMM nMMMMX: MMMMM IMMMMM:: MXnn MMMMMMMMM --/::X:M! Task 2/3: But manually reconstituting an image is difficult and we'd much rather have our computers do the task for us. Based on the following code: 27, 52 char each line + public class Main { public static void main(String[] args) { /XnMMMMMMM: String quack = } MMMMMMMM ---::-: } MMMM IMMM: ./main -/XMMMM:: !nn:X!! !MMMMX- MMMMM: nnnxnnnXXn! nMX: MMMn! XnnMn! nMXXnnnnXMMn!! ----/XMMMM: !! MMM MX:X: System.out.print (quack.charAt(0) ); -/XXMMn! :/X:MMnnM: MMMMMMn !nMMMM: Fig. 2.3 - Sample code execution <TODO - Paste code that generates one line of output here> MMMMMMX Write a loop that will print the first "line" (the first 52 chars) of the ASCII image and paste your code below. MMMnl MMMMnM- -/::X:M! Task 3/3: Finally, modify your code from Task 2 to process and represent the whole image. -/XMMMM: ---/XnMM! MMMMM: /X:MMnnM: MMMMMMn- [...] Paste your code and output below: -- <TODO - Paste output here> -/::X:M! -- /XXMMn! wwwww −−!!! - Fig. 2.5 - Sample code execution <TODO - Paste code that generates full frame of output here> Problem Description: In order to transmit data across a cable, a sender transmits a series of high and low voltages which a receiver may interpret as "1's" and "0's". This may be further abstracted by dividing the stream into discrete chunks, then calling these chunks a representation of something (like letters, numbers, frequencies, amplitudes, etc.). One of the most familiar examples of this is video signals, where each pixel P in a frame is transmitted one after another along the wire. SENDER -> Px -> P₁₁ -> P3 -> P₂ -> P, -> P. -> RECEIVER But if the pixels are all lined up, how are they interpreted as an image? In one strategy, the display merely places the pixels as one might place letters when writing a book, from the top left, in horizontal lines, to the bottom right. Each row is referred to as a "scanline", and the display is specified by the width and height in pixels. Currently, a high quality display (colloquially termed '4K') might have a resolution up to 3840 x 2160 (width x height). This is sometimes also called '2160p', or 2160 line resolution. Interlude (just for funsies)! Calculate the number of bytes needed to represent an R:G:B tuple if each color channel can be in a state from 0 to 255. Calculate the following based on a 4K display: How many pixels are present on a 4K image? If the display refreshes at 60 hertz, how many pixels must be processed per second? Based on your byte calculation for the RGB values, how many bytes (minimum) are needed to refresh a 4K image at 60 hertz? An HDMI cable (standard speed) can transmit data at 4.92 gigbits per second. Is this a sufficient connection to carry this signal?
Expert Answer:
Related Book For
Process Dynamics And Control
ISBN: 978-0471000778
2nd Edition
Authors: Dale E. Seborg, Thomas F. Edgar, Duncan A. Mellich
Posted Date:
Students also viewed these accounting questions
-
The image of Fig. 8-54(b) contains the ASCII text of five plays by Shakespeare. Would it be possible to hide music among the zebras instead of text? If so, how would it work and how much could you...
-
A 2.5 x 2.5 m steel sheet 1.5 mm thick is removed from an annealing oven at a uniform temperature of 425?C and placed in a large room at 20?C in a horizontal position.(a) Calculate the rate of heat...
-
A painting in an art gallery has height and is hung so that its lower edge is a distance above the eye of an observer (as in the figure). How far from the wall should the observer stand to get the...
-
Write the expression as one ratio without any negative exponents. x1/4x-3/4 X
-
The accounting records of Fuzzy Dice Auto Parts reveal the following: Compute cash flows from operating activities using the direct method for the year ended December 31, 2014. Payment of salaries...
-
Consider a quantum computation on four-qubit space in the Nielsen approach. Find a basis \(\mathcal{O}_{I}\) for the computation, and write down explicitly the Schrdinger equation for \(U(s)\) in...
-
The pressure drop, \(\Delta p\), along a straight pipe of diameter \(D\) has been experimentally studied, and it is observed that for laminar flow of a given fluid and pipe, the pressure drop varies...
-
The real risk-free rate of interest is 4%. Inflation is expected to be 2% this year and 4% during the next 2 years. Assume that the maturity risk premium is zero. What is the yield on 2-year Treasury...
-
An air-filled capacitor is formed from two long conducting cylindrical shells that are coaxial and have radii of 16 mm and 78 mm. The electric potential to the outer conductor is -321 V (k = 1/4TTE =...
-
As she headed toward her boss's office, Emily Hamilton, chief operating officer for the Aerocomp Corporation-a computer services firm that specialized in airborne support-wished she could remember...
-
The following information was reported in the December 31 financial statements of National Airways, Incorporated (listed alphabetically, amounts in millions). Accounts Payable. Accounts Receivable...
-
A system has a 3 ring security model. Ring 0 is used for a hypervisor, HV, managing virtual machines, Ring 1 is used for the O/S kernel of any of the virtual machines running, and Ring 2 is used by...
-
analyze the cash flow statement of the company. (Use a spreadsheet with relative and absolute reference to calculate the statement). Present the statement of cash flow using the indirect method for...
-
(10pts) Given T: R P(R) that is defined by T(a,b,c) = (a+b+c) + (a-b+c)x+ ar Determine if T is invertible and find T-1 if it exist. (Show all row operations when finding the inverse!)
-
Allen purchased a trademark on January 1 of last year for $150,000. On January 1 of this year, Allen sold the trademark for $200,000. How much of Allen's gain on the sale of the trademark is Sec....
-
Product A Product B Product C Product D Unit Contribution margin $77.00 $80.00 $40.00 $28.00 $ Time at bottleneck 10 20 6 0 Minutes Contribution margin per minute $7.70 $4.00 $6.67 Not defined $ What...
-
What is the maximum flow in the following graph? S 1 3 2 2 1 1 1 3
-
Match each of the key terms with the definition that best fits it. _______________ A record of the sequence of data entries and the date of those entries. Here are the key terms from the chapter. The...
-
For many chemical and biological processes, the steady-state gain changes when a process operating condition such as throughput changes. Consider a biomedical application where a drug flow rate is...
-
For the process in Exercise 14.5, the measurement is to be filtered using a noise filter with transfer function GF(s). Would you expect this change to result in better or worse control system...
-
A CSTR Is used to produce a specialty chemical. The reaction is exothermic and exhibits first-order kinetics. .Laboratory analyses for the product quality are time consuming, requiring several hours...
-
Using the results of Problem 2.6, determine the invariants \(U_{i}\) and \(V_{i}\) for the AS/3501 lamina, where \(i=1,2,3,4\). Problem 2.6 Find all components of the stiffness and compliance...
-
Show how the Mohr's circles in Figure 2.17 can be used to interpret the transformed lamina stiffness \(\bar{Q}_{12}\). FIGURE 2.17 40 'n Q11 In- n> Q11 20 -U-
-
Using the results of Problem 2.6 or Problem 2.16, compare the transformed lamina stiffnesses for AS/3501 carbon/epoxy plies oriented at \(+45^{\circ}\) and \(-45^{\circ}\). Problem 2.6 Using the...
Study smarter with the SolutionInn App