<< Prev Showing: 116-120 of 1044 Next >>
· 91-95 · 96-100 · 101-105 · 106-110 · 111-115 · 116-120 · 121-125 · 126-130 · 131-135 · 136-140 · 141-145 ·The graph of a person's emotional cycly y=f(x) is a sinc curve having an amplitude of 1 and a period of 28 days. On a given day, the person's emotional index is f(age), where age is his or her age in days. Similarly, the physical and intellectual cycles are sine curves having an amplitude of 1 and periods of 23 and 33 days, respectively. Write a function that receives a person's age and returns his or her physical, intellectual, and emotional indices for the current day. Write another function to compute a person's biorhythm index, which is the sum of the physical, intellectual, and emotion cycles. Write a driver progem to test your functions.
Subject:
Computer Science
Topic:
Other
Posting ID:
31636
OTA ID:
104632
Write a function calculateTaxes () that calculates and returns the amount of city incom tax and the amount of federal income tax to be withheld from an employee's pay for one pay period. Assume that city income tax withheld is computed by taking 1.15 percent of gross pay on the first $40,000 earned per year and that federal income tax withheld is computed by taking the gross pay less $50 for each dependent claimed and multiplying by 20 percent. Use this function in a program that for each of several employees reads the employee's number, number of dependents, hourly pay rate, city income tax withheld to date, federal income tax withheld to date, and hours worked for this period and then ca... click for more
Subject:
Computer Science
Topic:
Other
Posting ID:
31637
OTA ID:
104632
Write a program that reads an exchange rate for converting English currency to U.S. currency and then reads several values in English currency and converts each amount to the equivalent U.S. currency. Display all amounts with appropriate labels. Use sentinel-controlled or end-of-file-controlled loops for the input.
Subject:
Computer Science
Topic:
Other
Posting ID:
31638
OTA ID:
103644
The divide-and-average algorithm for approximating the square root of any positive number a is as follows: Take any initial approximation x that is positive, and then find a new approximation by calculating the average of x and a/x, that is, (x + a/x)/2. Repeat this procedure with x replaced by this new approximation, stopping when x and a/x differ in absolute value by some specified error allowance, such as 0.00001. Write a program that reads values for x, a, and the small error allowance and then uses this divide-and-average algorithm to find the approximate square root of x. Execute the program with a=3 and error allowance=0.00001, and use the following initial approximationa: 1, 10, 0... click for more
Subject:
Computer Science
Topic:
Other
Posting ID:
31639
OTA ID:
104632
Write a program that classifies n as being deficient, perfect, or abundant for n=20 to 30, then for n=490 to 500, and finally for n=8120 to 8130.
Subject:
Computer Science
Topic:
Other
Posting ID:
31640
OTA ID:
103997
<< Prev Showing: 116-120 of 1044 Next >>
· 1-5 · 6-10 · 11-15 · 16-20 · 21-25 · 26-30 · 31-35 · 36-40 · 41-45 · 46-50 · 51-55 · 56-60 · 61-65 · 66-70 · 71-75 · 76-80 · 81-85 · 86-90 · 91-95 · 96-100 · 101-105 · 106-110 · 111-115 · 116-120 · 121-125 · 126-130 · 131-135 · 136-140 · 141-145 · 146-150 · 151-155 · 156-160 · 161-165 · 166-170 · 171-175 · 176-180 · 181-185 · 186-190 · 191-195 · 196-200 · 201-205 · 206-210 · 211-215 · 216-220 · 221-225 · 226-230 · 231-235 · 236-240 · 241-245 · 246-250 · 251-255 · 256-260 · 261-265 · 266-270 · 271-275 · 276-280 · 281-285 · 286-290 · 291-295 · 296-300 · 301-305 · 306-310 · 311-315 · 316-320 · 321-325 · 326-330 · 331-335 · 336-340 · 341-345 · 346-350 · 351-355 · 356-360 · 361-365 · 366-370 · 371-375 · 376-380 · 381-385 · 386-390 · 391-395 · 396-400 · 401-405 · 406-410 · 411-415 · 416-420 · 421-425 · 426-430 · 431-435 · 436-440 · 441-445 · 446-450 · 451-455 · 456-460 · 461-465 · 466-470 · 471-475 · 476-480 · 481-485 · 486-490 · 491-495 · 496-500 · 501-505 · 506-510 · 511-515 · 516-520 · 521-525 · 526-530 · 531-535 · 536-540 · 541-545 · 546-550 · 551-555 · 556-560 · 561-565 · 566-570 · 571-575 · 576-580 · 581-585 · 586-590 · 591-595 · 596-600 · 601-605 · 606-610 · 611-615 · 616-620 · 621-625 · 626-630 · 631-635 · 636-640 · 641-645 · 646-650 · 651-655 · 656-660 · 661-665 · 666-670 · 671-675 · 676-680 · 681-685 · 686-690 · 691-695 · 696-700 · 701-705 · 706-710 · 711-715 · 716-720 · 721-725 · 726-730 · 731-735 · 736-740 · 741-745 · 746-750 · 751-755 · 756-760 · 761-765 · 766-770 · 771-775 · 776-780 · 781-785 · 786-790 · 791-795 · 796-800 · 801-805 · 806-810 · 811-815 · 816-820 · 821-825 · 826-830 · 831-835 · 836-840 · 841-845 · 846-850 · 851-855 · 856-860 · 861-865 · 866-870 · 871-875 · 876-880 · 881-885 · 886-890 · 891-895 · 896-900 · 901-905 · 906-910 · 911-915 · 916-920 · 921-925 · 926-930 · 931-935 · 936-940 · 941-945 · 946-950 · 951-955 · 956-960 · 961-965 · 966-970 · 971-975 · 976-980 · 981-985 · 986-990 · 991-995 · 996-1000 · 1001-1005 · 1006-1010 · 1011-1015 · 1016-1020 · 1021-1025 · 1026-1030 · 1031-1035 · 1036-1040 · 1041-1044 ·Page generated in 0.1196 seconds