Write output for the given code: int i,j=0, x=2,y=2,z=4,w=2; for(i=1;i...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write output for the given code: int i,j=0, x=2,y=2,z=4,w=2; for(i=1;i<= 5; i+ =4) { x= 2*i+3*j+y/z*2; for(j=1;j<= 5; j+ =5) { y=3*x+2*i+3*j; } y+ +; } z= 4*x+i+j; cout<<z<<" "; w=5*j+x+y+z+w*i; cout<<W; Write output for the given code: int i,j=0, x=2,y=2,z=4,w=2; for(i=1;i<= 5; i+ =4) { x= 2*i+3*j+y/z*2; for(j=1;j<= 5; j+ =5) { y=3*x+2*i+3*j; } y+ +; } z= 4*x+i+j; cout<<z<<" "; w=5*j+x+y+z+w*i; cout<<W;
Expert Answer:
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date:
Students also viewed these computer network questions
-
Draw and explain Arithmetic Pipeline.
-
In Problems 1954, solve each inequality algebraically. x + 2 x - 4 1
-
In Exercises 5972, simplify each complex rational expression. X 4 x - 4 - 1
-
Evaluate and simplify the following derivatives. d (4u + u du 8u+ 1/
-
Leonardo da Vinci (1452-1519) is credited with being the first to perform quantitative experiments on friction, though his results weren't known until centuries later, due in part to the secret code...
-
A hydrogen atom emits a photon that has momentum with a magnitude of 5.452 x 10-27 kg ? m/s. This photon is emitted because the electron in the atom falls from a higher energy level into the n = 1...
-
Bonsai Boards income statement data for the year ended December 31,2010, follow. Assume that the ending inventory was accidentally overstated by $3,300. What are the correct amounts for cost of goods...
-
Steve and Marie Venturini were involved in the operation of Steves Sizzling Steakhouse in Carlstadt, New Jersey, from the day their parents opened it in the 1930s. By the 1980s, Steve, Marie, and her...
-
CA3-AUDITING a) Describe the factors you as auditor should considered and the procedures should bee performed prior to acceptance as auditor (10 marks) b) A good system of internal control consists...
-
Tuckered Outfitters plans to market a custom brand of packaged trail mix. The ingredients for the trail mix will include Raisins, Grain, Chocolate Chips, Peanuts, and Almonds costing, respectively,...
-
For study guide QUESTION 2 In dealing with the customers as possible. QUESTION 3 Opportunity QUESTION 4 QUESTION 5 Three online areas of ethical concern are cost is the value of the benefit given up...
-
A helical compression spring has ( 8 total coils ) is inserted in a hole of diameter ( 7 6 . 5 mm ) . The spring is made of ( 1 2 . 5 mm ) diameter hard drawn steel wire. The spring supports an axial...
-
Make a Steel Schedule Sheet to estimate quantity of Steel Reinforcement for given roof below. Also compute weight of steel per meter cube in the slab. Notes: - All the bar spaces and dimensions are...
-
A spring mass damper system is modeled by the following equation: Mx + Cx+ Kx = 0 Where: Determine: M - [66]. K = [765.5 0 7952 = 0 L765.5 1868.7] 1868.7].C = [795.2 1. M 2. M 2 3. 4. C 5. Natural...
-
What is your best trade so far? Why? What is your worse trade so far? Why? What investment strategies have you used? Are the strategies you use useful or not? What do you plan to do next for the game?
-
What is the purpose of payroll-related accrual and reversal entries on financial statements? (You may select more than one answer. Single click the box with the question mark to produce a check mark...
-
On November 1, 20x1, Acme Corp. purchased equipment for $53,638 with an estimated salvage value of $8,616 at the end of its estimated life of 7 years. The book value of this equipment as of the end...
-
A simple random sample of 220 university students were asked what pasta they usually order and with which sauce. The preferences of these respondents are summarised below: Sauce Bolognese Pasta...
-
Given that the int variable temp contains a temperature that is not negative, write a Java statement that uses the conditional operator to set the String variablelabel to either "degree" or...
-
What attributes and behaviors would an object representing a credit card account have?
-
Define a variation on StringLinkedListSelfContained from Listing 12.7 that stores objects of type Employee, rather than objects of type String. Write a program that uses this linked-list class to...
-
The following data come from the inventory records of (. Dodge Company: Based on these facts, the gross profit for Dodge Company is a. \(\$ 150,000\). b. \(\$ 220,000\) c. \(\$ 190,000\). d. some...
-
A sample of students is enrolled in a speed-reading class. Each takes a reading test before and again after the class. The two samples of scores are compared to determine how large an improvement in...
-
A sample of students is enrolled in an online statistics class, and another sample is enrolled in a traditional statistics class. At the end of the semester, the students are given a test. The scores...
Study smarter with the SolutionInn App