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
Alenkinab [10]
3 years ago
10

Write a function header for the ZooAnimal class member function daysSinceLastWeighed. This function has a single integer paramet

er today and returns an integer number of days since the animal was last weighed. void ZooAnimal::Destroy () { delete [] name; } // -------- member function to return the animal's name char* ZooAnimal::reptName () { return name; } // -------- member function to return the number of days // -------- since the animal was last weighed { int startday, thisday; thisday
Computers and Technology
1 answer:
Dmitry_Shevchenko [17]3 years ago
4 0

Answer:

Answered below

Explanation:

public int daysSinceLastWeighed(int today)

Method is public which means it is visible to other classes. It returns an integer which is indicated as int. Next is the method's name which clearly describes what the method does 'days since last weighed'. The opening and closing parentheses enclose the integer parameter named today. This is the function header.

You might be interested in
Describe a situation where it would be appropriate to use each of the six leadership styles described by Daniel Goleman
polet [3.4K]

Answer:

Find the explanation below.

Explanation:

The six leadership styles described by Daniel Goleman are the;

1. Authoritative: This is applied when the leader wants to motivate a team to achieve greater heights. For example, in a group where the leader expects his team members to complete a project at a specific time,  he comes up with an idea of how they can meet the goal. He tells the group excitedly about this idea. The group in turn now shares this same excitement and gets to work applying the new ideas.

2. Coaching: This is used by the leader to encourage employees who lack motivation. Imagine that an employee known to be efficient at his work is finding it difficult to reach a sales goal. The leader observes this and encourages him, showing him better ways to improve his sales skills. He applies the idea and gets better at his job.

3. Affiliative: The affiliative leader seeks to resolve conflict by connecting people and building their spirits. In a case where the team members are feeling downcast because their well-loved boss is transferred to another branch, the new affiliative leader builds their spirit and helps them get back to work.

4. Democratic: This is needed when the leader seeks opinions from his subordinates. If the company is seeking to make changes to be at par with a competitor, the democratic leader welcomes a variety of opinions from his subordinates on new ways to improve their products and services.

5. Pacesetting: This type of leader leads the way and shows good example. After the leader has shown the group new ways to improve their sales, he applies the same approach in his marketing and has significant results.

6. Coercive: The leader applies this with difficult employees. In a situation whereby an employee has been encouraged on how to improve his skills but he still shows no much improvement, the coercive leader authoritatively tells him to make the needed effort since his job is on line. He shows signs of improvement and the leader uses lighter measures to calm his fears.

3 0
3 years ago
As it is a good practice that C# broughtback the concept of GOTO statement and Pointer? If your answer isyes then how C# control
zhenek [66]

Answer:

No for GOTO

Yes for Pointer

Explanation:

<u>GOTO statement</u>

This declaration is used to pass control to the program's marked declaration. The label is the valid identifier and is positioned just before the declaration from which the control is transmitted.

It becomes hard to trace a program's control flow, making it hard to comprehend the program logic. Any program in C language can be written without using a GOTO statement.

<u>Pointers</u>

A C # pointer is nothing but a variable holding another type of memory address. However, in C # pointer only the memory address of the value types and arrays can be declared.

C # supports pointers to a restricted extent. Unlike reference kinds, the default trash collection system does not track pointer kinds. Pointers are not allowed to point  to a type of structure containing a type of reference or a type of reference.

During the garbage collection process, the C #garbage collector can move objects in memory as they wish. The C #offers a unique fixed keyword for telling Garbage Collector not to move an item. This implies that the place of the value kinds referred to is fixed in memory. This is called pinning in C #.

8 0
3 years ago
1) Type a statement that gets an input value into variable numBers. Assume scnr already exists and numBers has been declared.
Sergio039 [100]

Answer:

Following are the code in the java language  

numBers = scnr.nextInt ( ) ;

Here scnr is an instance of scanner class .

Explanation:

In this code, we take the input by using the object of Scanner class i.e "scnr". The scanner class in the java programming language is used for taking the input by the user. The scnr.nextInt ( )  is taking the input which is stored in the  "numbers" variable.

So the whole program is looking like that  

import java.util.*; // import package  

public class Main

{

public static void main(String[] args) // main function

{

 int numBers; // variable declaration

 Scanner scnr=new Scanner(System.in); // create the instance of scanner class

 numBers=scnr.nextInt( ) ; // taking input

 System.out.println(numBers); // display the value of numBers

}

}

Output:

78

78

4 0
3 years ago
The ability to understand a person's needs or intentions in the workplace is demonstrating
DochEvi [55]

Answer:

perception i do believe is the answer

4 0
3 years ago
What is the most common type of communication?
tamaranim1 [39]

Answer:

technology texting

Explanation:

omega lol

6 0
3 years ago
Other questions:
  • From the ages of 18 to 24, individuals born from 1980 to 1984 held an average of 6.2 jobs—which is slightly higher than the numb
    10·1 answer
  • Prodeff, an online project management software, is available at a price of $1 per use. The software requires the user to enter t
    13·1 answer
  • PLS HELP GIVING 100 POINTS TO THE PERSON WHO WRITES IT
    6·1 answer
  • What should you do if an initial search returns too many results on unrelated topics
    15·1 answer
  • Which of the following is a scam where perpetrators promise high pay for working on different projects like wooden calendars, pa
    13·1 answer
  • Why are modern manufacturing techniques preferred over those historically used by artisans?
    13·1 answer
  • Computer hardware without software is usless and compyrersoftware without hardware is meaningless discuss
    6·1 answer
  • Answer this crossword for brainliest and 15 points
    9·1 answer
  • Convert 1/32 GB into MB​
    14·1 answer
  • How to install an older version of prettier on yarn
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!