What do you understand by requirement gathering? Explain the different requirements gathering technique that are used by an analyst?
Suggest a suitable life cycle model for a software project which your organization has undertaken on behalf of certain customer who is unsure of his requirements and is likely to change his requirement frequently. Give the reasons behind your answer.
Give any example which describes the software crises due to design
What do you understand by requirement gathering? Explain the different requirements gathering technique that are used by an analyst?
given an MxN integer matrix write a program to
Find all zeros and replace them with the sum of their neighboring elements.
After replacing the zeros set all other elements the corresponding row and column with zeros (excluding the elements which where previously zeros)
Note: consider the upper ,lower,right and left elements as neighboring elements
INPUT
The first line of input is two space seperated integeres M and N
The next M lines of input contain N space seperated integers
OUTPUT
the output should be an MxN matrix
sample input 1
3 3
1 2 3
4 0 2
1 1 8
sample output 1
1 0 3
0 9 0
1 0 8
sample input 2
4 5
4 8 0 0 0
4 7 0 9 7
5 5 6 9 8
7 4 3 6 7
sample output 2
0 0 8 9 7
0 0 22 0 0
5 5 0 0 0
7 4 0 0 0
you given a list of prices where prices[i] is the price of a given stock o the i th day write a program to print the maximum profit by choosing a single day to buy a stock and choosing a different day in the future to sell that stock if these is no profit that can be achieved return 0
INPUT
the input is a single line containing space seperated integers
OUTPUT
the output should be an integer
Explanation
in the example the given prices are 7 1 5 3 6 4
buying stocks on day two having price 1 and selling them on the fifth day having price 6 would give the maximum profit which is 6 - 1
so the output should be 5.
sample input 1
7 1 5 3 6 4
sample output 1
5
sample input 2
1 11 13 21 19
sample output 2
20
given a sentence S. and a positive integer N. write a program to shift the sentence by N words to the right
INPUT
The first line pf input is a string S.
The second line of input is an integer N
OUTPUT
The output should be a single line containing the sentence by shifitng the N word to the right
EXPLANATION
in the example the sentence is python is a programming language and N is 2 shift the sentence two words to the right which means the last two words will be moved to the front.
so the output should be programming language python is a
sample input 1
Python is a programming language
2
sample output 1
programming language Python is a
sample input 2
Cats hate water
4
Sample output 2
water Cats hate
Kindly answer this urgently.
You can access the question via the link below. Thanks and plz answer.
https://drive.google.com/file/d/1mfyGOKUB_vdWvXTg6R9tHKYe0du0Rnqi/view?usp=sharing
Write a program to assign the values to base class members at the time of creation of derived class object. The base class members are private members. Display the values of both base and derived class using function overriding concept.
#include
using namespace std;
class List
{
public:
int item;
int pos=0;
List* nextNode;
};
void Print_Reverse_List(List* node)
{
if (node == NULL)
return;
Print_Reverse_List(node->nextNode);
cout << node->item << " ";
}
void Insert_Element(List** head, char data)
{
List* node = new List();
node->item = data;
node->nextNode = (*head);
(*head) = node;
}
void PrinList(List *node){
List *temp = node;
while(temp !=NULL){
cout<item<<" ";
node->pos ++;
temp = temp->nextNode;
}
cout<<"\n";
}
void search_Element(List *node, int x){
List *temp = node;
while(temp !=NULL){
int data = temp->item;
if (data==x){
cout<<"\nElement found\n";
}
temp = temp->nextNode;
}
cout<<"\n";
}
int Length(List *node){
return node->pos;
}
YOUR TASK:
Create default, parameterized and copy constructor for the above code and create a manu to test the functions inside the main function.