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
-
In late December 2017 Kakisa Inc. made a large shipment of goods to a new customer. Kakisa had been in negotiations with the customer for some time and the final agreement was an important step in...
-
a. i. Explain why some substances are radioactive and some are not. ii. State the cause of background radiation. iii. Explain what you understand by the meaning of the half-life of a radioactive...
-
What are the main causes of expatriate failure?
-
Klein Corporation reports the following summary data for the current year: a. Sales revenue totaled $125,750. b. Interest revenue for the period was $1,100. c. Interest expense for the period was...
-
Sherri owes $5,500 on her credit card. The card has an APR of 14.9 percent. Sherri has decided not to charge any additional purchases because she wants to get this debt paid in full. A) How much...
-
Consolidation related simulation example: Millennium Capital Management, Inc., (MCM) acquired a 90% interest in NextGen, Inc. MCM's Financial Manager, Matthew Steven, has prepared a draft memo to the...
-
Bed & Bath, a retailing company, has two departmentsHardware and Linens. The companys most recent monthly contribution format income statement follows: Department Total Hardware Linens Sales $...
-
How is data analytics different from statistics? What are the main differences between descriptive, predictive, and prescriptive analytics tools? How do businesses use analytics to convert raw...
-
3. Is Apple's decision to reduce packaging for the iPhone 12 a good marketing decision? (Is it responsible? Will it strengthen relationships with customers? Will it provide other benefits to Apple or...
-
1. Describe two positive outcomes of decision-making for an organization. 2. Give an example of a nonprogrammed decision. Please be specific. 3. Describe two methods an organization may use to break...
-
What are the five characteristics of a well-written judicial opinion? Explain.
-
Briefly explain each of the following terms and give examples of how they can be applied (or how they can occur) in a work environment Risk Management Risk Governance External Audit The Control...
-
On April 6, Year 1, J Company purchased $140,000 of merchandise inventory. Terms of the purchase included a discount of 3/20, n/30 and the freight terms were FOB destination. Freight costs amounted...
-
During the year land was revalued and the surplus reported as Revaluation surplus; and an asset costing 80,000, written down to 38,000, was sold for 40,000. Identify the cost of any non-current...
-
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...
-
The following is the trial balance of Sangeeta Udhyog Ltd. as on 31st March 2006. Further information 1.The authorised share capital of the company consists of 4,00,000 equity shares of ` 10 each. 2....
-
The accountant of Pushpa Engineering Company Ltd. has prepared the following trial balance of the company as on 31st March, 2006. Further information 1. Authorised equity share capital of the company...
-
Following trial balance as at 31st March 2006 has been prepared from the account books of Mahesh Foods Ltd. Further information 1.The authorized capital of the company is 3 lac equity shares of ` 10...
Study smarter with the SolutionInn App