Write a simple C# program that creates an image of the sin function. y = sin...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a simple C# program that creates an image of the sin function. y = sin x - file format: pgm (P2 / grey) - file name: out.pgm - sin function: width/domain/x: [0..2pi] y: real numbers [-1.0..+1.0] - image: 0.5- -0.5 Fake +Alex width: 500 pixels ({0,..,499}) height: 250 pixels (repeat values from sin 250 times) pixel values: integers {0,...,255} Activat Go to Set Write a simple C# program that creates an image of the sin function. y = sin x - file format: pgm (P2 / grey) - file name: out.pgm - sin function: width/domain/x: [0..2pi] y: real numbers [-1.0..+1.0] - image: 0.5- -0.5 Fake +Alex width: 500 pixels ({0,..,499}) height: 250 pixels (repeat values from sin 250 times) pixel values: integers {0,...,255} Activat Go to Set
Expert Answer:
Answer rating: 100% (QA)
using System using SystemDrawing using SystemDrawingImaging class Program static void Mainstring arg... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
The blade of a screwdriver is a good electrical conductor. The screwdriver handle is an insulator: Why? In order for a material to be a good conductor, what must be true about the atoms or particles?
-
You are designing a new syntax for a programming language like Java, with the intention of making it more approachable to students by using English words instead of punctuation symbols. (a) How does...
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
How could not having a strategy hurt a brand on social media? What are some content ideas for those who are at the "Awareness" stage of the sales funnel? What does it mean to A/B test on a social...
-
Consider the following regression equation: a. Predict the value of Y when X1 = 8.5 and X2 = 5.2. b. Interpret the meaning of the regression coefficients b0, b1, and b2. In Y, = 4.62 + 0.5xt + 0.761
-
Find the maximum flow by inspection: In Prob. 13 Data from Prob. 13 10, 2 4, 1 8, 3 4, 2 14, 1 3) 12, 3 6, 2 5) t
-
What is the difference between the rights model and the justice model?
-
Spiro Company produces commercial gardening equipment. Since production is highly automated, the company allocates its overhead costs to product lines using activity-based costing. The costs and cost...
-
3 Required information [ The following information applies to the questions displayed below William is a single writer ( age 3 5 ) who recently decided that he needs to save more for retirement. His...
-
Table B. 4 presents data for 27 houses sold in Erie, Pennsylvania. a. Fit a simple linear regression model relating selling price of the house to the current taxes $\left(x_{1} ight)$. b. Test for...
-
For this Case Analysis, are the calculations and answer correct? Case Analysis 3 Weight 40% of total assignment You are the General Manager at the Bicker, Slaughter and Lynch Law Firm. There is an...
-
18. [0/2 Points] DETAILS PREVIOUS ANSWERS TANAPCALCBR10 3.6.060. MY NOTES ASK YOUR TEAC Blowing Soap Bubbles Carlos is blowing air into a spherical soap bubble at the rate of 9 cm/sec. How fast is...
-
How do catalyst poisoning and deactivation phenomena impact industrial catalytic processes, and what strategies are employed to mitigate their effects and prolong catalyst lifespan ?
-
You are the buyer for Missy Weekend Wear (casual) outlet store. For April in store, you have already purchased a coordinate group, modern contrast. The total cost for the order is $476,735. The total...
-
2 ) Find a ) the electric potential and b ) the electric field for particle of charge q 1 = 5 x 1 0 ^ - 6 C at a distance of 0 . 4 m from the particle?
-
This week's reading provides overview of criminal justice as a non-system, law enforcement, judiciary process and corrections. After reviewing the reading for week 7, discuss/debate with your...
-
Selected financial information for Wheeler Company for the current year ended December 31 is shown below. Plan assets at January 1 $1,150,000 Projected benefit obligation at January 1 1,000,000...
-
A handrail, which weighs 120 N and is 1.8 m long. was mounted to a wall adjacent to a small set of steps (Figure P4.26). The support at A has broken, and the rail has fallen about the loose bolt at 8...
-
An aprn-n-w-im11te map of 1he state of Texas is shown in the figure. For determining the area of the state, the map is divided into two parts (one above and one below the x axis). Determine the area...
-
Plot the function f(x) = x2 + 3x 5/x2 3x 10 for -4 < x < 9. Notice that the function has two vertical asymptotes. Plot the function by dividing the domain of x into three parts: one from -4 to...
-
The transmission of light through a transparent solid can be described by the equation: IT = I0(l - R)2e-BL where IT is the transmitted intensity, I0 is the intensity of the incident beam, B is the...
-
Dell Computer Corporation has significant investment activities. The following items are from Dells 2004 financial statements (in millions): Dell states that all debt and equities securities are...
-
Distribution of service department costs to production departments \\ Similar to Self-Study Problem 1} Cake Products, Inc., is divided into five departments, Mixing, Blending, Finishing, Factory...
-
DreamWorks Animation makes well-known animated films like Shrek 2. Two items on the companys 2004 balance sheet are as follows: 1. What is the difference between goodwill and minority interest and...
Study smarter with the SolutionInn App