Write a program called Ch4_QuizXYZ.java (replace XYZ by your first and last names) that displays all...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program called Ch4_QuizXYZ.java (replace XYZ by your first and last names) that displays all multiples of 6 between 200 and 1200 (including 200 and 1200) in descending order. If the number is also a multiple of 9, display an asterisk next to it. You are required to use a loop and printf. Sample run is shown below 1200 1194 1188* 1182 1176 1170* 1164 1158 1152* 1146 1140 1134* 1128 1122 1116* 1110 1104 1098* 1092 1086 1080* 1074 1068 1062* 1056 1050 1044* 1038 1032 1026* 1020 1014 1008* 1002 996 990* 984 978 972* 966 960 954* 948 942 936* 930 924 918* 912 906 900* 894 888 882* 876 870 864* 858 852 846* 840 834 828* 822 816 810* 804 798 792* 786 780 774* 768 762 756* 750 744 738* 732 726 720* 714 708 702* 696 690 684* 678 672 666* 660 654 648* 642 636 630* 624 618 612* 606 600 594* 588 582 576* 570 564 558* 552 546 540* 534 528 522* 516 510 504* 498 492 486* 480 474 468* 462 456 450* 444 438 432* 426 420 414* 408 402 396* 390 384 378* 372 366 360* 354 348 342* 336 330 324* 318 312 306* 300 294 288* 282 276 270* 264 258 252* 246 240 234* 228 222 216* 210 204 Write a program called Ch4_QuizXYZ.java (replace XYZ by your first and last names) that displays all multiples of 6 between 200 and 1200 (including 200 and 1200) in descending order. If the number is also a multiple of 9, display an asterisk next to it. You are required to use a loop and printf. Sample run is shown below 1200 1194 1188* 1182 1176 1170* 1164 1158 1152* 1146 1140 1134* 1128 1122 1116* 1110 1104 1098* 1092 1086 1080* 1074 1068 1062* 1056 1050 1044* 1038 1032 1026* 1020 1014 1008* 1002 996 990* 984 978 972* 966 960 954* 948 942 936* 930 924 918* 912 906 900* 894 888 882* 876 870 864* 858 852 846* 840 834 828* 822 816 810* 804 798 792* 786 780 774* 768 762 756* 750 744 738* 732 726 720* 714 708 702* 696 690 684* 678 672 666* 660 654 648* 642 636 630* 624 618 612* 606 600 594* 588 582 576* 570 564 558* 552 546 540* 534 528 522* 516 510 504* 498 492 486* 480 474 468* 462 456 450* 444 438 432* 426 420 414* 408 402 396* 390 384 378* 372 366 360* 354 348 342* 336 330 324* 318 312 306* 300 294 288* 282 276 270* 264 258 252* 246 240 234* 228 222 216* 210 204
Expert Answer:
Answer rating: 100% (QA)
Here is a Java program named Ch4QuizXYZjava that displays all multiples ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Where is the Amazon retrofit Business and where should it be?
-
Use the attached "words.txt" file to store the words along with their ranks in an AVL tree. Then provide the user the option to search for any word. If the word exists the program displays the rank...
-
Imagine that Costco has $500,000 of sales (selling 31,250 units) in August and has a contribution margin ratio of 40% and fixed costs of $20,000. If sales in units increase by 15% in September, what...
-
Models that pertain to the distribution of a resource within supply chains are often referred to as networks. Distribution among these networks is key to the success of a business while also keeping...
-
Why are vineyards planted along lakeshores or riverbanks in cold climates?
-
( a * | b * ) * ( ( \ epsi | a ) | b * ) * ( a | b ) * abb ( a | b ) *
-
Although not absolutely necessary, a spreadsheet using nothing fancier than Goal Seek or Solver will reduce the calculation burden of this design problem significantly. Your boss requests a...
-
1. Based on the information given, summarize the method(s) BMW intends to use for determining incentive pay. Are these rewards for individual, group, and/or company performance? 2. Explain BMWs claim...
-
The Sarasota Company issued $300,000 of 10% bonds on January 1, 2025. The bonds are due January 1, 2030, with interest payable each July 1 and January 1. The bonds were issued at 99. Prepare the...
-
A cascade system is composed of two ideal refrigeration cycles, as shown in Fig. 9.28. The high temperature cycle uses R-410a. Saturated liquid leaves the condenser at 40C, and saturated vapor leaves...
-
1. Let A(t) be an anti-symmetric matrix for all t. Let M(t) be a matrix-valued function satisfying M' (t) = M(t)A(t). Show that M (t) M (t)T is a constant matrix-valued function. 2. Recall that given...
-
What are cold surveys? How are they different from mail panels?
-
Should jurors be provided a copy of the jury instructions? What do you see as the advantages of giving these to them? Disadvantages?
-
What are the advantages of internet surveys over mail surveys?
-
Should there be greater attention paid to the racial and gender makeup of juries to ensure that it actually reflects every viewpoint of the community?
-
How has the equal protection clause of the 14th Amendment been applied by the Supreme Court?
-
A block that weighs 102 N is sliding across a surface in a situation where the net outside force is equal in magnitude to one-half the kinetic friction force. The acceleration of the block is 6.75...
-
Chapter 9 Stock Valuation at Ragan Engines Input area: Shares owned by each sibling Ragan EPS Dividend to each sibling Ragan ROE Ragan required return Blue Ribband Motors Corp. Bon Voyage Marine,...
-
Emily Jackson (Social Security number 765-12-4326) and James Stewart (Social Security number 466-74-9932) are partners in a partnership that owns and operates a barber shop. The partnership's first...
-
Frank, age 35, and Joyce, age 34, are married and file a joint income tax return for 2012. Their salaries for the year total $83,000 and they have taxable interest income of $4,000. They have no...
-
Olive Corporation was formed and began operations on January 1, 2012. The corporation's income statement for the year and the balance sheet at year-end are presented below. The corporation made...
-
Graham Corporation used the following data to evaluate its current Kin operating system. The company sells items for \($10\) each and used a budgeted selling price of \($10\) per unit. a. Prepare the...
-
Selected data for Miller Company, which operates three departments, follow: During the year, the companys fixed expenses included the following: Assume that the property tax rate is the same for both...
-
Johnson Company has two sources of funds: long term debt and equity capital. Johnson Company has profit centers in the following locations with the following net incomes and total assets: a....
Study smarter with the SolutionInn App