what is the output of this? B 8 9 18 12 13 14 15 16 17 18
Fantastic news! We've Found the answer you've been seeking!
Question:
what is the output of this?
Transcribed Image Text:
B 8 9 18 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 28 A DDD DOE public class Main { public static void main(String[] args) { int [] arr = new int [64]; arr [63] = 10; arr [62] = 5; arr [61] = 3; arr [60] = 1; arr [59] = 3; arr [57] = 2; arr [56] = 1; arr [51] = 1; arr [50] = 1; I for (int i =63; 1>0; i--){ if(arr[i] != 0) { for(int i=0; j<arr[i];j++){ System.out.print("*"); } System.out.println(); B 8 9 18 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 28 A DDD DOE public class Main { public static void main(String[] args) { int [] arr = new int [64]; arr [63] = 10; arr [62] = 5; arr [61] = 3; arr [60] = 1; arr [59] = 3; arr [57] = 2; arr [56] = 1; arr [51] = 1; arr [50] = 1; I for (int i =63; 1>0; i--){ if(arr[i] != 0) { for(int i=0; j<arr[i];j++){ System.out.print("*"); } System.out.println();
Expert Answer:
Related Book For
Business Statistics For Contemporary Decision Making
ISBN: 978-1118749647
8th edition
Authors: Black Ken
Posted Date:
Students also viewed these programming questions
-
Week 4 Project Childhood Disorders Although childhood depression is prevalent, many parents are reluctant to seek psychological disorder treatment for their children. Answer the following questions:...
-
A road building company is purchasing an excavator for $500,000. The corporate tax rate is 45% and the expected after-tax rate of return is 12%. What would be the present value of the future tax...
-
A researcher wanted to find out if there was difference between older movie goers and younger movie goers with respect to their estimates of a successful actors income. The researcher first...
-
Discuss the two-pipe system, how it works, and its advantages and disadvantages.
-
Two people are studying Husky Company's manufacturing process. One person is Husky Company's factory supervisor, and the other person is an outside consultant who is an expert in the industry. Which...
-
Sodium hydrogen (S)-glutamate [(S)-monosodium glutamate], [a] D 25oC = +24, is the active flavor enhancer known as MSG. The condensed formula of MSG is shown in the margin, (a) Draw the structure of...
-
The Judicial Council of California has developed a number of forms that can be used to ensure that a party has satisfied the necessary pleading requirements. Familiarize yourself with the...
-
Company P purchased an 80% interest (8,000 shares) in Company S for $800,000 on January 1, 2011. Company Ss equity on that date was $900,000. Any excess of cost over book value was attributed to...
-
Explain the operational features of a speed control system for a shunt wound DC motor. Your report should include reference to the relationship between flux, currents and speed.
-
B52 Skate Training prepares adjustments annually and showed the following on its June 30, 2020, year-end: Additional information available at year-end: a. The Prepaid Arena Rental of $182,000 was...
-
George Bennet wants to give his son $20000 upon completion of his college education. if he invests $5500 now in an accounting earning 9% annual interest, approximately how many years will it take for...
-
Two adult entertainment establishments feature live nude dancing ("strip clubs") in City. Because the clubs are competing for customers, they buy advertisements on large electronic billboards in the...
-
2. An electric grill marked 220 V and 1250 W consists of a 218 cm long heating element with a radius of 3.0 mm. a) Determine the resistivity of the heating element. b) How hot does the heating loop...
-
[3] 4. In 1995, Mary bought an antique chair for $55. It is estimated that the chair will increase in value by 1.8%/year. a) Find the current value of the chair. 121 [2] b) In what year will the...
-
A pair of the tugboats are attempting to tow the disabled tugboats back to shore. one Tugboat pulls in a direction 2 8 . 1 degree west of north with twice the force of the second term board the...
-
Landmark decisions establish a significant new legal principle or concept or otherwise that substantially changes the interpretation of existing law. Such a decision may settle the law in more than...
-
Tina and Josephine company limited is a successful method company. The following costs were incurred in respect of the company's oil and Gas properties located near Tordomga- Konshisha as at 31...
-
Express these numbers in standard notation. a. 2.87 10-8 b. 1.78 1011 c. 1.381 10-23
-
One recent study showed that the average annual amount spent by an East Coast household on frankfurters was $23.84 compared with an average of $19.83 for West Coast households. Suppose a random...
-
Use the seasonal indexes computed to de-seasonalize the data in Problem15.32. Chemicals and Allied Products Time Period($ billion) Chemicals and Allied Products ($ billion) Time Period January (year...
-
A randomized block design has a treatment variable with six levels and a blocking variable with 10 blocks. Using this information and α = .05, complete the following table and reach a...
-
What is thermodynamics?
-
Explain the scope and limitations of thermodynamics.
-
An astronaut weighs \(800 \mathrm{~N}\) on the earth's surface where the acceleration of gravity is \(g=9.83 \mathrm{~m} / \mathrm{s}^{2}\). The mass and the radius of the moon are \(7.4 \times...
Study smarter with the SolutionInn App