Answer:
void doublelt(int *number)
{
*number=*number*2;
}
Explanation:
This exercise is for you to learn and understand the PASS BY POINTER syntax. The importance of this is that if you didnt use a pointer you would have to RETURN an int from the function. in that case the code would be:
int doublelt(int number)
{
number=number*2;
return number;
}
Passing by pointer manipulates the value by going inside the memory and where it resides. Without the pointer, the function would create COPIES of the argument you pass and delete them once the function ends. And you would have to use the RETURNED value only.
Answer:
I can give you the perimeter "algorithm" but not the flowchart.
Here you go:
p = w * 4
p = perimiter,
w = width/height
4 = the amount of sides needed.
perimeter = width * 4
to include both width and height, we would instead use:
perimeter = 2(width+height)
This also works with rectangles ^
--------------------------------------------------------------------------
To find an area, it is just width * height. This is also compatible with rectangles.
<span>There are some network modeling tools that can scan the existing network.</span>
Answer:
- Create partitions on each hard disk drives.
- Mount the partition created on each hard drive so they are accessible by the the operating system.
- Format the partitions created with a filesystem recognized by Linux.
Explanation:
Having purchased the two new SCSI hard disk drives with the controller cards for each and installed them properly, before using them for data storage and retrieval he must first use the fdisk command to create one or more partitions on each of the hard disk drives then mount any partitions created on the two hard drives so that they are accessible by the operating system before then proceeding to format any partitions created with a valid filesystem recognized by Linux.