import java.util.Scanner;
public class MyClass1 {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int smallest = 0, largest = 0, num, count = 0;
while (true){
System.out.println("Enter a number (-1 to quit): ");
num = scan.nextInt();
if (num == -1){
System.exit(0);
}
else if (num < 0){
System.out.println("Please enter a positive number!");
}
else{
if (num > largest){
largest = num;
}
if (num < smallest || count == 0){
smallest = num;
count++;
}
System.out.println("Smallest # so far: "+smallest);
System.out.println("Largest # so far: "+largest);
}
}
}
}
I hope this helps! If you have any other questions, I'll do my best to answer them.
Answer:
import pandas as pd #importing pandas library as pd
import matplotlib.pyplot as plt #importing matplotlib.pyplot as plt
pop=pd.read_csv('nycHistPop.csv') #reading the csv file
borough=input('Enter borough name:') #asking the user for borough namme
# image=input('Enter image name:')
# pop['Fraction']=pop[borough]/pop['Total']
# pop.plot(x='Year', y='Fraction')
print("Minimum population",pop[borough].min()) #printing the minimum population of borough
print("Maximum population",pop[borough].max()) #printing the maximum population of borough
print("Average population",pop[borough].mean()) #printing the average population of borough
print("Standard deviation",pop[borough].std()) #printing the standard deviation of borough
# fig=plt.gcf()
# fig.savefig(image)
Explanation:
Answer:
using the cover page gallery
Explanation:
This is certainly the easiest way. And you just need to add this as first page, set the borders, pagination, headers and footers from second page, and avoiding the first page as it is the cover page as well as customize the various section of the cover page design you choose.
Inserting a blank page will require a lot of effort.
Inserting pictures will not result into a complete and a meaningful cover page.
Same is the case if you insert shapes.
hope it helps :)
Answer:
abacus . Mesopotamia or China, possibly several thousand years BCE. ...
binary math . Pingala, India, 3rd century BCE. ...
punched card . Basile Bouchon, France, 1725. ...
Explanation:
:)
Answer:
The answer is "option B".
Explanation:
In the given code, four double variable "len1, len2, len3, and total" is declared, in which the first three variables accept some value, and in the total variable, we add those variable. In the next step, an integer variable minLength is defined, which converts the decimal value to an integer and adds the value that is "0.5". In this section, the code uses as an intended purpose but only if the total of 3 lengths is equivalent to or larger then 0.5, and wrong choices can be described as follows:
- In option A, It accepts the negative value, that's why it is wrong.
- Option C, Option D, and Option E all were wrong because the code segment is work as intended.