Which line(1 tru10) has the syntax error? class employee{ public: string name; float wage; void print...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Which line(1 tru10) has the syntax error? class employee{ public: string name; float wage; void print ( ) const; employee() { void private: }; name = "unknown"; wage = 0; int empID; // Linel // Line2 // Line3 // Line4 // Line5 // Line6 // Line7 // Line8 // Line9 // Line10 // Linell Which line(1 tru10) has the syntax error? class employee{ public: string name; float wage; void print ( ) const; employee() { void private: }; name = "unknown"; wage = 0; int empID; // Linel // Line2 // Line3 // Line4 // Line5 // Line6 // Line7 // Line8 // Line9 // Line10 // Linell
Expert Answer:
Answer rating: 100% (QA)
The syntax error is on Line6 The line void employee is defining a function named employee in... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
A sound level meter was used to measure noise at a work station. The meter read 75 dBA when using the A scale setting. The meter read 105 dBC when using the C weighting scale. What conclusion can be...
-
This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of an array of objects as a class data...
-
Can you help me change this in c++ update your payroll program to use a C++ class. Each employee class object should hold the master file information for one employee. You can assume that the company...
-
(a) By what percentage does your rest mass increase when you climb 30 m to the top of a ten-story building? Are you aware of this increase? Explain. (b) By how many grams does the mass of a 120-g...
-
A rectangular channel is 2 m wide and contains water 3 m deep. If the slope is 0.85° and the lining is corrugated metal, estimate the discharge for uniform flow. 3 2 m
-
(a) Determine the eigenvalues and spectral radius of the matrix (b) Use this information to find the eigenvalues and spectral radius of 201 212 320 25 0 15 (k+1) = Tu")
-
A spoilage-retarding ingredient is added in brewing beer. To determine the extent to which the taste of the beer is affected by the amount of this ingredient added to each batch, and how such taste...
-
A partial adjusted trial balance of Manumaleuna Company at January 31, 2012, shows the following. InstructionsAnswer the following questions, assuming the year begins January 1.(a) If the amount in...
-
1- Describe the error in the following code excerpt. for (int i = 1; i = 10; i++) System.out.println("This is the loop body"); 2- Change the code such that when it runs, the print statement is...
-
A bank's balance sheet information is shown below (in $000). 1. What is the bank's risk-adjusted asset base under Basel III? 2. To be adequately capitalized, what are the bank's CET1, Tier I, and...
-
In the biblical story, it is helpful to portray Gods unfolding plan of redemption through four acts: creation, fall, redemption and glorification. The story begins with creation, and the story ends...
-
The following balances appear on the books of Azad's Testing Equipment. Retained Earnings, $ 3 0 , 3 0 0 , Salaries Expense, $ 7 , 0 0 0 , Dividends, $ 5 , 2 0 0 , Rent Expense, $ 3 , 1 0 0 , Service...
-
QUESTION 4: What is the portfolio beta if 25% of your funds are invested in the market portfolio, 25% in an asset with twice as much risk as the market portfolio, and the remainder in a risk-free...
-
Why is it important for students taking college courses to plan ahead with your major assignments? What happens if we leave them until the last minute? Has this ever happened to you - that you left...
-
Grove Audio is considering the introduction of a new model of wireless speakers with the following price and cost characteristics. Sales price Variable costs Fixed costs $ 441.00 per unit 201.00 per...
-
A widget machine can be purchase for $2,400 and will create cash flows of $600 per year for the first two years, $1,000 in year 3, and $200 in Year 4. At the end of year 4 the machine can be sold for...
-
Test not useful in case of tubal pregnancy: a) Pelvic examination b) USG c) HCG levels d) Hysterosalpingography
-
The text defined intrinsic value as the value of an asset given a hypothetically complete understanding of the assets investment characteristics. Discuss why hypothetically is included in the...
-
A Betelgeusean plorg has these properties: Data A plorg has a name with no more than 19 letters. A plorg has a contentment index (CI), which is an integer. Operations A new plorg starts out with a...
-
Which of the following are not examples of correct usage (conceptually or syntactically) of auto_ptr? (Assume that the needed header files have been included.) auto_ptr pia(new int[20]); auto_ptr...
-
This exercise provides practice in writing functions dealing with arrays and structures. The following is a program skeleton. Complete it by providing the described functions: #include using...
-
The accountant for Elite Security Services Ltd reviewed the following information for accounts receivable: For the financial year 2022 - 2023 1. At 1 July 2022, Allowance for Doubtful Debts had an...
-
On 1 June, Sugar Rush Ltd had Accounts Receivable and Allowance for Doubtful Debts accounts as below. GST Inclusive. The following transactions occurred during the month of June: 5. Credit sales...
-
Outback Get Away Ltd sells four-wheel drive accessories and recovery equipment on credit. The accounting records at 30 June 2023 highlights the following. Ignore GST. In the past, the companys yearly...
Study smarter with the SolutionInn App