The first sentence that seems out of the logical order is the very first sentence, i.e, Also, she is moving the heavy oak bookcase to the bedroom.
A. 1
<u>Explanation:</u>
The fact that the sentence uses words like "she" and "also" leads to this conclusion. The logical order should move in a forward direction with the sentences forming a logical sequence.
The first sentence's structure is adding details to the actions which are already in progress and hence it should not be the first sentence. It should appear after the process of moving furniture has been started and further details are being added to it.
Answer:
a. (p*Main).age = 20;
Explanation:
Pointers use ->
where as normal variable use . to access its members
pMain is the pointer.
*pMain is the value inside pMain.
pMain->age = 20;
This statement equals to
(*pMain).age = 20;
Answer is option a.
The function in Python where comments are used to explain each line is as follows:
#This defines the parts() function
def parts(length, width, height, radius):
#This calculates the volume of the box
VBox = length * width * height
#This calculates the volume of the hole
VHole = 3.142 * radius ** 2 * height
#This calculates the remaining volume
Volume = VBox - VHole
#This returns the volume of the remaining material
return Volume
The above program is a sequential program, and it does not require loops, iterations and conditions.
Read more about similar programs at:
brainly.com/question/13971394
Explanation:
#include<iostream>
#include<string.h>
using namespace std;
char *removestring(char str[80])
{
int i,j,len;
len = strlen(str);
for( i = 0; i < len; i++)
{
if (str[i] == ' ')
{
for (j = i; j < len; j++)
str[j] = str[j+1];
len--;
}
}
return str;
}
int main ()
{
char str[80];
cout << "Enter a string : ";
cin.getline(str, 80);
strcpy(removestring(str), str);
cout << "Resultant string : " << str;
return 0;
}
In this program the input is obtained as an character array using getline(). Then it is passed to the user-defined function, then each character is analyzed and if space is found, then it is not copied.
C++ does not allow to return character array. So Character pointer is returned and the content is copied to the character array using "strcpy()". This is a built in function to copy pointer to array.
Answer:
the correct answer is "B"
Explanation:
the Systems development life cycle (SDLC) is a complete development process for a new product without giving any chance for alteration or improvement, Whereas,
extreme programming (XP) uses a software programme that is coded to allow for alteration. the product is continously modify until its meet customers satisfaction.
SDLC is seen as and archaic method of product development while XP is a new technology used by most company.
therefore, the SDLC models develops an entire system at once, where as XP uses incremental steps to improves an information system quality.