Answer:
C code for half()
#include<stdio.h>
void half(float *pv);
int main()
{
float value=5.0; //value is initialized
printf ("Value before half: %4.1f\n", value); // Prints 5.0
half(&value); // the function call takes the address of the variable.
printf("Value after half: %4.1f\n", value); // Prints 2.5
}
void half(float *pv) //In function definition pointer pv will hold the address of variable passed.
{
*pv=*pv/2; //pointer value is accessed through * operator.
}
- This method is called call-by-reference method.
- Here when we call a function, we pass the address of the variable instead of passing the value of the variable.
- The address of “value” is passed from the “half” function within main(), then in called “half” function we store the address in float pointer ‘pv.’ Now inside the half(), we can manipulate the value pointed by pointer ‘pv’. That will reflect in the main().
- Inside half() we write *pv=*pv/2, which means the value of variable pointed by ‘pv’ will be the half of its value, so after returning from half function value of variable “value” inside main will be 2.5.
Output:
Output is given as image.
Answer:
Explanation:
The following python code loops through each line within a file called text.txt and counts all the words, then it divides this count by the number of sentences in the text file. Finally, output the average number of words per sentence.
f = open("text.txt", "r")
all_words = 0
sentences = 0
for x in f:
list = x.split(' ')
all_words += len(list)
sentences += 1
average = all_words / sentences
print("There are an average of " + str(average.__round__()) + " words in each sentence.")
Answer:
The statement personal self -directed learning is true because, it is a dynamic learning process that can be both change for the organization and contribute to fresh ideas for potential placement of the company.
Explanation:
Solution
In an organisation the management team plays an important role toward's its growth.
This plays a vital role in meeting up to its long-term targets, forging ahead with passion or determination and making any form of adjustments when necessary.
Management is not just about implementing specified proposals. It calls for the analysis of different critical structure, on spot decision-making. this is about learning and can sometimes lead to newly taught results, sometimes positive other times.
Management refers to being actively and consistently engaged with a group of people who work for them. Successful management entails good team work, support from top to bottom of its hierarchy. It requires leadership over a group of individuals who are expected to execute thoughts and opinions on the organisation.
As a part of the management committee also allows for the team leaders to build individual talent. They learn from their way through the various hiccups they face.
Therefore, aside personal self-directed learning, joining the technology group's management team is a proactive learning process that can be both transformative for the organization and contribute to fresh ideas for potential placement of the company.
Answer:
mouse cannot be shared on network
Answer:
The various options that exist for acquiring software are:
- By developing a various custom applications so that, they can satisfied the requirements in an organization.
- By purchasing various software application or packages for modify the software to meet the specific requirements.
- Used the open source software for developing the specific information system so that, the system are acquired.
- Developed the in-house capabilities and skills of employee, this is the main advantage for acquiring the software.