How does modules provide flexibility in a structured programming design?
Answer:
Third option is correct
Modules ensures the reuse of code variables.
Explanation:
Module is a combination of code that is used for a specific task i.e. sum, multiplexer and many others task which need to be performed more than once in a structure. So modules are helpful in structure programming to reuse that code again and again.
The Code Looks Like this :
import java.util.Scanner;
public class StringInputStream {
public static void main (String [] args) {
Scanner inSS = null;
String userInput = "Jan 12 1992";
inSS = new Scanner(userInput);
String userMonth = "";
int userDate = 0;
int userYear = 0;
/* Your solution goes here */
inSS.useDelimiter(" ");
userMonth=inSS.next();
userDate=inSS.nextInt();
userYear=inSS.nextInt();
System.out.println("Month: " + userMonth);
System.out.println("Date: " + userDate);
System.out.println("Year: " + userYear);
return;
}
}
Out Put:
Month: Jan
Date: 12
Year: 1992
Answer:
#include <iostream>
#include <cstdlib>
using namespace std;
int* integerArr( int number);
int main(){
int* address;
address = integerArr(5);
for ( int i = 0; i < 10; i++ ) {
cout << "Address of the integer array: ";
cout << *(address + i) << endl;
}
return 0;
}
int* integerArr( int number){
int myArr[number];
for (int i = 0; i < number; ++i) {
myArr[i] = rand();
}
int* ptr= myArr;
return ptr;
}
Explanation:
The C++ source calls the defined pointer function "integerArr" with an integer argument to declare arrays of dynamic length, in the main function of the program and the items of the array are printed on the screen.
Answer:
1. Write to the Reader
2. Structure your report
3. Back up your report with data
4. Separate facts with opinions
Explanation:
1. Remember that you’re not writing the report for yourself. You’re probably writing for clients or management, so you need to know how familiar they are with the concepts and terminologies that your team uses. If they’re not well-acquainted with it, you may have to spend the first part of your report defining them so readers can follow along. Or, you might want to dumb it down a bit to layman’s terms and cut back on acronyms and jargon. A good way to practice this is to do the same with meeting notes.
2. One thing all reports should have in common is a form of structure. Ideally, you want to organize information into different segments so that your reader can identify relevant sections and quickly refer back to them later on. Common sections include a background or abstract to explain the project’s purpose, and a final summary of the document’s contents.
3. A good project report is going to have lots of data backing it up, whether it is defending the team’s performance or breaking down a successful project. Accurate charts, spreadsheets, and statistics are a must if the report is to have any degree of credibility when presented to clients. Many project management tools provide flexible project reporting features to help PM’s compile and present data in meaningful ways.
4. You should never confuse the two when writing a project report, especially if you are doing a post-mortem on a failed project. Opinions are subjective and should never be presented as absolutes. The report should be scrubbed of any personal views or preferences unless absolutely necessary. And if your opinion is required, be sure to clearly identify it as such. You may want to put it in an entirely different section, if possible.
Hope this helped
Kinda, really good at this stuff.
Answer:
See Explaination
See Explaination
Explanation:
d. If both players play perfectly, then too each player will play not let the other win. Let there be a state of the game in which the goal state can be achieved in just 2 more moves. If player 1 makes one move then the next move made player 1 will win or player 2 do the same.
Either way whatever the rule states, there must be a winner emerging.
Check attachment for option a to c.