Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
write a Java program to input 10 non-zero numbers in an array and display the count of even and odd numbers.
Home
Education
write a Java program to input 10 non-zero numbers...
asked
Dec 31, 2021
in
Education
by
JackTerrance
write a Java program to input 10 non-zero numbers in an array and display the count of even and odd numbers. URGENT! Select the correct answer from above options
computer-science-interview-questions
computer-science-questions
1
Answer
0
votes
answered
Dec 31, 2021
by
JackTerrance
Answer: Java Scanner class allows the user to take input from the console. It belongs to java. util package. It is used to read the input of primitive types like int, double, long, short, float, and byte.
Related questions
0
votes
Q: write a program to input a number and display the odd digits
write a program to input a number and display the odd digits Select the correct answer from above options...
asked
Dec 16, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to input number and print wether it is even or odd.
write a program to input number and print wether it is even or odd. Select the correct answer from above options...
asked
Dec 21, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a program to generate first 20 terms of Fibonacci series and store them in single dimension array. Display the prime Fibonacci numbers from the array
Write a program to generate first 20 terms of Fibonacci series and store them in single dimension array. Display ... from the array Select the correct answer from above options...
asked
Dec 10, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a JAVA program to store the marks of any 5 subjects in different variables. Calculate total and average. Display the name of the student, total and average. DO NOT USE ANY INPUT METHOD
Write a JAVA program to store the marks of any 5 subjects in different variables. Calculate total and average. ... ANY INPUT METHOD Select the correct answer from above options...
asked
Dec 22, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a JAVA program to find the area and perimeter of a square and rectangle. Store side in s , length as ‘ln’ and breadth as ‘b’. display the results in separate lines. DO NOT USE ANY INPUT METHOD
Write a JAVA program to find the area and perimeter of a square and rectangle. Store side in s , length as ... USE ANY INPUT METHOD Select the correct answer from above options...
asked
Dec 22, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to enter a sentence and check if it contains palindrome words or not. if yes then count and print all palindrome words in the sentence present. Java class 10
write a program to enter a sentence and check if it contains palindrome words or not. if yes then count and ... present. Java class 10 Select the correct answer from above options...
asked
Dec 31, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a C program to Read a number.Find sum of digit at even position in a number and multiplication of digit at odd position in a number.
write a C program to Read a number.Find sum of digit at even position in a number and multiplication of digit ... position in a number. Select the correct answer from above options...
asked
Dec 13, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a html program to display a menu card of Hotel debri with heading with atleast 3 veg and non veg items displayed in checkboxes and place order
write a html program to display a menu card of Hotel debri with heading with atleast 3 veg and non veg ... checkboxes and place order Select the correct answer from above options...
asked
Nov 26, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to input a number. check and display whether it is divisible by 100
write a program to input a number. check and display whether it is divisible by 100 Select the correct answer from above options...
asked
Dec 17, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a program to store 10 names in an array. Arrange these in alphabetical orderby sorting. Print the sorted list.Take single word names, all in capital letters, e.g. SAMSON, AJAY, LUCY, etc.
Write a program to store 10 names in an array. Arrange these in alphabetical orderby sorting. Print the sorted list. ... , LUCY, etc. Select the correct answer from above options...
asked
Dec 12, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a Numpy program to create an array to 10 zeros,10 ones,10 fives.
Write a Numpy program to create an array to 10 zeros,10 ones,10 fives. Select the correct answer from above options...
asked
Dec 12, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a python program to print first n(entered by user) even natural numbers.
Write a python program to print first n(entered by user) even natural numbers. Select the correct answer from above options...
asked
Dec 25, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write pseudo code to count occurrence of a given number in the list. For example, consider the following list, if user enters 5 then display “2 times” because “5” occurs 2 times in the list.
Write pseudo code to count occurrence of a given number in the list. For example, consider the following list, if ... in the list. Select the correct answer from above options...
asked
Nov 28, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a Java program to accept a full name and display the initials along with the surname.
write a Java program to accept a full name and display the initials along with the surname. URGENT! give the full program please Select the correct answer from above options...
asked
Dec 31, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a JAVA program to find the area and perimeter of a square and rectangle. Store side in s , length as ‘ln’ and breadth as ‘b’. display the results in separate lines.
Write a JAVA program to find the area and perimeter of a square and rectangle. Store side in s , length ... results in separate lines. Select the correct answer from above options...
asked
Dec 21, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
...