Answer:
The code is given below in Java with appropriate comments
Explanation:
//Import the input.
import java.util.Scanner;
class CensoredWords
{
//Define the main method.
public static void main(String args[ ])
{
//Define the variables.
String userInput="" ;
//Define the scanner object
Scanner scobj = new Scanner(System.in);
//Accept the userInput.
System.out.print("Enter String: ");
userInput=scobj.nextLine();
//Check if the input contains darn.
//Print censored.
if(userInput.toUpperCase().indexOf("DARN") != -1)
System.out.printf("Censored");
//IF the input does not contains darn
//Print userInput.
else
System.out.printf(userInput)
return;
}
}
Answer:
Review Tab is the correct answer to the given question .
Explanation:
Giving the permission to file in word 2016
- Click on the Review tab and select the restrict tab .
- Chose the option allow this type of editing .
- After that choose the option No changes .
- Pick the section of the document they want to authorize the adjustments.
- After that there are multiple option are seen select accordingly as user need and press ok button .
- Click on the start permission there is option is seen Start enforcement and press the button option start Enforcing Protection.
- After that feeding the password if the user need the password is in encrypt form then press encrypt option and click ok .
If the user need to read the file
- Click on the Review tab and select the restrict tab .
- After that choose the option "Stop Protection" .
- Giving the password you are feeding in the permission of file .
- Finally the user will edit the document
Answer:
public class num9 {
public static void main(String[] args) {
int sum =0;
int num =5;
for(num =5; num<=500; num+=5){
System.out.println(num);
sum +=num;
}
System.out.println(sum);
}
}
Explanation:
- Declare and initialize the variables sum and num
- Use a for loop with the condition for(num =5; num<=500; num+=5) Since the loop will increment by 5 and run from 5 to 500
- Within the loop, add num to sum at each iteration
- Print all elements on seperate lines
- Outside the loop, print the final value of sum
Create a for loop
Answer:
John von Neumann is remarkable for his vast knowledge of mathematics, and the sciences as well as his ability to correlate the pure and applied sciences.
Explanation:
John von Neumann who was born on December 28 1903, and died on February 8,1957 was known for his extensive knowledge of mathematics, physics, computer, economics, and statistics. In computing, he was known to conceive the idea of the self-replicating machines that thrive in the automata cellular environment, the von Neumann architecture, stochastic computing and linear programming.
He developed the game theory in Economics, and laid the foundation for several mathematical theories. He contributed greatly to quantum mechanics and quantum physics. Little wonder, he was dubbed "the last representative of the great mathematicians."