Reference no: EM131270538
Assignment
1. Modify the menu function to accept its parameters from a file.
2. Rewrite thepr1function asprx that will behave in the manner ofpr4from Chapter 8 but will take an option for any number of columns.
3. Add age top ts section to the fifteen game that allows the user to select between three different board formats. Write a third format.
chp 12
1. Add code to the upload script that checks that all variables have been set to legitimate values (for example, that port is an integer).
2. Write a usage or help function, and add it to the upload script.
3. Add an option to the upload script to save the configuration if it has been saved.
4. Write a script that creates a configuration file in the same form as words. cfg, prompting the user for the information to put in it.
chp 13
1. Modify the is or tand a search functions to use sort and grep, respectively, if the array exceeds a certain size.
2. Write a function that transposes rows and columns in a grid (either a single-string grid or an array). For example, transform this:
123
456
789
into this:
147
256
369
3. Convert some of the grid functions, either string or array versions, to work with grids that are not square, for example, 6×3.
4. Convert the code that parses fixed-width records into a function that accepts the line of data as the first argument, followed by thevarname=width list.
chp 14
1. Write a function, hbar, that accepts two integer arguments, a width and a color, and prints a bar of that color and width. Write a second function, hbar_ at, that accepts four arguments, row, column, width and color; moves the cursor to the row and column; and passes the remaining arguments tohbar.
2. White a function, clear_ area, that accepts two integer arguments, rows and columns, and clears a rectangular area of that many rows and columns.
chp 15.
1. Using the key-funcslibrary, write a menu script that uses the function keys for selection.
2. Rewrite the key-funcslibrary to include mouse handling, and incorporate the function into the mouse-demo script.
3. The password script does minimal checking for invalid entries. What checking would you add?
How would you code it?
How you plan to develop your communication skill set
: Write a 200- to 350-word summary of your communication quiz score, describing your strengths and weaknesses and how you plan to develop your communication skill set. Additionally, what aspects of communication that were not covered by the quiz do ..
|
Cloud technology and virtualization
: Cloud Technology and Virtualization- With the merger of your company with a multinational company, you have come to realize that progressive solutions are necessary to defray some of the associated information technology costs.
|
Determine the pumping power required
: Assuming no change in water pressure and the water temperature constant at 300 K, determine the pumping power required if the water experiences a change in elevation of 15 m.
|
Do you think that kids from urban working-class environment
: While the Stanford Prison experiment is considered unethical, what usefulness has come from the experimental outcomes? Was it right to trade the suffering experienced by participants for the knowledge gained by the research? Explain how the experi..
|
Modify the menu function to accept its parameters from file
: Modify the menu function to accept its parameters from a file. Rewrite thepr1function asprx that will behave in the manner ofpr4from Chapter 8 but will take an option for any number of columns.
|
Determine the soundness and validity of the article
: If a person is required to work for the benefit of others against his or her will, then Nozick suggests the labor is forced. By imposing taxation on people, the U.S. government is forcing them to work for the benefit of others against their wills...
|
Find the power required to drive the compressor
: Potential energy change and heat exchange with the environment are negligible. Determine the power required to drive the compressor
|
Determine the mass flow of the cooling water
: Any heat loss from the water jacket may be ignored and all kinetic and potential energy changes are negligible. Determine the mass flow of the cooling water in the water jacket.
|
Explore the vital statistics in you respective state health
: Visit the CDC National Center for Health Statistics to explore national vital statistic results with a focus on birth rates, death rates and cancer rates. Next, explore the vital statistics in you respective state health departments.
|