We can import Scanner from Java.utils.Scanner to pull in text entered in the console.
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String password = "";
do {
System.out.print("Enter your password: ");
password = sc.nextLine();
if(!password.equals("pals") {
System.out.println(\nIncorrect Password. Try again.");
}
} while(!password.equals("pals");
<span> change the behavior of the program I think</span>
<span>Validation of electronic signatures was designed to encourage a paperless society.</span>
<u>Answer</u>:
To quickly modify fonts, colours, and effects on a slide, a user can modify the Theme.
<u>Explanation</u>:
In Microsoft power point a theme is a group or collection of fonts , colours and effects that are pre-formatted to improve or enhance the presentation. We can start changing the font , colours or effects or any pre-existing themes by selecting them.
To Change colour:
- In Design tab, under the Variants group, click on the downward and choose one colour from the colour variant gallery.
- Now click on the customise colours which opens the "Create New Theme Colours" dialog box. In this dialog box , in the theme colours we can make the necessary changes and save them as a new theme.
To change fonts:
- In the View tab, choose Slide Master.In this tab, select "Fonts" and then select Customise Fonts.
- Now "Create New Theme Fonts" dialog box opens where use can choose the required font size under the Heading font and Body font boxes. Again this can be saved as a new theme. Changing the font of theme changes all the bullet texts and title.
Answer:
29
Explanation:
for n=28:
--------------
Algorithm 1 performs f(n) = n2 + n/2 = 28*28 + 28/2 = 798
Algorithm 2 performs f(n) = 12*28 + 500 = 836
for n=29
--------------
Algorithm 1 performs f(n) = n2 + n/2 = 29*29 + 29/2 = 855.5
Algorithm 2 performs f(n) = 12*29 + 500 = 848
so, for n=29, algorithm 2 will be faster than algorithm 1