Ask the user for two numbers. Print only the even numbers between them. You should also print the two numbers if they are even.

Answers

Answer 1

I've included the code in the picture below.

Ask The User For Two Numbers. Print Only The Even Numbers Between Them. You Should Also Print The Two

Related Questions

write a pseudocode to calculate the volume of a cylinder​

Answers

Answer:

10.50, height = 15.01, and pi = 3.1415.

Editing is the process of cutting out the bad parts. True or false?

Answers

Answer:

true

Explanation:

your welcome

Answer:

ttrue ................

6. What will be drawn when we call fo?
def g():
Label("Hi!!, 150, 200, size=24).
def f():
Label("I'm happy", 225, 200, size=24)
[1 point]
O a. 'Hi!
O b. I'm happy
O c. I'm happy Hi!
O d. Hi! I'm happy

Answers

Answer:

d, brainly wants this to be long so hdjddjd

What are 4 apps like giggl? There are lots of portals open and it's so laggy, please give me good alternatives.

Answers

Not sure what that is, but I use Discord, if that's similar.

A network manager is interested in a device that watches for threats on a network but does not act on its own, and also does not put a strain on client systems. Which of the following would BEST meet these requirements?

a. HIDS
b. NIDS
c. NIPS
d. HIPS

Answers

Answer:

Option b (NIDS) is the correct choice.

Explanation:

NIDS helps to detect suspicious internet activity. Throughout order to determine all congestion, along with all network packets, unfaithful user information was indeed probably recommended. They were indeed technologies that are already constructively divided up in less than service providers that ineffectively investigate traffic through the systems on something they have been located.

All those other available options aren't closely linked to the scenario in question. Therefore this obvious response is the correct one.

Of all the database types we have studied, which database seems most appropriate for a startup building a new note-taking app for use in higher education (during class, etc). Why

Answers

Answer:

documents database

Explanation:

This database is most appropriate because we need to remember that a note-taking app would not necessarily need too many functions apart from the basics text input operations.

Also, we need to note that the digital infrastructure required to build a documents database, is very convenient for a startup because they may have lesser resources.

Answer:

Key/Value database

Explanation:

A key/value database is similar to a relational database (a database with a table) but pairs the notes of a user to the username at every session. This session of note-taking or key-value pairing is like a dictionary or hashtable and can be stored in the local system as JSON files.

I need a C++ program to ask the user to put in different numbers until zero is pressed then the program counts the numbers that are put in and finds the sum of the numbers and the negative numbers.

Answers

Answer:

#include <iostream>

using namespace std;

int main()

{

int input = 0;

int count = 0;

int sum = 0;

int sumNegative = 0;

while (true) {

 cout << "Enter a number: ";

 cin >> input;

 if (input == 0) break;

 count++;

 sum += input;

 if (input < 0) {

  sumNegative += input;

 }

}

cout << "Count of the numbers: " << count << endl;

cout << "Sum of all the numbers: " << sum << endl;

cout << "Sum of the negative numbers: " << sumNegative << endl;

}

Explanation:

Your requirements regarding the sum and the negative numbers was a bit vague so I just did something you can probably adjust easily to your liking.

In python:

Assign sum_extra with the total extra credit received given list test_grades. Full credit is 100, so anything over 100 is extra credit. For the given program, sum_extra is 8 because 1 + 0 + 7 + 0 is 8.

Sample output for the given program with input: '101 83 107 90'

Sum extra: 8

Answers

Answer:

Following are the code to this question:

list_val = input()#defining a integer variable for input value

test_grades = list(map(int, list_val.split()))#defining test_grades as a list

sum_extra = -999 #defining sum_extra that holds negative integer value

sum_extra = 0#defining sum_extra that holds value

for y in range(len(test_grades)):#defining a for loop to check range of list  

   if(test_grades[y] > 100):# defining if block that check list value is greater then 100

       sum_extra = sum_extra + (test_grades[y] - 100)#use sum_extra variable to hold extra value and add this value

print('Sum extra:', sum_extra)#print value

Output:

101 83 107 90

Sum extra: 8

Explanation:

In the above code a, "list_val" variable is declared, that uses an input method to input the values and declared a "test_grades" variable that uses a list method to add all values in the list.

In the next step, the "sum_extra" variable is declared, which holds some values and defines a for loop to check the range of the "test_grades", and define a if block, that checks list value is greater than 100. If the condition is true, it will remove the extra value, and add it into the sum_extera variable and add its value, and at the last use, print variable to print its value.

What is 3 1/4 inches in terms of decimal?

Answers

Answer: 3 1/4 inches is inches as a mixed number. Here we will teach you how to convert 3 1/4 inches to decimal, and as an added bonus you will also learn how to convert 3 1/4 inches to decimal foot.

We start by labeling the numbers in 3 1/4 inches as follows: 3 1/4 inches = W N/D inches and then we use the mixed number inches to decimal formula displayed below to convert the mixed number inches to decimal inches:

((W x D) + N) / D

Looking at our labels and the formula, you see that W equals 3, N equals 2, and D equals 3. Therefore, when we enter 3 1/4 inches into our formula we get this:

((3 x 4) + 1)/4

= 3.25 inches

Thus, 3 1/4 inches to decimal is 3.25. Moving on, note that there are 12 inches in a foot. Therefore, to convert 3 1/4 inches to foot, you simply divide the above decimal answer by 12 like so:

3.25 / 12

= 0.270833333 foot

Hope this helps....... Stay safe and have a Merry Christmas!!!!! :D

The mixed fraction  [tex]3\frac{1}{4}[/tex] inches is equal to 3.25 inches in decimal form.

To convert [tex]3\frac{1}{4}[/tex] inches to decimal form, you can add the whole number part (3) to the fractional part ([tex]\frac{1}{4}[/tex]) expressed as a decimal.

First, convert the fractional part to decimal form:

[tex]\frac{1}{4} = 0.25[/tex]

Then add the whole number and the decimal:

[tex]3 + 0.25 = 3.25[/tex]

Therefore, [tex]3\frac{1}{4}[/tex] inches is equal to 3.25 inches in decimal form.

To learn more on Fractions click:

https://brainly.com/question/10354322

#SPJ4

User Interface Design ensures that the interface has elements that are easy to ________________. (Choose all that apply)

Question 1 options:

a) use to facilitate actions


b) change location


c) understand


d) remove


e) access

Answers

Answer:

A, C, D

Explanation:

User Interface (UI) Design focuses on anticipating what users might need to do and ensuring that the interface has elements that are easy to access, understand, and use to facilitate those actions.

i believe it’s acd:) hope this helps

shows a document in its final form: ____ shows a document in its first form.
Final; Original Markup
Original; No Markup
Final Markup: No Markup
No Markup: Original

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

This question is about a feature in Word processing software such as ms word. This feature is related to review the document. While reviewing the document, you can keep the track of changes in the document.

There are different options available to show the markup or not.

If you want to show a document in its final form then you need to select No Markup.

If you want to show a document in its first form then you need to select Original.

So, the correct answer is:

No Markup: Original

You can find these functionalities in Ms word going through the Review tab, then under the Tracking group, and then select these options from Track changes drop down menu.

Assume there are 15 students registered for a history class. You will need to declare an array of the StudentType structure to contain data for all students and another character array with 20 elements to hold the answer key to a test. The history teacher at your school needs help in grading a True/False test. Define a StudentType structure for that.

Answers

Answer:

#include <iostream>

using namespace std;

struct StudentType{

   string studentName;

   int studentId;

}

int n;

char answer[20];

int main(){

   cout<< "Enter the size of the array: ";

   cin >> n;

   StudentType *student = new StudentType(n);

   for (int i = 0; i < n; i++){

       int name;

       int number;

       cin>> name;

       cin >> number;

       student[i].studentName = name;

       student[i].studentId = number;

   }

   for (int i = 0; i < 20; i++){

       cout<< "Enter answers: ";

       cin >> ans;

       answer[i] = ans;

   }

}

Explanation:

The C++ source code has three global variables namely, answer which is an array of character data type, StudentType which is a structure data type and the integer variable n. The main function declares and initializes the dynamic-spaced student array of the structure datatype with the n variable.

What is the output? x = 9 % 2 if (x == 1): print ("ONE") else: print ("TWO")

Answers

The output of the python program written will result in the console displaying ONE.

The program assigns the value of the remainder when 9 is divided by 2 to x

The value of the remainder would be 1

The program is then instructed to display ONE if the value of is one otherwise it should display TWO.

THEREFORE, since the value of x in the program is 1 ; then ONE will be displayed.

Learn more :https://brainly.com/question/4982426

What is eight bits of data called?

Answers

8 bits: octet, commonly also called byte.

Write a program that contains a class to encapsulate a word that is entered by the user. An appropriate accessor method should be written and used. Write appropriate methods to do the following: Convert the word to all lowercase letters. Scramble the word into all possible permutations and store them in a list or array. Sort the permutations in alphabetical order. Display the list of permutations. Report the number of permutations. Test all constructors and methods using a separate driver class.

Answers

Answer:import random

class Word(object):

   def __init__(self):

       self.word = ""

   def set_word(self, word):

       self.word = word

   def lowercase(self):

       self.word = self.word.lower()

   def scramble(self):

       length = len(self.word)

       perm = 1

       for x in range(1, length+1):

           perm *= x

       scrambled = list()

       for i in range(0, perm):

           woo = [x for x in self.word]

           random.shuffle(woo)

           scrambled.append("".join(woo))

       scrambled = sorted(scrambled)

       print(scrambled)

       print(f"Number of permutations: {len(scrambled)}")

d = Word()

d.set_word("under")

print(d.lowercase())

print(d.scramble())

Explanation:

The python program defines a class called "Word" that uses an accessor "set_word" to pass in a string value to the object variable "self.word". The lowercase() method converts the string to lowercase if it is capitalized and the scramble() method returns a list of possible rotations of the letters of the word.

Microsoft Excel is an example of a(n) application.

entertainment
education
communication
productivity

Answers

Answer:

d

Explanation:

Answer:

productivity

Explanation:

u cant just say "A, B, C, or D" cause all the choices are randomized

just for future reference

please tell fast plzzzzzz​

Answers

Answer:

(1001) =9

(45)= 101101

In dynamic programming, the technique of storing the previously calculated values is called A. Saving value property B. Storing value property C. Memoization D. Mapping

Answers

Answer:

C. Memoization

Explanation:

Given that Memoization is a computing strategy that is applied in storing the previously calculated values such that values can easily be recalled to execute similar problems or further problems. It is also used in making recurring algorithms productive

Hence, in this case, In dynamic programming, the technique of storing the previously calculated values is referred to as MEMOIZATION

Dana is moving to a new house. She has 15 boxes for books. Each box can hold up to 22 books. Dana has 375 books. How many more boxes does she need?

Answers

Answer:

3

Explanation:

no of boxes 15

each box hold 22 books

then 15×22=330 books occupied

left books are 375-330=45

so 45÷15=3 boxes will be need

Answers  

12

lbiros

Explanation:

2 2x12

How many assignments would you have failed without brainly?

lol.

Answers

How many assignments would I have failed without brainy? Lol

ALL OF THEM

When you create a table using the Management Studio, the table is automatically stored in the default schema. If you want to transfer the table to a different schema, you can use the which statement?
a. COPY SCHEMA
b. ALTER SCHEMA
c. SET SCHEMA
d. CREATE SCHEMA

Answers

Answer:

b. ALTER SCHEMA

Explanation:

A database management system (DBMS) can be defined as a collection of software applications that typically enables computer users to create, store, modify, retrieve and manage data or informations in a database. Generally, it allows computer users to efficiently retrieve and manage their data with an appropriate level of security.

Database schema is the logical design of a database. In database management, the term "schema" is used to denote a representation of data while the term "instance" is used to denote an instance of time.

A database schema is a structure which is typically used to represent the logical design of the database and as such represents how data are stored or organized and the relationships existing in a database management system. There are two (2) main categories of a database schema; physical database schema and logical database schema.

A Management Studio refers to a software application or program designed and developed by Microsoft Corporation.

When you create a table using the Management Studio, the table is automatically stored in the default schema. If you want to transfer the table to a different schema, you can use the ALTER SCHEMA statement.

Cartesian Coordinate Robot is sometimes called? *

Answers

Answer:

rectilinear

Explanation:

Question 3 of 10
How is plagiarism both easier and harder in the Internet age?
A. It is both easier and harder because you are never sure what is
copyrighted and what is public domain.
OB It is easier because people dont really expect you to follow the
copyright regulations. It is harder to find exactly what you want.
It is easier because you there are too many sources for teachers
to know them all, it is harder because you will be caught.
Dit is easier because you have access to more information. It is
harder to get away with because anyone can conduct a word-

Answers

Answer: D is your answer

Plagiarism is copying someone's work

Plagiarism both easier and harder in the Internet age because you have access to more information. It is harder to get away with because anyone can conduct a word  D is your answer

Answer:

The answer you are looking for would be "B.) It is easier because people don't really expect you to follow the  copyright regulations, but it is harder to find exactly what you want." When you look a question up for an essay, summary, or even a test, the answer you need may not always be on the web, and you may need to visit several different websites to mash together a conclusion on your topic. However, people often copy topics nowadays, and it is easier for them to change a few words and get away with it then every before. Teachers have become much more lenient, therefore it is much easier to plagiarize something.

Write and test a bin2Dec(String binaryString) method to convert a binary string into a decimal number. Implement the bin2Dec method to throw a NumberFormatException if the string is not a binary string

Answers

Answer:

Following are the method to this question:

import java.util.*;//import package for user input

public class Main //defining a class  

{

  public static int bin2Dec(String binaryString) throws NumberFormatException//defining a method bin2Dec that accept string value  

  {

       int r=0,p= 1,i;

       Stack<Integer> s = new Stack<>();//creating Stack object

       for(i = binaryString.length()-1;i>=0;i--)//defining for loop to convert binary to decimal value

       {

           if(binaryString.charAt(i) != '0' && binaryString.charAt(i) != '1')//defining if block to check value

           {

               throw new NumberFormatException();//use throw block to check Exception

           }

           if(binaryString.charAt(i) == '1')//defining if block to check first input is value equal to 1

           {

               s.push(p);//using push method to add value in stack

           }

           p*= 2;//calculating the decimal value

       }

       while (!s.isEmpty())//defining while loop to stack is empty

       {

           r += s.pop();//use r variable to calculate value

       }

       return r;//return value

   }

   public static void main(String[] ax) //defining main method

   {

       Scanner oxb= new Scanner(System.in);//creating Scanner class object for input value

       System.out.print("Enter a binary number: ");//print message

       String b = oxb.nextLine();// defining String variable for input value

       try //defining try block

       {

           System.out.print(bin2Dec(b));//use print method to call bin2Dec method

       }

       catch (Exception e)//use catch block to catch Exception

       {

           System.out.print(b+ "Not a binary number: ");//print message

       }

   }

}

output:

Enter a binary number: 101

5

Explanation:

In the above-given code a method, "bin2Dec" is declared, that accept a string variable in its parameter, inside the method an integer variable and stack class object is created, and this method uses two loops, and in the for loop, it converts the binary to a decimal value, in the while loop it checks all value and adds its value in r variable.

In the main method, a scanner class object is created, that use a string variable to input value from the user-end, and use the try and catch block to call method.

A variable of type unsigned char stores a value of 255. If the variable value is decremented, what exception will occur

Answers

Answer:

No exception will occur

Explanation:

Given

Unsigned Char

Value  = 255

Operation = Decrement

Required

What type of exception occurs?

Let's assume the variable is a.

So, we have that

a = 255

The range of values of an unsigned char a is 0 to 255

So, when a is decremented by 1, the new value of a becomes 254

254 is still within the range of 0 to 255.

Hence, no exception will (or is excepted to) occur

The counter done bit for the count down instruction C5:0 is addressed as ______________________________.

Answers

Answer:

The answer is "C5 : 0/ CTD"

Explanation:

The Count Down is an instruction that counts FALSE-to-TRUE rung transitions. Rung Transitions can be brought about by occasions happening in the program, for example, parts going past an identifier or activating a cutoff switch.

The Count Down order is utilized to check down an occasion which happens consistently or remotely and places that esteem in the counter's Collector in augmentations of 1. The distinction between the Count Down is very straightforward, Count Up tallies up, Count Down checks down. The UN (Check Down Sub-current piece) is set when the aggregated worth folds over to +32, 768 (from - 32,767) and keeps tallying down from that point. The Done  bit is set when the amassed esteem is equivalent to or more noteworthy than the preset worth. Furthermore, the Compact disc (Check Down Empower) is set when rung conditions are Valid and reset when rung conditions go Bogus or when the appropriate RES order is empowered. The UN piece can be reset by the RES order or when the aggregated worth goes over +32,767.

The Count Down order utilizes similar fields as the Count Up order. They contain a counter location (C5: x) with "X" being the counter number, a Preset worth field, and a Collector esteem field. Like the clocks and Count Up the Preset and Accumulator bits are addressable and can be changed or refreshed through inner rationale.

Question 5
2 pts
The type of control structure that
causes a branch forward at some
point, causing a portion of the
program to be skipped, is:
a selection structure.
O a seguential structure
a repetition structure
a loop structure

Answers

Answer:

Selection structure.

Explanation:

In a decision structure (selection structure), there is a branch forward at some point, which causes a portion of the program to be skipped. A loop structure (repetition structure) contains a branch to a previous statement in the program module, which results in a block of statements that can be executed many times.

How does the CSMA/CD protocol resolve when two network adapters on the same network transmit at the same time?

Answers

Answer:

If two network adapters on the same network transmit at the same time, one of the adapters would stop transmitting until the second adapter has finished transmitting before retransmission

Explanation:

Carrier Sense Multiple Access with Collision Detection (CSMA/CD) is a network protocol used to prevent data collision. CSMA/CD detects collisions by sensing transmissions from other nodes. If a collision is detected, the node stops transmitting, sends a jam signal, and then waits for some time until the channel is idle before retransmission.

If two nodes on the network start transmitting at the same time, the nodes will detect the collision and take the appropriate action.

If two network adapters on the same network transmit at the same time, one of the adapters would stop transmitting until the second adapter has finished transmitting before retransmission

Which of the columns (A) to (I) in the truth table below is correct for the expression
¬(r *(qV ¬p))
? (Answer (J) if none of them is correct).
p q r (A) (B) (C) (D) (E) (F) (G) (H) (I)
F F F T T F T F T T T T
F F T F F T T F T F F F
F T F T T F T T T T T F
F T T T F F T T F F T T
T F F F T T F F T T T F
T F T F T T F F F F F T
T T F F T T F F T T T F
T T T F F T F F F F T T

Answers

Answer:

tftftftftftftftftftftftftftftftftftftftftftftftftftftttttftfffftftftftttttfftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftfttftftftftftftftftftftftftftftftftftftftftftftftfttftftftfttfftftftftftftftftftftftftftfttttttttttttttttttttttfffffffffffffffffffftftftfttttttttftftftftftftftftftftftftftftftftftftftftfttftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftfftftftftftftftftfttftftftftftftftftftftftfftftftffftftfftfftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftfftfftftftftftftftftftftftftfftftftftftftftftftftftfftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftfftftftffftftftfftftftftftftftfftftftftftftftftftftftftftftftftfttftftftftftgtftftgtftgtftgtftgtftfftftfftfftfftfftftftftftftftftftftftftftftftftftftftftftfftftftftftftftftftftftftftftftfftfftfftftftftfttfftftftftftftftfftftftftftftftftftftftftftftftftftftftftftftftffftftftftftftftftftftftftftftftfftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftfftftftftftftftftftftftftftftftftfftfftftftftftftftftftftftfftftfftftftftfftftfftftftfftftftftftftftfftftttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt

Answer:

brooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

Explanation:

To connect to devices in another country, you would need to connect to a
WAN
MAN
LAN
PAN

Answers

Answer:

WAN

Explanation:

wide area network

Answer:

To connect to devices in another country, you would need to connect to a WAN

Explanation:

WAN stands for A wide area network which can connect to other countries and broad ranges.

Other Questions
figurative language plz answer all. The rotation of the sun causes the day/night cycle true or false Jeffrey is using a copy machine to make posters for a school play. The machine prints the posters at a constant rate. After 3 minutes, he makes 108 posters. How long it will take Jeffrey to make 396 posters? 3 3/4 divided by 5/7 Which of the following natural resources has supported economic development in the Middle East? A. silver B. timber C. gold D. oil The ___is the variable that determines the value of the output in a function Reflect (-1, 5) over the x-axis.Then translate the result up 2 units.What are the coordinates of the final point? Plzz help me i will give bairnlest frfr and i will give you a 10/10 and a thank you Select the correct answer.Nike shoes has a symbol of a swoosh on all their products whereas Slazenger is symbolized by a black panther. This is an example of what?A. aided awarenessB. product differentiationC. corporate imageD. branding The Wikipedia article on the length of dictionaries suggests there are 171,476 unique words in the English language. How many unique books are possible of length 0, 1, 2, 3, ..., k? Assuming we have a team of 1 billion very fast typists who each write unique books 1 billion times per second, rounded up to the nearest million years, how long will it take this team to write all possible texts of 6 or fewer words? BRAINLIEST!! PLS HELP MEWhat sort of information do you think should be sent to alien civilizations? 1. What is the Least Common Multiple of 2 and 8? Item 10Use the Distributive Property to find 3/416 4/5. HELPPP PLEASE give points (10) HarlemWhat happens to a dream deferred?Does it dry uplike a raisin in the sun?Or fester like a soreAnd then run?Does it stink like rotten meat?Or crust and sugar overlike a syrupy sweet?Maybe it just sagslike a heavy load.Or does it explode? Or fester like a soreWhich sentence shows the meaning of the simile in this poem?A deferred dream is terrifying.A deferred dream is difficult.A deferred dream is sickening.A deferred dream is incomplete. The particles of a substance in which state of matter have the least energy?A. LiquidB. SolidC. GasD. Vapor 5 divided by 7.25 plz show me how you got that answer step by step what happens in chapter 10 of Esperanza Rising? Two firms,A and B,each currently dump 50 tons of chemicals into the local river.The government has decided to reduce the pollution and from now on will require a pollution permit for each ton of pollution dumped into the river. The government will sell 40 pollution permits for $75 each. It costs Firm A $100 for each ton of pollution that it eliminates before it reaches the river, and it costs Firm B $50 for each ton of pollution that it eliminates before it reaches the river. Neither firm produces any less output, but they both conform to the law. It is likely that between the cost of permits and the cost of additional pollution abatement. What is the total cost of reducing pollution if firms are not allowed to buy and sell pollution permits from each other? What is the total cost of reducing pollution if the firms are allowed to buy and sell permits from each other? Which angle number is supplementary to angle