Provide a line-by-line explanation for the PostScript code in Figure 4.14. Figure 4.14 % procedure to draw
Question:
Figure 4.14
Transcribed Image Text:
% procedure to draw pie slice %arguments graylevel, start angle, finish angle /wedge { 0 0 moveto setgray langlel exch def langle2 exch def 00 144 anglel angle2 arc 0 0 lineto closepath } def % add text to drawing 0 setgray 144 144 moveto (baseball cards) show -30 200 (cash) show -216 108 (stocks) show 32 scalefont (Personal Assets) show showpage %set up text font for printing /Helvetica-Bold findfont 16 scalefont setfont cash baseball cards .4 72 108 wedge fill % 108–72 = 36 = .1 circle .8 108 360 wedge fill % 70% % print wedge in three parts stocks %3D 32 12 translate 00 72 wedge fill gsave -88 translate 10 72 wedge fill O setgray stroke grestore Personal Assets
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 75% (4 reviews)
wedge def define a procedure named wedge to draw a wedge 0 0 moveto set cursor at xy 00 setgray read...View the full answer
Answered By
Diksha Bhasin
I have been taking online teaching classes from past 5 years, i.e.2013-2019 for students from classes 1st-10th. I also take online and home tuitions for classes 11th and 12th for subjects – Business Studies and Economics from past 3 years, i.e. from 2016-2019. I am eligible for tutoring Commerce graduates and post graduates. I am a responsible for staying in contact with my students and maintaining a high passing rate.
5.00+
1+ Reviews
10+ Question Solved
Related Book For
The Architecture of Computer Hardware, Systems Software and Networking An Information Technology App
ISBN: 978-1118322635
5th edition
Authors: Irv Englander
Question Posted:
Students also viewed these Computer science questions
-
In multiprocessor memory systems, lower levels of the memory hierarchy may not be able to be saturated by a single processor, but should be able to be saturated by multiple processors working...
-
What will the code in Figure 4-53 assign to the intCost variable when the intAge variable contains the number 65? a. 0 b. 5 c. 8 d. 10 If intAge
-
What will the code in Figure 4-53 assign to the intCost variable when the intAge variable contains the number 2? a. 0 b. 5 c. 8 d. 10 If intAge
-
Let y vary directly with x. Complete the following. Find y when x = 1, if y = when x = 3.
-
Carson Construction Consultants performs cement core tests in its Greenville laboratory. The following standard costs for the tests have been developed by the company's controller, Landon Carson,...
-
Reproduced below are the journal entries related to Illustration 1712 in this chapter that Global Communications used to record its pension expense and funding in 2021 and the new gain and loss that...
-
XYZ University is a medium-sized tertiary education provider in the state of Queensland, Australia. In undertaking its normal business of teaching, learning, and research, the university collects,...
-
Mike Samson is a college football coach making a base salary of $652,800 a year ($54,400 per month). Employers are required to withhold a 6.2% Social Security tax up to a maximum base amount and a...
-
What is the coupon rate for a bond with annual coupons that has a face value of $1,000, 7 years to maturity, a current price of $1,101, and a yield to maturity of 8.4%?
-
Thinking back to high school or first year chemistry, you may recall how to calculate mole fractions. For example, if you have 1 kmol of two liquid species (A and B), in total you have 2 kmol, and...
-
If you have studied COBOL, discuss the difference between numeric characters and numbers in the context of a COBOL program. Does COBOL distinguish clearly between the two? If so, in what ways?
-
Unicode is downward compatible with the Latin-1 version of 8-bit ASCII in the sense that a Unicode text file that is limited to the Latin-1 character set will be read correctly on a system that does...
-
Select the best answer for each of the following multiple-choice items dealing with not-for-profit organizations: 1. Which of the following criteria would suggest that a not-for-profit capitalize its...
-
What is cognition and memory?
-
Review your concepts and identify the ways that these can best support your goals. Distinguish which of your ideas will directly or indirectly influence the generation of data or activity you want to...
-
How does the Zone of Proximal Development relate to gamified systems?
-
Define primary and secondary tasks Revisit the user stories you began as a part of the exercises you conducted to determine and prioritize the tasks that you want your audience to enact.
-
How are gamified systems being utilized by the military to support the changing nature of war and conflict in the 21st century?
-
Patients given drug therapy either improve, remain the same, or degrade with probabilities 0.5, 0.4, 0.1, respectively. Suppose that 20 patients (assumed to be independent) are given the therapy. Let...
-
The executor of Gina Purcells estate has recorded the following information: Assets discovered at death (at fair value): Cash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....
-
A 68020 assembly language instruction that uses a bit field operation with a complex effective address is: Write a suitable sequence of ARM processor operations that would perform the same action....
-
The 68020's CHK2 and CMP2 instructions are rather nice because they let you compare a register against two bounds in order to perform array subscript checking at run time. Unfortunately, they are...
-
Suppose that multiple-precision shifts did not exist and that you could use only logical shifts. How would you implement a double-precision shift by using only single-precision shifts?
-
Discuss the key features of the following associated with the financial service industry: Financial products and services of the organisation Financial agency agreements Financial industry codes of...
-
You are building an apartment complex with 80 three-bedroom units near the downtown office district. The designers estimate that there will be on average 3.5 occupants in each apartment. A. Calculate...
-
The field team sends an update to the project manager letting him know that there were 12 employees at the project site, there were no accidents this week and no issues to report, and that the team...
Study smarter with the SolutionInn App