1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
lorasvet [3.4K]
4 years ago
8

Urgent ..algorithm and flowchart to check weather a number is odd or even ???​

Computers and Technology
2 answers:
arlik [135]4 years ago
3 0

Answer:

if it's 0 then the number is even.else number is odd

Explanation:

if it's divisible by 2.then the reminder will be 0,

then the number is even.

thanks

Zanzabum4 years ago
3 0

Answer:

<em>Hello</em><em>!</em><em>!</em><em>!</em>

<em>I'm</em><em> </em><em>not</em><em> </em><em>sure</em><em> </em><em>about</em><em> </em><em>first</em><em> </em><em>one</em><em> </em><em>but</em><em> </em><em>second</em><em> </em><em>is</em><em> </em><em>correct</em><em> </em><em>one</em><em>.</em>

<em>no</em><em>.</em><em> </em><em>means</em><em> </em><em>number</em><em> </em><em>(</em><em>i</em><em> </em><em>didnt</em><em> </em><em>had</em><em> </em><em>place</em><em> </em><em>so</em><em>)</em>

<em>so</em><em>,</em><em> </em><em>i</em><em> </em><em>hope</em><em> </em><em>it</em><em> </em><em>helps</em><em> </em><em>you</em><em> </em><em>a</em><em> </em><em>little</em><em>.</em><em>.</em><em>.</em><em>.</em>

You might be interested in
In python please.
hjlf

There is a variable, state_capitals, that refers to a dictionary that maps U.S. states to their capitals, and another dictionary, provincial_capitals, that maps Canadian provinces to their capitals. Associate a dictionary that maps states or provinces to their respective capitals with a variable, regional_capitals.

Explanation:

The below code is done in python.

{provincial_capitals.keys} + (state_capitals.keys) == regional_capitals

regional_capitals = {}

regional_capitals.update(state_capitals)

regional_capitals.update(provincial_capitals)

3 0
3 years ago
Max magnitude Write a method maxMagnitude() with two integer input parameters that returns the largest magnitude value. Use the
Ira Lisetskai [31]

Answer:

The java program is as follows.

import java.lang.*;

public class Numbers

{

   //variables to hold two numbers

   static int num1=-8, num2=-2;

   //method to return integer with higher magnitude

   public static int maxMagnitude(int userVal1, int userVal2)

   {

       if(Math.abs(userVal1) > Math.abs(userVal2))

           return userVal1;

       else    

           return userVal2;

   }

public static void main(String[] args) {

    int max = maxMagnitude(num1, num2);

 System.out.println("The number with higher magnitude among "+num1+ " and "+num2+ " is "+max);

}

}

OUTPUT

The number with higher magnitude among -8 and -2 is -8

Explanation:

1. Two integer variables are declared to hold the two numbers. The variables are declared at class level (outside main()) and declared static.

2. The variables are initialized with any random value.

3. The method, maxMagnitude(), takes the two integer parameters and returns the number with higher magnitude. Hence, return type of the method is int.

public static int maxMagnitude(int userVal1, int userVal2)

4. This method finds the number with higher magnitude using the Math.abs() method inside if-else statement.

               if(Math.abs(userVal1) > Math.abs(userVal2))

                   return userVal1;

        else    

                   return userVal2;

5. Inside main(), the method, maxMagnitude(), is called. This method takes the two variables as input parameters.

6. The integer returned by the method, maxMagnitude() is assigned to a local integer variable, max, as shown.

      int max = maxMagnitude(num1, num2);

7. The result is displayed to the user as shown.

System.out.println("The number with higher magnitude among "+num1+ " and "+num2+ " is "+max);

8. The class variables and the method, maxMagnitude(), are declared static so that they can be used and called inside main().

9. The variable, max, is called local variable since it can be used only within the main() where it is declared. It is not declared static.

10. The class is declared public since it has the main() method and execution begins with main().

11. The program is saved with the same name as the name of the public class having main(). In this case, the program is saved as Numbers.java.

12. No user input is taken for the two input parameter values. The static variables can be assigned any integer value and the program can be tested accordingly.

8 0
4 years ago
How many yards must you run to complete a 100 meter dash?
ddd [48]
103 yards in a 100 meter dash
<span />
4 0
3 years ago
Read 2 more answers
Microsoft Windows is an example of ?
Ede4ka [16]

Answer:

an application software

Explanation:

4 0
4 years ago
WordProcessor is a _________________
madam [21]

Answer: Application Software

Explanation: A word processor is referred as the application software that is for the  creation and editing of a document. It is also used for getting the hard copy of the document by printing it .The data entered in it can be modified according to our need by giving certain commands from the keyboard. It has several features like  storing of data, displaying of data,printing it etc.

3 0
3 years ago
Other questions:
  • Which of the following is a Microsoft solution that runs on a Microsoft Terminal Services server but appears, to end users, as i
    10·1 answer
  • Is I5 9100 is better than i5 9400
    6·1 answer
  • Are there protections for people in terms of what data can be collected by different sites?
    10·1 answer
  • If I deal seven cards from a standard deck of 52, what is the chance that I will get two triples (three of a kind) and one other
    11·2 answers
  • The chip that controls the radio frequency waves within a device
    9·1 answer
  • True or False
    13·1 answer
  • Secops focuses on integrating the need for the development team to provide iterative and rapid improvement to system functionali
    14·1 answer
  • Evaluate the merits of a hard disk drive or a solid state drive to use as the secondary storage
    5·1 answer
  • How to get flash to work on chrome?
    6·1 answer
  • Which instructions are used to change the sequence of instruction execution? group of answer choices data movement operate contr
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!