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: 63% (11 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.
-
A system of inequalities and a graph are shown above. Which section or sections of the graph could represent all of the solutions to the system? A) Section A B) Section B C) Section C D) Section D...
-
How do you define structural modeling in an object-oriented approach?
-
During the most recent year, Butler paid $95,000 in interest to its lenders and $80,000 in dividends to its stockholders. Required 1. In which category of the statement of cash flows (operating,...
-
The following information pertains to the City of Williamson for 2 0 2 4 , its first year of legal existence. For convenience, assume that all transactions are for the general fund, which has three...
-
There are 2 shinobis with chakra levels 5 and 10 respectively and the desired sum of chakra levels is utmost 15 Starting with ke0, suy of chakra levels after attack max(5-0,0) + max(10- 0,0) 5+10 15....
-
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
-
Dover Studios shot hundreds of hours of footage that cost $20,000,000. From this footage, the company produced two movies: Greedy CEOs and Greedy CEOs: The Sequel. The sequel used better sound...
-
What are internal and external methods that banks can use to mitigate operational risks. How these methods are helpful discuss briefly.
-
Sophia Martin wants to travel after she retires as well as pay off the balance of the loan she has on the home she owns. Which step in the financial planning process does this situation demonstrate?
-
Your uncle gave you $50,000 to invest solely in mutual funds. Based on your point in the life cycle and your investment philosophy, identify your investment goals and explain how you would spread...
-
What is the cash flow stream for a present value 1,000,000 at 5% paid in equal installments in the future? How the cash flow stream can be determined.
-
What are the financial issues confronting Mexico? Explain briefly What are the causes of these issues? What are their domestic effects? What are their global effects? What is being done to address...
-
Dahlia Industries had the following operating results for 2009: sales = $22,800; cost of goods sold = $16,050; depreciation expense = $4,050; interest expense = $1,830; dividends paid = $1,300. At...
-
A regular deposit of $100 is made at the beginning of each year for 20 years. Simple interest is calculated at i% per year for the 20 years. At the end of the 20-year period, the total interest in...
-
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?
-
A company's 2022 net sales are $80,187. The previous fiscal year, net sales were $76,118. What would the sales be for a 24 month pro forma projection? Show your work and explain how you arrived at...
-
ABC's stock price is $90. The stock price will either increase 10% or decrease 8% in the first month. If the price increases in the first month, it will go up by $12 or down by $15 in the second...
-
MyCarCorp produces car parts and is considering opening a new factory in Russia (assume now is beginning of 2002 and the factory would open in 2003). Factory will re- quire an initial investment of...
Study smarter with the SolutionInn App