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: 66% (12 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.
-
What are the advantages and disadvantages of the corporate form of business organization?
-
For each of the following situations, determine whether it is better to use a regular Cartesian, irregular structured, or unstructured grid. Provide arguments supporting your answer. If a grid with...
-
Lee Werner is general manager of Stoneybrook Salons. During 2016, Werner worked for the company all year at a $ 14,000 monthly salary. He also earned a year-end bonus equal to 15% of his annual...
-
Current Attempt in Progress Metlock sells a snowboard, EZulide, that is popular with snowboard enthusiasts. Below is information relating to Metiock's purch of Eide snowboards during September During...
-
F&H Corp. continues to invest heavily in a declining industry. Here is an excerpt from a recent speech by F&Hs CFO: We at F&H have of course noted the complaints of a few spineless investors and...
-
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
-
Martel, a competent male secretary to the president of ICU, was fired because the new president of the company believed it is more appropriate to have a female secretary. (a) Has a violation of the...
-
The company has been preparing a static budget for the last few months.Your manager doesn't understand why the static budget isso dramatically different than actual results. After you examinethe...
-
A router has interfaces with addresses: 196.80.170.65/27 196.80.170.129/27 196.80.170.193/27 What legacy OSPFv2 network command will advertise only the 196.80.170.128/27 network. Code the complete...
-
The demand for your college newspaper is 1800 copies per week if the paper is given a way free of charge, and the demand drops to 900 if the charge is $0.10 per copy. However, the university is...
-
Bob pushes on a frictionless cart of mass 5.4 kg and the cart has an acceleration of 14.6 m/s 2 . If his friend Bill pushes twice as hard on an identical cart, what will be the acceleration (in m/s 2...
-
The income statement of Riverbed Co. for the month of July shows net income of $3,490 based on Service Revenue $7,630, Salaries and Wages Expense $2,370, Supplies Expense $980, and Utilities Expense...
-
The demand a monopoly faces is ( = 100 - Q + A0.5, Where Q is its quantity, p is its price, and A is its level of advertising. Its marginal cost of production is 10, and its cost of a unit of...
-
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?
-
Macmillan Learning Gains and Losses from Trade in the Specific-Factors Model - End of Chapter Problem Resources Home produces two goods, computers and wheat, for which capital is specific to...
-
Work with a small group to conduct a close reading of the rest of Chapter 10. Focus first on how characters are developed, and then think about what events are advancing the plot. Use sticky notes to...
-
E [ rm ] - rf= .08, and rf= .03, calculate expected return for beta=1.2 1, 12.6% 2, 11.8% 3, 13.2% 4, 12.8%
Study smarter with the SolutionInn App