answer.
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
Novay_Z [31]
2 years ago
3

C program, Assign negativeCntr with the number of negative values in the linked list, including the list head.

Computers and Technology
1 answer:
exis [7]2 years ago
4 0

Answer:

if(currObj->GetDataVal() < 0)

         {

            negativeCntr++;

}

Explanation:

This is the solution in C++ try in C see if it works (I'm more knowledgeable on C++)

You have to use the function GetDataVal() in order to receive the value attached to the currObj you are looking for. The while loop used above it goes through each node to see if it's not null, or in other words, if the memory location has a value. If the location has a value then the value itself is checked and if the value is less than 0, negativeCntr = negativeCntr + 1;

You might be interested in
You are modeling a small part of an online flight reservation system, according to the following description. A flight is a sing
Law Incorporation [45]

Answer:

Explanation:

The database schema can have following tables:

1. airport_table(apcode, apcity, apcountry)

2. airline_table(aid, aname, acountry)

3. flight_table(fid, aid, arrtime, depttime)

4. passenger_table(pid, pname, pcity, pcountry)

5 booking_table(bid, bdate, pid)

See attachment for the diagram

4 0
2 years ago
Why computer is known as versatile and diligent device ?explain​
pashok25 [27]

They are versatile because they can be used for all sorts of tasks. They can also do many of the same tasks in different ways. They are diligent because they will do a task thoroughly until it is finished.

They work at a constant speed to do the task. Unlike a human, they will not slow down or get bored or start making mistakes that they were not doing earlier. So once they are programmed correctly to do a task, they will do it diligently.

6 0
2 years ago
Use blank to prevent friends who have been drinking from driving
GrogVix [38]
Use persuasion, meaning persuade them to stop
5 0
2 years ago
Read 2 more answers
Do you think social media interaction inhibits our ability to communicate and socialize offline? Why or why not?
Mandarinka [93]
I think it deffenetly inhitits our ability to communicate offline because we are so used to not having to talk face to face.  We can all just type and they can type back.  So then when we actually see someone and you can see what they are saying and how they react to what you're saying its very different and no one is used to it
7 0
2 years ago
Read 2 more answers
What level of fault is the following example: North Lake Hospital followed all of the HIPAA policies and procedures for securing
kotegsom [21]

Answer:

The level of fault for the example given is Level three (3)

Explanation:

Basic information to know about HIPAA include:

  1. <em>HIPAA</em> stands for <em>Health Insurance Portability and Accountability Act.</em>
  2. Its security rules cover technical, physical and administrative areas.
  3. There are four (4) levels of fault.

3 0
2 years ago
Read 2 more answers
Other questions:
  • To erase an entire entry in a cell and then reenter the data from the beginning, press the ____ key. alt esc ctrl tab
    6·1 answer
  • An administrator wants to create four subnetworks from the network address 192.168.1.0/24. what is the network address and subne
    11·1 answer
  • Compare the encryption algorithms found in s-tools: idea, mdc, des, and 3des.
    5·1 answer
  • Which statements describe the Sort List feature of Word? Check all that apply.
    5·2 answers
  • QUESTION 2 of 10: New shoes are on SALE. You find a pair you like for $85 dollars. But you only have $45 with you. So, you pay $
    13·1 answer
  • Which statement about dialogues is NOT correct? Select one: A. Users should be able to control the direction of speed of dialogu
    5·1 answer
  • You’re trying to cast a video presentation from your tablet to a projector for a training session with some new hires. Although
    5·1 answer
  • Jennifer has written a short story for children. What should be her last step before she submits the story for publication?
    11·1 answer
  • A time-saving strategy that helps define unfamiliar words involves using
    13·2 answers
  • Longer speeches should be separated into the paragraphs of:
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!