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
-
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...
-
Cling-on Ltd. sells rock-climbing products and also operates an indoor climbing facility for climbing enthusiasts. On September 1, 2012, the company had a balance of $12,000 in its Bank Loan Payable...
-
In Exercises 2730, set up a double integral that represents the area of the surface given by z = f(x, y) that lies above the region R. (x, y) = cos(x + y), R = {(x, y): x + y EIN
-
On March 13, 1963, Ernesto Miranda was arrested for kidnapping and rape and taken to a Phoenix police station. After being identified by the complaining witness, he was questioned by two police...
-
For this exercise, your client, Bright IDEAs Inc., has provided you with data for two related files, a listing of sales invoices, and a listing of customers with credit limits. To test whether credit...
-
Making Decisions with Confidence Intervals Assume you work for Kimberly Clark Corporation, the makers of Kleenex. The job you are presently working on requires you to decide how many Kleenexes are to...
-
Obtain the first derivative of the function f (x) = sinx/x using Richardson's extrapolation with h = 0.2 at point x= 0.6, in addition to obtaining the first derivative with the 5-point formula, as...
-
Abby Lewis produced 165 units this pay period and earns piece rate on the following differential pay schedule. Units Produced Amount per Unit 1--100 $3.25 101--150 $3.50 over 150 $3.75 What is her...
-
The balance in all assets accounts combined is $ 1 0 0 , 0 0 0 on December 1 During December, the following transactions took place: Purchase of $ 1 0 , 0 0 0 of inventory for cash. Purchase of $ 1 5...
-
RPL Chapter 2: The Nature of Property - Topic: The Concept of Property - 15 points This assignment contributes to the following Basic and Advanced Learning Objectives for this Module Define property...
-
On January 1, Year 1, Mr. Karl purchased 50% of Olive, Inc., an S corporation, for $75,000. At the end of Year 1, Olive, Inc., incurred an ordinary loss of $160,000. How much of the loss can Mr. Karl...
-
An insurance company bought new computers for $ 5 7 , 7 0 0 . The company estimates that the computer's estimated useful life will be 6 years. After 6 years the computers will have a salvage (...
-
Find the maximum rate of change of the following function at the given point. f(x, y, z) = x2 + 5xz + 7yz2; (1, 2,-1) Enter your answer symbolically, as in these examples
-
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...
-
What is the goal of Industry 4.0?
-
In which way does this book cover CPS and IoT design?
-
In which application areas do you see opportunities for CPS and IoT systems? Where do you expect major changes caused by information technology?
Study smarter with the SolutionInn App