<< Prev Showing: 136-140 of 1044 Next >>
· 111-115 · 116-120 · 121-125 · 126-130 · 131-135 · 136-140 · 141-145 · 146-150 · 151-155 · 156-160 · 161-165 ·Java code to check multiples (and factors) of numbers
Problem Given: Write an application that reads two integers and determines whether the first is a multiple of the second and print the result. (Hint: Use the remainder operator)
Subject:
Computer Science
Topic:
Other
Posting ID:
31860
OTA ID:
103644
Problem: Write an applet that reads in the size of the side of a square and displays a hollow square of that size out of asterisks, by using the drawString method inside your applet's paint method. Use an input dialog to read the size from the user. Your program should work for squares of all side lengths between 1 and 20.
Subject:
Computer Science
Topic:
Other
Posting ID:
31861
OTA ID:
104282
Do a walk-through to find the value assigned to e. Assume that all variables are properly declared. a = 3; b = 4; c = (a % b) * 6; d = c / b; e = (a + b + c + d) / 4;
Subject:
Computer Science
Topic:
Other
Posting ID:
31893
OTA ID:
103997
Examples of correct Variable declaration in C++
Which of the following variable declarations are correct? If a variable declaration is not correct give the reason(s) and provide the correct variable declaration. n = 12; //Line 1 char letter = ; //Line 2 int one = 5, two; //Line 3 double x, y, z; //Line 4 Line 3 and 4 are correct but what is wrong with Line 1 and Line 2?
Subject:
Computer Science
Topic:
Other
Posting ID:
31894
OTA ID:
103644
Examples of use of cout in C++
15. What is the output of the following statements? Suppose a and b are int variables, c is a double variable, and a = 13, b = 5, and c = 17.5.
a. cout <(b) + 2 * c << endl; = 37
d. cout << 14 % 3 + 6.3 + b / a << endl; = 8.6846153
e. cout << static_cast
Subject:
Computer Science
Topic:
Other
Posting ID:
31899
OTA ID:
103644
<< Prev Showing: 136-140 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.1028 seconds