The following program has 9 mistakes. What are they? public class Oops3 { public static void main
Question:
The following program has 9 mistakes. What are they?
Transcribed Image Text:
public class Oops3 { public static void main () { double bubble = 867.5309; %3D double x = 10.01; printer (double x, double y); 6. printer (x); printer ("barack", "obama"); 8. System.out.println ("z = " + z); 9. } 10 11 public static void printer (x, y double) { 12 int z 5; 13 System.out.println ("x = " + double x + " and y = " + y); 14 System.out.println ("The value from main is: " + bubble); 15 } 16
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 69% (13 reviews)
Mistakes in Oops3 program 1 line 5 cannot use variable y without d...View the full answer
Answered By
HILLARY KIYAYI
I am a multi-skilled, reliable & talented Market analysis & Research Writer with a proven ability to produce Scholarly Papers, Reports, Research and Article Writing and much more. My ultimate quality is my English writing/verbal skill. That skill has proven to be the most valuable asset for project writing, Academic & Research writing, Proofreading, HR Management Writing, business, sales, and a variety of other opportunities.
4.80+
24+ Reviews
60+ Question Solved
Related Book For
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp
Question Posted:
Students also viewed these Computer science questions
-
The following program has been prepared for the audit of accrued real estate taxes of a client that pays taxes on 25 different pieces of property, some of which have been acquired in the current...
-
What kind of mistakes might ES make and why? Why is it easier to correct mistakes in ES than in conventional computer programs?
-
What mistakes are first-time exporters most likely to make? Outline the steps a small company should take to establish a successful export program.
-
At the beginning of the year, Anna began a calendar-year business and placed in service the following assets during the year: Asset Date Acquired Cost Basis Computers 1/30 $28,000 Office desks 2/15...
-
Refrigerant-134a at 800 kPa and 25C is throttled to a temperature of 220C. Determine the pressure and the internal energy of the refrigerant at the final state.
-
BSBFIM501 Q4, This is the question nothing further please help! Question 4 - Legislation The ATO has responsibility for administering several legislative acts. Name 4 Acts administered by the ATO...
-
Your sock drawer has 18 folded pairs of socks, with 8 pairs of white, 6 pairs of black, and 4 pairs of blue. What is the probability, without looking in the drawer, that you will first select and...
-
On February 1, 2011, Charo Mendez purchased 6% bonds issued by CR Utilities at a cost of $30,000, which is their par value. The bonds pay interest semiannually on July 31 and January 31. For 2011,...
-
Described below are six independent and unrelated situations involving accounting changes. Each change occurs during 2 0 2 4 before any adjusting entries or closing entries were prepared. Assume the...
-
Alshwer Company Worksheet For Year Ended December 31, 2017 Adjusted Trial Balance Account Number Account Title Dr. Cr. 101 Cash 5400 112 Accounts Receivable 10700 126 Supplies 1400 130 Prepaid...
-
The following code attempts to draw a black-filled outer rectangle with a white-filled inner circle inside it: DrawingPanel panel = new DrawingPanel(200, 100); Graphics g = panel.getGraphics();...
-
Write a program that shows the total number of presents that the person in the song The Twelve Days of Christmas received on each day, as indicated in Table 3.5. Table 3.5 Twelve Days of Christmas
-
Fidelity Magellan is a large cap growth mutual fund and Fidelity Small Cap Stock is a small cap growth mutual fund (Morningstar Funds 500, 2006). The standard deviation for both funds was computed...
-
Problem 2.01 An ant is crawling along a straight wire, which we shall call the x axis, from A to B to C to D (which overlaps A), as shown in the figure below. O is the origin. Suppose you take...
-
In a separate C++ program, do the following: a) Create an unordered linked list by declaring a linked list of the unordered LinkedList type. You may assume that this list is to be comprised of...
-
TranscribedText: El. You are sitting at a table that has a solid round top {5.1"} kg] and a single solid cvlindrical leg {4. kg) [see figure, note that the tilt angle is exaggerated to he...
-
The municipal mill rate in the neighbourhood is 22.375 mills. There is an educational mill rate of 11.35 mills. The following list is the municipalities planned local improvement costs for the next...
-
Maggie Company had the following functional income statement for the month of May, 2020: MAGGIE COMPANY Functional Income Statement For the Month Ending May 31, 2020 Sales (30,000 units) $300,000...
-
In Problem factor completely. 2x 2 8x 42
-
Before the latest financial crisis and recession, when was the largest recession of the past 50 years, and what was the cumulative loss in output over the course of the slowdown?
-
Stations in a pure Aloha network send frames of size 1000 bits at the rate of 1 Mbps. What is the vulnerable time for this network?
-
In the previous problem, we showed that the throughput is S = Ge 2G for a pure Aloha network and S = Ge G for a slotted Aloha network. In this problem, we want to find the value of G in each network...
-
Stations in an slotted Aloha network send frames of size 1000 bits at the rate of 1 Mbps. What is the vulnerable time for this network?
-
assume that we have only two following risk assets (stock 1&2) in the market. stock 1 - E(r) = 20%, std 20% stock 2- E(r) = 10%, std 20% the correlation coefficient between stock 1 and 2 is 0. and...
-
Flexible manufacturing places new demands on the management accounting information system and how performance is evaluated. In response, a company should a. institute practices that reduce switching...
-
Revenue and expense items and components of other comprehensive income can be reported in the statement of shareholders' equity using: U.S. GAAP. IFRS. Both U.S. GAAP and IFRS. Neither U.S. GAAP nor...
Study smarter with the SolutionInn App