Answer:
b) Select the whole document by pressing Ctrl+a.
Explanation:
The correct answer is b. If you do not select the whole document or parts of the document you wish to change the proofing language for, it will only be applied to the word your cursor is positioned in.
ig:ixv.mona :)
We are not sending them any other one tryin was there to a point that they had been doing the work for the first
Answer:
public static int maxMagnitude(int a, int b){
int max;
if (a>b){
max = a;
}
else{
max = b;
}
return max;
}
The complete program calling the method is given in the explanation section
Explanation:
import java.util.Scanner;
public class ANot {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Please Enter two numbers");
int num1= in.nextInt();
int num2 = in.nextInt();
System.out.println("The largest magnitude number is: "+maxMagnitude(num1,num2));
}
public static int maxMagnitude(int a, int b){
int max;
if (a>b){
max = a;
}
else{
max = b;
}
return max;
}
}
The maxMagnitude() method uses if/else statement to compare two ints and return the larger one
Answer:
count = 0
while True:
people = int(input("Enter the number of people arrived/departed: "))
count += people
if count == 100:
print("The bar is full")
break
elif count < 100:
print("There are " + str(count) + " in the bar currently")
else:
print(str(people) + " people cannot enter right now")
print("The maximum capacity is 100!")
count -= people
print("There are " + str(count) + " in the bar currently")
Explanation:
*The code is in Python.
Set the count as 0
Create an indefinite while loop.
Inside the loop:
Ask the user to enter the number of people arrived/departed
Add the people to the count (cumulative sum)
Check the count. If the count is 100, stop the loop. If the count is smaller than 100, print the current number of people. Otherwise, state that they cannot enter right now. The capacity is 100 at most. Subtract the people from the count and print the current number of people.
The correct answer for the given question above would be FALSE. It is not true that assumptions are always harmful to the problem solving process. In fact, assumptions help in <span>simplifying the </span>problem<span> and making it more manageable by providing fewer things to consider. Hope this is the answer that you are looking for.</span>