Design a pseudo code that determines if a given number is even or odd number

Answers

Answer 1
0. Start
1. Print "Enter Any Number to Check, Even or Odd"
2. Read input of a number
3. If number mod = 0
4. Print "Number is Even"
5. Else
6. Print "Number is Odd"
7. End
Answer 2

The pseudocode determines if a given number is even or odd by checking if it's divisible by 2 and then prints the respective result.

Here's a simple pseudocode to determine if a given number is even or odd:

Input: number

Output: "Even" if the number is even, "Odd" if the number is odd

if number is divisible by 2 with no remainder then

   Print "Even"

else

   Print "Odd"

end if

This pseudocode checks whether the given number is divisible by 2. If it is, it prints "Even" since even numbers are divisible by 2. Otherwise, it prints "Odd" since odd numbers are not divisible by 2.

Learn more about pseudocode here:

https://brainly.com/question/17102236

#SPJ7


Related Questions

help me with this


Looking at the example below is the type value equal to a string or an integer?

ball.type = "spike";

a. string
b. integer

Answers

The ball.type = "spike"; is a string type option (a) string is correct because the string cannot be translated into an integer but can only be transformed into another string.

What is execution?

The process by which a computer or virtual machine reads and responds to a computer program's instructions is known as execution in computer and software engineering.

It is given that:

ball.type = "spike';

As we know,

The string cannot be translated into an integer but can only be transformed into another string. The string is a character value enclosed in quotations, whereas the Integer is a numeric value.

ball.type = "spike"; is a string type.

Thus, the ball.type = "spike"; is a string type option (a) string is correct because the string cannot be translated into an integer but can only be transformed into another string.

Learn more about the execution here:

brainly.com/question/20493746

#SPJ1

Question 6 of 10 What are three reasons teachers might choose to use Zoom to teach and communicate with students remotely? A. It is easy for teachers to see when students indicate they have a question. B. It has a screen-share feature that allows teachers to share their screen and whiteboard. C. It has a waiting room that allows teachers to send their students to a time-out area for misbehavior. D. It includes the ability to display the video feeds of all students in a session.​

Answers

Answer:

D

Explanation:

so the teacher can see everything they do and would not need to text their parents and moody of them are at home

A piece of data that is written into a program's code is a

Answers

Answer:

A piece of data that is written into a program's code is a literal.

Explanation:

Isabelle just purchased a camera with an 18-MP image sensor. Based on this, how many pixels can her camera capture and process?

Answers

Since, Isabelle just purchased a camera with an 18-MP image sensor, the number of pixels that her camera can capture and process is 18 million pixels.

What does a pixel on a camera sensor measure?

In regards to picture and photography, the more pixels, the higher the detail as well as the  sharpness of the image that is display or shown.

Note that the Resolution is seen as the  measurement of image sharpness and the fact  is that it is one that can be  expressed in millions of pixels, as well as in megapixels.

Therefore, Since, Isabelle just purchased a camera with an 18-MP image sensor, the number of pixels that her camera can capture and process is 18 million pixels.

Learn more about image sensor from

https://brainly.com/question/13107084

#SPJ1

Answer:

18 million pixels

Explanation:

connexus quiz

what cloud computing storage

Answers

Answer:

It's where data is stored on the internet via the cloud servers. This allows for access of your data pretty much anywhere you have internet depending which service you stored your data on.

Examples:
Dropbox
Amazon Web Services (AWS)
iCloud
Mega.nz

Assume that you are the owner of a small bicycle sales and repair shop serving hundreds of customers in your area. Identify the kinds of customer information you would like your firm's Customer Relationship Management (CRM) system to capture. How migh
this information be used to provide better service or increase revenue? Identify where or how you might capture this data.

Answers

Answer:

Bicycle shops specialize in the selling of bicycles. Depending on the shop, they may also buy, special order, rent, or repair bicycles as additional services. The retail space of the shop usually dictates the size of the inventory.

CRM-Customer Relationship Management:

The CRM is the process of integrating the functions of sales of the product, marketing, and services provided in an organization.

The objective of CRM is to help sales associates to plan the relationship development activities required to maintain and expand business.

why computer is now considered a commodity.

Answers

Answer:

Computers are considered commodities because they are relatively easy to produce and there is a lot of competition in the market. This means that prices are relatively low and there is not a lot of differentiation between products.

Explanation:

Hope this helps!

User asks you to develop a program that calculates and then prints interest earned on a bank
balance. Program should print interest earned for the same balance when interest is accumulated
annually, semiannually and quarterly.
Interest earned yearly-balance * rate /100
Interest earned semiannually balance*rate/2/100
Interest earned quarterly= balance*rate/4/100
for annual
for semi annual
for quarterly
00 is Current (1) times resistance (R)

Answers

The program that calculates and then prints interest earned on a bank balance is given below:

The Program

#include <bits/stdc++.h>

using namespace std;

int main()

{

   double principle = 10000, rate = 5, time = 2;

   /* Calculate compound interest */

   double A = principle * (pow((1 + rate / 100), time));

     double CI = A- principle;

   cout << "Compound interest is " << CI;

   return 0;

}

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1

Question 15 (1 point)
Saved
Carla is taking a trip to a cabin to write and she's looking for a typewriter that
doesn't need electricity or any other kind of power. What would be the BEST option
for her?
a tablet
a manual typewriter
an electric typewriter
an IBM typewriter

Answers

Since Carla looking for a typewriter that doesn't need electricity or any other kind of power, the best option would be: B. a manual typewriter.

What is an electrical circuit?

An electrical circuit can be defined as an interconnection of different electrical components, in order to create a pathway for the flow of electric current (electrons) due to a driving voltage.

The components of an electrical circuit.

Generally, an electrical circuit comprises the following electrical components:

ResistorsCapacitorsBatteriesTransistorsSwitchesWiresFuse

Generally speaking, a manual typewriter is a mechanical device that is designed and developed to enable an end user to type, especially without the use of electricity or any other kind of power.

Read more on an manual typewriter here: https://brainly.com/question/2939803

#SPJ1

Write a program that reads a monetary amount in dollars and cents (such as 37.84) and computes the equivalent in bills and coins, using the largest denominations possible.

Use a Scanner object to read in a double value for the monetary amount
Convert the total monetary amount to an integer representing the total number of cents (there are 100 cents in a dollar)
US monetary denominations
ten dollar bill = 1000 cents
five dollar bill = 500 cents
one dollar bill = 100 cents
quarter coin = 25 cents
dime coin = 10 cents
nickel coin = 5 cents
penny coin = 1 cent
Use integer division (/) and modulus (%) to calculate each denomination and the cents left over
Hint: You will need to successively divide the remaining cents by the number of cents in the denomination, starting with the ten dollar bills.
tens = remainingCents / 1000; // Divide the total cents by the number of cents in $10
remainingCents = remainingCents % 1000; //Remainder of division by 1000 is what is left after $10 bills taken out
When user input appears as shown in Figure 1, your program should produce output as shown in Figure 2.

Figure 1: (input)

37.84
Figure 2: (output)

$37.84 is equivalent to the following:
3 ten dollar bills
1 five dollar bills
2 one dollar bills
3 quarters
0 dimes
1 nickels
4 pennies


import java.util.Scanner;

public class MoneyConversion
{
// This program reads a monetary amount and computes the equivalent in bills and coins
public static void main (String[] args)
{
double total;
int tens, fives, ones, quarters, dimes, nickels;
int remainingCents;

Scanner scnr = new Scanner(System.in);

// Read in the monetary amount
total = scnr.nextDouble();

// Add the remaining code to finish out the program

}
}

Answers

Using the knowledge of computational language in python we can write the code as program that reads a monetary amount in dollars and cents (such as 37.84) and computes the equivalent in bills and coins, using the largest denominations possible.

Writting the code:

import java.util.Scanner;

public class Money {

public static void main(String[] args) {

double amount; // This displays user's amount

int one, five, ten;

int penny, nickel, dime, quarter;

// Create a Scanner object to read input.

Scanner kb = new Scanner(System.in);

// Get the user's amount

System.out.print("What is the amount? ");

amount = kb.nextDouble();

// Calculations

ten = (int) (amount / 10);

amount = amount % 10;

five = (int) (amount / 5);

amount = amount % 5;

one = (int) (amount / 1);

amount = amount % 1;

quarter = (int) (amount / .25);

amount = amount % .25;

dime = (int) (amount / .10);

amount = amount % .10;

nickel = (int) (amount / .05);

amount = amount % .05;

penny = (int) (amount / .01);

amount = amount % .01;

// Display the results

//println adds a new line by default

System.out.println(ten + " tens.");

System.out.println(five + " fives.");

System.out.println(one + " ones.");

System.out.println(quarter + " quarters.");

System.out.println(dime + " dimes.");

System.out.println(nickel + " nickels.");

System.out.println(penny + " pennies.");

}

}

See more about JAVA at brainly.com/question/12975450

#SPJ1

Type the correct answer in the box. Spell all words correctly.
Complete the sentence describing an analog signal.
An analog video is a video signal transmitted by an analog signal, captured on a _____
.

Answers

Answer : amplitude

Explanation : A channel actually consists of two signals: the picture information is transmitted using amplitude modulation on one carrier frequency, and the sound is transmitted with frequency modulation at a frequency at a fixed offset (typically 4.5 to 6 MHz) from the picture signal.

The table style feature changes the ________ of a table.

a) column width
b) row height
c) appearance

Answers

Answer:

Even before seeing the options I thought appearance so option C all the way.

Good luck ✅

Ace that work

what do u mean by server ?​

Answers

A lot of computers that is shared by one network. They usually help utilize there resources remotely

How many bits is needed to distinctly address 226KB in a byte addressable Memory?

Answers

To distinctly address 226kb in a byte addressable memory, one would need 8 bits.

What is an addressable memory?

Word addressing in computer architecture implies that addresses of memory on a computer authenticate words of memory.

In contrast to byte addressing, where addresses authenticate bytes, it is commonly employed.

What is the calculation justifying the above answer?

Given:

2⁸ = 256

and 226 < 256

Hence, we need 8 bit.

Learn more about addressable memory:
https://brainly.com/question/19635226
#SPJ1

how many optical disc of 720mb storage capacity are needed to store 20gb storage of hard disc​

Answers

The answer would be 700 because you would just subtract the amount u need it’s very simple because of the storage amount

Write a program that prompts the user to input two POSITIVE numbers — a dividend (numerator) and a divisor (denominator). Your program should then divide the numerator by the denominator. Lastly, your program will add the quotient and the remainder together.

Answers

function divide(num, den, rem) { //Numerator, Denomenator, Remainder

 rem = Math.abs(num) % Math.abs(den)

 return rem

}

console.log(divide(13, 5)) // logs '3'

Math.abs() is a function to make the integer a positive integer so that negative integers cant be divided

'rem' gets the remainder


Which of the following types of networks can be used to connect different office
locations of one large company?
Local Area Network (LAN)
Wide Area Network (WAN)
Metropolitan Area Network (MAN)
Controlled Area Network (CAN)

Answers

The option that is a types of networks can be used to connect different office locations of one large company is option b: Wide Area Network (WAN).

What do you mean when you say "WAN" (wide area network)?

A wide area network, or WAN for short, is a sizable information network unconnected to a particular region. Through a WAN provider, WANs can make it easier for devices all around the world to communicate, share information, and do much more.

It is a telecommunications network that covers a substantial geographic area is referred to as a wide area network. Leasing telecommunications circuits is a common way to set up wide area networks.

Therefore, The option that is a types of networks can be used to connect different office locations of one large company is option b: Wide Area Network (WAN).

Learn more about Wide Area Network (WAN) from

https://brainly.com/question/14959814
#SPJ1

Please write in Python

Answers

A program that returns the price, delta and vega for European and American options is given below:

The Program

import jax.numpy as np

from jax.scipy.stats import norm

from jax import grad

class EuropeanCall:

   def call_price(

       self, asset_price, asset_volatility, strike_price,

       time_to_expiration, risk_free_rate

           ):

     

The complete code can be found in the attached file.

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1

What are some options you can set when adding a border? Check all that apply.
O line type
O border margins
O row height
Ocolumn width
Oline weight
O where to apply the border

Answers

I think it’s the column width :)

The automation paradox states: “The more automated machines are, the less we rely on our own skills.” But instead of relying less on automation to improve our skills, we rely even more on automation.” Elaborate further on the skills we would lose as automation is implemented.

Answers

The skills we would lose as automation is implemented are:

Communication Skills. Social Skills. Critical ThinkingThe use of Imagination and Reflection.

What takes place if automation takes over?

The Automation can lead to lost of jobs, as well as reduction in wages.

Note that Workers who are able to  work with machines are said to be the ones that will be more productive than those who cannot use them.

Note that  automation tends to lower both the costs as well as the prices of goods and services, and thus they makes consumers to be able to feel richer as well as loss of some skills for workers.

Therefore, The skills we would lose as automation is implemented are:

Communication Skills. Social Skills. Critical ThinkingThe use of Imagination and Reflection.

Learn more about automation from

https://brainly.com/question/11211656

#SPJ1

Answer: Automation will elimate problem solving skills and communication skills.

Explanation: With the inability to solve problems we lose the skill of using our imaginationa and allowing our brain cells to grow. When you figure out and solve a problem your brain gains more knowledge and you are exercising your brain cells, if you don't use them you will lose them and your inability to make decisions well because there is now AI doing it for you. Also communication one being writing if we no longer have to write with pen and paper we lose the ability to communicate properly in writing our grammer becomes poor and handwriting will no longer be a skill because you never use it.

If you forget your password for a website and you click [Forgot my password], sometimes the company sends you a new password by email but sometimes it sends you your old password by email. Compare these two cases in terms of vulnerability of the website owner.

If the site tells you what your password was, that means the site is storing your password rather than just a hash of it. This means that anyone who gains access to the site’s password database has access to all the passwords. If the site sends you a temporary password, there is a good chance it is not storing actual passwords, which is the correct approach from a security perspective.

Answers

I believe the first one is better but in regards to the two cases in terms of vulnerability of the website owner, one can say that when the owner to  the site is breached into, a lot of people's account will be breached into also and personal information stolen.

Why the above idea?

If a person is said to click forgot password button on a site, the  email that is said to have their old password will be sent a new Passwords from the website in question.

But this is one that is not often secure based on the fact that the system admins and programmers  will be seeing the  password.

On the  other hand, let say  the site sends a new password without carrying out any kind of proper validation and whoever that has asked  for the new password, the new password may fall into the hands of those who it is being sent to and this may be an intruder therefore, it is one that is also risking website owners and users as well.

Hence, I believe the first one is better but in regards to the two cases in terms of vulnerability of the website owner, one can say that when the owner to  the site is breached into, a lot of people's account will be breached into also and personal information stolen.

Learn more about System hack from

https://brainly.com/question/23294592
#SPJ1

a) Explain why there are more general-purpose registers than special purpose registers.

Answers

Answer:

Special purpose registers hold the status of a program. These registers are designated for a special purpose. Some of these registers are stack pointer, program counter etc. General purpose registers hold the temporary data while performing different operations.

PBL projects are graded using what it tells you what you are doing very well and where you may need improvements

Answers

Answer: a rubric

Explanation:

A rubric is a scoring tool that explicitly describes the instructor's performance expectations for an assignment or piece of work

............................

Answers

Honestly yeah. .-- .... .- -

Answer:

................. kinda?

Explanation:

Most of the devices on the network are connected to least two other nodes or processing
centers. Which type of network topology is being described?

bus

data

mesh

star

Answers

The network topology “mesh” is being described. In terms of computer science, a kind of topology where devices connect to 2+ nodes is called mesh.

In Java, System is a:

Answers

Answer:

In Java, System is a:

one of the core classes

Peter has a box containing 65 red and blue balls. Counting them, he realizes that there is a ratio of 3 red balls to 10 blue balls. How many blue balls does he have in total?

Answers

The answer would be 5 because elf the amount of blue and red balls

He started out with 47 balls after winning 2 blue balls and losing 3 red balls.

What is equation?

The definition of an equation in algebra is a mathematical statement that demonstrates the equality of two mathematical expressions. For instance, the equation 3x + 5 = 14 consists of the two equations 3x + 5 and 14, which are separated by the 'equal' sign. Coefficients, variables, operators, constants, terms, expressions, and the equal to sign are some of the components of an equation.

The "=" sign and terms on both sides must always be present when writing an equation. Equal treatment should be given to each party.

Here,

Let the number of blue balls be x and the number of red balls be y,

after 5 days ,

x + 10 = y - 15      

after 9 days ,

x + 18 = 2 * ( y - 27 )  

subtracting both,

8 = y - 39

y = 47

The number of red balls in beginning is 47.

He had 47 balls in the beginning as he win 2 blue ball and lose 3 red balls.

Therefore, He started out with 47 balls after winning 2 blue balls and losing 3 red balls.

Learn more about balls on:

https://brainly.com/question/19930452

#SPJ2

I need help for javascript shopping cart

Answers

A program that creates a virtual online grocery website

The PHP file

<html>

<head>

       

</head>

<body>

<?php

$servername = "localhost";

$username = "///";

$password = "///";

$dbname = "assignment1";

$conn = new mysqli($servername, $username, $password, $dbname);

if ($conn->connect_error) {

   die("Connection error: " . $conn->connect_error);

}

$product_name = "";

$unit_price = "";

$unit_quantity = "";

$in_stock = "";

$itemId = "";

$showNoItem = "display: none";

$showItem = "";

if (isset($_GET['data'])) {

   $itemId = $_GET['data'];

   $sql = "SELECT product_id , product_name , unit_price, unit_quantity, in_stock  FROM products where product_id=".$itemId;

   $result = $conn->query($sql);

   if ($result->num_rows > 0) {

       

       $showNoItem = "display: none";

      $showItem = "";

       while($row = $result->fetch_assoc()) {

           $product_name = $row["product_name"];

           $unit_price =  $row["unit_price"];

           $unit_quantity =  $row["unit_quantity"];

           $in_stock =  $row["in_stock"];

           break;

       }

   } else {

       $showNoItem = "";

       $showItem = "display: none";

   }

} else {

  $showNoItem = "";

   $showItem = "display: none";

}

?>

<div id="noItem" style="<?php echo $showNoItem?>">Select items from categories on the left.</div>

<div id="itemDiv" style="<?php echo $showItem?>">

  <div class="item-title">

       <span class="item-name"><?php echo $product_name?> </span>

       (<span class="item-quatity"><?php echo $unit_quantity?></span>)

   </div>

   <div class="itemDetail">

       <div class="item-desp">

          <div class="in-stock-div">In Stock: <span class="item-in-stock"><?php echo $in_stock?> </span> </div>

           <div class="price-tag-div">Price: <span class="item-price-red">$<?php echo $unit_price ?></span></div>

           <p></p>

           

           <form action="cart.php" method="get" target="cart" class="order-row" onsubmit="return validate_quantity">

               <input type="number" class="item-quatity-input spin0" min="1" value="1" name="display" id="display" onkeyup="addCartButtonCtrl()" >

               <input type="hidden" name="productId" value="<?php echo $itemId?>">

               <input type="hidden" name="productInfo" value='<?php echo "$product_name($unit_quantity)"?>'>

               <input type="hidden" name="productPrice" value="<?php echo $unit_price ?>" >

               <div class="add-cart-div">

                   <input id="cart-button" class="btn btn-primary" type="submit" value="Add to Cart" title="Add to cart." onclick="updateShoppingCart()">

               </div>

           </form>

       </div>

   </div>

</div>

<?php

$conn->close();

?>

</body>

</html>

Adding the CartButton

addCartButtonCtrl(){

$action = $_GET['action'];

           switch ($action) {

               case 'Add':

                  $product_id = $_GET['productId'];

                   $product_name = $_GET['productInfo'];

                   $unit_price = $_GET['ProductPrice'];

                   

                   if(!isset($_SESSION['cart'])) {

                       $_SESSION['cart']=array();

                   }

                   $index = getItemIndex($product_id);

                  if ($index < 0) {

                       $item_array=array('product_id' => $product_id,

                                         'product_name' => $product_name,

                                         'unit_price' => $unit_price,

}

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1

(Geometry: area of a triangle)
Write a C++ program that prompts the user to enter three points (x1, y1), (x2, y2), (x3, y3) of a triangle and displays its area.
The formula for computing the area of a triangle is:
s = (side1 + side2 + side3) / 2
area = square root of s(s - side1)(s - side2)(s - side3)

Sample Run:
Enter three points for a triangle: 1.5 -3.4 4.6 5 9.5 -3.4
The area of the triangle is 33.6

Answers

A C++ program that prompts the user to enter three points (x1, y1), (x2, y2), (x3, y3) of a triangle and displays its area is given below:

The C++ Code

//include headers

#include <bits/stdc++.h>

using namespace std;

//main function

int main() {

//variables to store coordinates

float x1,x2,y1,y2,x3,y3;

cout<<"Please Enter the coordinate of first point (x1,y1): ";

// reading coordinate of first point

cin>>x1>>y1;

cout<<"Please Enter the coordinate of second point (x2,y2): ";

// reading coordinate of second point

cin>>x2>>y2;

cout<<"Please Enter the coordinate of third point (x3,y3): ";

// reading coordinate of third point

cin>>x3>>y3;

//calculating area of the triangle

float area=abs((x1*(y2-y3)+x2*(y3-y1)+x3*(y1-y2))/2);

cout<<"area of the triangle:"<<area<<endl;

return 0;

}

Read more about C++ program here:

https://brainly.com/question/20339175
#SPJ1

Two examples of a relation and their candidate key.

Answers

The two examples of relation and their candidate key are as follows:

STUD_NO in STUDENT relation.FAMIL_EARN in ECoNOMIC relation.

What is the Candidate key?

The candidate key may be defined as a particular kind of field in a relational database that can significantly recognize each unique record independently of any other data.

The candidate key remarkably illustrates the minimal set of ascribes that can uniquely identify given characteristics of the data. More than one candidate key takes place to represent a given set of data and information on the basis of some attributes.

Therefore, the two examples of relation and their candidate key are well described above.

To learn more about Candidate key, refer to the link:

https://brainly.com/question/13437797

#SPJ1

Other Questions
How do I breathe and why is it so hard 20 points How do you write four x cubed and also two x squared with numbers? asap please What can you multiply 4 by to get 120? Should we elect the President by electoral college or by popular vote and why? A/an _______________ may be required for a position such as information technology consultant, information systems manager, or information security analyst. canadian geese migrate essentially along a north-south direction for well over a thousand kilometers in some cases, traveling at speeds up to about 100 km/h. one such bird is flying at 100 km/h relative to the air, but there is a 46.0 km/h wind blowing from west to east. you may want to review (page) . for help with math skills, you may want to review: round each decimal to the nearest whole number 10.76 Solve for XI need help please ____________ is a form of progress which makes use of natural resources to meet today's needs while also preserving and protecting the environment for future generations. Assimilation can be construed as ____________ and accommodation can be construed as ____________ Which test tube has the largest amount of precipitate? record the ratio of cuso4 to na2s used. what is the indicated by the maximum amount of particiapation The quality of a(n) __________ model can be measured by how well it reflects reality and whether it gives us insights that can be used in the real world. As the planets orbit the sun, they are never far from the ____ on the celestial sphere Is there more then one subject on the story The book of the dead by Edwidge Danticat? Thank youuuu Which forest harvest method would leave the forest as close to a natural old growth forest as possible? Is mercantilism controversial? If so, why? There are 900 boys and 300 girls at eqinisweni secondary school. martha claims that 25% of the learners are girls. verify her claim by means of calculations (Geometry: area of a triangle)Write a C++ program that prompts the user to enter three points (x1, y1), (x2, y2), (x3, y3) of a triangle and displays its area.The formula for computing the area of a triangle is:s = (side1 + side2 + side3) / 2area = square root of s(s - side1)(s - side2)(s - side3)Sample Run:Enter three points for a triangle: 1.5 -3.4 4.6 5 9.5 -3.4The area of the triangle is 33.6 e table shows ordered pairs of the function . What is the value of y when ? A 2-column table with 6 rows. The first column is labeled x with entries negative 3, negative 1, 1, 4, 8, 10. The second column is labeled y with entries 14, 10, 6, 0, question mark, negative 12. 20 8 8 48 What does lady macbeth say about her husband? why is her description surprising, considering the description of macbeth in scene ii?