n = int(input("How many numbers do you need to check? "))
odd = 0
even = 0
i = 0
while i < n:
num = int(input("Enter number: "))
if num % 2 == 0:
even += 1
print(str(num)+" is an even number")
else:
odd += 1
print(str(num)+" is an odd number")
i += 1
print("You entered "+str(even)+" even number(s).")
print("You entered "+str(odd)+" odd number(s).")
I hope this helps!
The answer is checking the URL.
Looking at the URL or the web address of the website will help you determine whether the site contains reliable and credible information or not. Domain names like .edu and .gov are usually trusted sites. What you are looking for are sites with trusted institutions that have a proven record of integrity and reliability. Domain type should always match the content. For example, .edu should have educational material. By checking the URL, You’ll also be able to establish the person’s name or the agency that published the article.
Answer:
import java.util.Scanner;
public class num1 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
//Prompt and receive user input
System.out.println("Enter number of Steps");
int numSteps = in.nextInt();
double numMiles = numSteps/2000;
//Print the formated number of miles
System.out.printf("The equivalent miles is %.2f ",numMiles);
}
}
Explanation:
- This is solved using Java programming language
- Scanner class is imported and used to receive user input (number of steps walked)
- To convert number of steps to number of miles, we divide by 2000, Since the question says the pedometer treats walking 2,000 steps as walking 1 mile.
- Output the number of miles to 2 decimal places using java's printf() method
C) Go to the View tab and select Slide Show.
Explanation:
Steps for Slide Show View to Deliver a Presentation:
- Go to the Slide Show view from the Task bar at the bottom of the slide window.
- Use the Slide Show view to deliver your presentation to your audience.
- Slide Show view occupies the full computer screen.
Answer:
I thinks its CodeHS 3.4.5.
Explanation: