Computer Science

1. Page 321/9.17

Implement the following functions:

(a) Function Celsius returns the Celsius equivalent of a Fahrenheit temperature, using the calcuation:

C = 5.0 / 9.0 * (F-32);

(b) Function fahrenheit returns the Fahrenheit equvalent of a Celsius temperature, using the calculation

F = 9.0/5.0 * C +32;

(c) Use these functions to write a script that enables the user to enter eigher a Fahrenheit or a Celsius temperature and displays the Celsius or Fahrenheit equivalent. Your HTML5 document should contain two buttons — one to initiate the conversion from Fahrenheit to Celsius and one to initiate the conversion from Celsius to Fahrenheit.


2. Page 323/9.29

Write a recursive function power (base, exponent) that, when invoked, returns base exponent. For example, power (3,4)=3 * 3 * 3 *3. Assume that exponent is an integer greater than or equal to 1. The recursion step would use the relationship

baseexponent = base * base exponent -1

and the terminating condition occurs when exponent is equal to 1, because

base1 = base

Incorporate this function into a script that enables the user to enter the base and exponent.

3. Page 420/12.6 (For example, there are several options listed in the webpage:

Gray background

White background

Sans-serif text

Serif text

If the user on clicks any of the options, the webpage will turn into that format. For example, if the user clicks “Gray background”, the background color of the webpage will be Gray. If the user clicks Serif-text, the text in the web page will be in Serif text.

4. Page 570/15.10.

You must change chapter 2 to 44 pages and chapter 3 to 35 pages, Appendix A to 26 pages and Appendix B to 7 pages, so you can test and see the difference.

Transfer assignment part1 webpage, sorting.XML and sorting_byPage.XSL pages ( all the files) to the internet and give me the working internet addresses.




Order now and get 10% discount on all orders above $50 now!!The professional are ready and willing handle your assignment.