1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
GREYUIT [131]
3 years ago
12

Is there a syntax error in the following code? bool hourlyWorker = true; if (hourlyWorker) cout << "The employee is an hou

rly worker.\n"; else cout << "The employee is not an hourly worker.\n";
Computers and Technology
1 answer:
Eduardwww [97]3 years ago
6 0

Answer:

No, there is not

Explanation:

The code will print  -> The employee is an hourly worker.

Here is how:

- <em>hourlyWorker</em> is set as true

- Then we check this part of the code -> if (hourlyWorker)

- If this is true, then the code will print "The employee is an hourly worker."

- If not, then the code will print "The employee is not an hourly worker."

Since if (hourlyWorker) is true, it will print "The employee is an hourly worker."

You might be interested in
Which of these is a formatting option that you can use to enhance your text document?
Paha777 [63]
My best guess is the last option (D) tools. Hope it helps
8 0
3 years ago
Read 2 more answers
The Early Days (Pre-Mechanical Period)​
Irina18 [472]

Answer:

The earliest age of technology. It can be defined as the time between 3000 B.C. and 1450 A.D. When humans first started communicating, they would try to use language to make simple pictures – petroglyphs to tell a story, map their terrain, or keep accounts such as how many animals one owned, etc.

<h2>Please mark me as brainliest</h2>

7 0
2 years ago
What term is used to record successful and unsuccessful access attempts
MArishka [77]
I think it is called an audit trail. 
6 0
4 years ago
Does using interior lighting help improve a drivers visibility at night
marin [14]
No, interior lighting makes less visibility for drivers. It becomes harder to see out the window.
8 0
4 years ago
Which is a safe practice when online
Kay [80]

Answer:

I don't know if there are choices but these are couple that i think would be right. Don't give out personal info, have a complex password and don't give it out to anyone, don't click on random pop up adds, and use a firewall

Explanation:

7 0
3 years ago
Read 2 more answers
Other questions:
  • To collect data using Google Analytics, which steps must be completed? (select all answers that apply)
    9·1 answer
  • The default primary key for an access database is the id field true or falser
    7·1 answer
  • A pizza cutter is a compound machine made up of what simple machines?
    7·1 answer
  • The difference between a checked and an unchecked exception is:
    10·1 answer
  • Write a program that sorts an array of 20 random numbersin the range from 0 through 1000.
    6·1 answer
  • Convert 128 GB into KB​
    8·2 answers
  • Chelsea is writing a paper about the value of running every day. She wrote this thesis statement:
    10·1 answer
  • Peyton is taking a part-time job to earn some extra money. Every week the manager will provide a list of tasks and the number of
    11·1 answer
  • The four differences between binary and denary​
    13·1 answer
  • Do you want my hero academia?<br><br><br><br><br><br> if so, who's your favorite character :&gt;
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!