Question

Give a java program to print the odd numbers of array only.

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Science

Java

Related Computer Science Q&A

Find answers to questions asked by students like you.

Q: Describe a privacy issue so serious that it would case you to stop using Facebook.

A: Privacy Issue :  The privacy issue is really an important thing to discuss about when it comes to pe...

Q: Understanding linked list with struct. Write the following program in your IDE and do the exercise. ...

A: Below is the modified C++ program: - Program: - #include <iostream> using namespace std; //str...

Q: See attached photo for prompt: a) Write a Python function called func_xy that takes values x and y a...

A: def func_xy(x,y):    if (x>=0 and y>=0):        return x+y    if (x>=0 and y<0):        ...

Q: Programming language C#

A: Actually, program is a executable software that runs on a computer.

Q: Using java, need to create a craps game program that can keep track on a user's wins / losses and al...

A: Craps is a dice game in which the players make wagers on the outcome of the roll or a series of roll...

Q: Saleh built a model which can recognise his Regular and New customers visiting his travel agency by ...

A: Accuracy=items classified correctlyall items classified Total items classified = 5 Items classified ...

Q: If you run the following code through Valgrind, which of the following errors will be reported? Chec...

A: Click to see the answer

Q: Create an application containing an array that stores eight integers. The application should call fi...

A: public class ArrayMethodDemo {     public static void main(String[] args) {        int[] numbers = {...

Q: (a) What is a generic subprogram? explain with example (b) Write a comparison of the generic subprog...

A: Answer :(a) A generic or polymorphic subprogram is one that takes parameters of different types on d...

Q: What is a Collection in C#? Explain types of Collection.

A: C# collection C# collection types are for storing, managing and manipulating similar data efficient...

Q: Computer Science Question

A: Actually, program is a executable software that runs on a computer.

Q: Hello!! I am struggling with writing this code for my JAVA course. I have posted the screen shots of...

A: Java code: class ShoppingCart{ //creating class String description; //data members dou...

Q: Differentiate between scalar and superscalar processor with an aid of diagrams. Superscalar processi...

A: Solution: There are  different types of CPU,s available for the computers But these CPU's does diffe...

Q: Please help with the following question: What is the maximum number of errors in a message that c...

A: A single parity bit normally detects a single bit error. However, it can also detect any odd number ...

Q: Can someone please convert this C++ code into C #include using namespace std; int main() { int da...

A: Looks like your code is incomplete. but in case if this is the only code. I have solved it in step 2...

Q: Provided below is the C implementation of the quick sort sorting algorithm. Modify it, so that low, ...

A: #include <stdio.h>#define N 10/* Function prototypes */void quicksort(int* low, int* high);int...

Q: Explain different methods by which 2D array can be initialized. Also explain the memory representati...

A: Actually, array is a collection of elements.

Q: In C language please; Requirements: You must use the correct program and function descriptions.  Yo...

A: The program is written in c language as following- #include <stdio.h> #include <stdlib.h&gt...

Q: C programming Fill in the blank so that a program is constructed where the user enters a sentence, a...

A: The character in array is to be compared with ASCII value to find whether it is digit or character 4...

Q: ACE Hardware wants to develop a daily schedule for its employees in one of its stores in Omaha. Curr...

A: Time 12pm - 9pm Constraint  Min 4 Hour Max 8 Hours Optimization Model Employee#1  after 4pm E1 - 5 t...

Q: Count and sum the same? yes or, no, why? 1. { int sum = 0; for ( int count = 0; count < 10; count...

A: Answer in step2

Q: I have an array of the first 50 Fibonacci numbers in the picture. Your program should ask the user f...

A: Actually, java is a object oriented programming language. It is a platform independent.

Q: #30 c) What causes InsertionSort to run in its worst-case time complexityO(N^2)?

A: Actually, sorting is a where data is arranged in ordered(ascending or decending0

Q: #6 Is the following tree a valid min heap? Why or why not?

A: For a min heap, every node must be lesser than its child nodes

Q: Note: Using C++. (Please correct the code as indicated below. Thank you!) Correct the code below mak...

A: #include <iostream>#include <iomanip>using namespace std;#define DISC_RATE 0.1 //Functio...

Q: Using the MATLAB Programming to solve the step 2 in this problem. This is the code for step 1: Sinx...

A: Actually, the given program is : Using the MATLAB Programming to solve the step 2 in this problem. T...

Q: 2. A string bit consists of 0 and 1. A string bit of length 5 can be 00101 or 10111. 1. Constructs a...

A: The question asks for creating tree diagrams for a string bit of length 4. Next, it is asking to fin...

Q: #include<stdio.h>#include<string.h>struct info{char names[100];int age;float wage;};int ...

A: C programming is a general-purpose, procedural, imperative computer programming language developed i...

Q: Please do not copy solution 1. In a binary min-heap (priority queue), three list of the various meth...

A: A priority queue is a special type of queue where every element is associated with a priority. An el...

Q: solve it with C++ language

A: myPower function should multiply x for y times to get the value of xy

Q: Please help with the following question: Write pseudocode for a program that allows the user to i...

A: Pseudocode: Pseudocode is a concept that is sometimes used in fields focused on programming and algo...

Q: Translate the following C++ program into Pep/9 Assembly: #include <iostream>using namespace st...

A: BR mainnum. EQUATE 0ch. EQUATE 2

Q: what is the big-o measure for initializing the free list in the array -based linked implementation? ...

A: Click to see the answer

Q: Compare the concepts of socialisation and combination in the SECI model, with the use of examples.

A: Arguably the foremost necessary contributor to the present subject has been Ikujiro Nonaka. He worke...

Q: Please finish fast but accurate.Thank you!

A: False It is just Length

Q: a) List 4 valid expressions for the state machine shown in Figure 1. E.g., babc is a valid expressio...

A: 1. Valid Expression edded eddedd cbabc ddede edddde

Q: need help with this python recursion question. why is 1213121? please explain clear on each steps , ...

A: your code modified to simply the step drawing. def d(n): if n>0: d(n-1) print(n,...

Q: Differentiate between SMEs and public sector organisations

A: SME that means - SME stands for tiny and Medium Enterprises. The SME definition in Asian country as ...

Q: Computer Science Question

A: In SQL, to sort the query output "order by" clause is used. In SQL, by default sorting on a characte...

Q: After working on your new branch (newFeature) in your local repository for a few hours, which of the...

A: Please find the answer below :

Q: Please explain the process. Write a code in python to create a Trie Structure with 15 words.

A: Trie structure: Trie is one of best data structure which reduces the search complexities. Trie has ...