how to write a code that determines if a number is odd or even?
the code should start with a variable declaration

Answers

Answer 1

Answer:

//code in c++

#include <iostream>

using  namespace std;

int main() {

   int a;

   cin>>a;

   if(a%2==0){

       cout<<"Even number";

   }

   else{

       cout<<"Odd number";

   }

return 0;

Explanation:


Related Questions

Please Convert This code into C program.............


public class PrintAllSubArrays {

public void printSubArrays(int [] arrA){

int arrSize = arrA.length;
//start point
for (int startPoint = 0; startPoint //group sizes
for (int grps = startPoint; grps <=arrSize ; grps++) {
//if start point = 1 then
//grp size = 1 , print 1
//grp size = 2, print 1 2
//grp size = 3, print 1 2 3 ans so on
for (int j = startPoint ; j < grps ; j++) {
System.out.print(arrA[j] + " ");
}
System.out.println();
}
}
}

public static void main(String[] args) {
int [] arrA = {1,2,3, 4};
new PrintAllSubArrays().printSubArrays(arrA);
}

}

Answers

Answer:

find the emoji challenge

Explanation:

1234

Difine Motherboard ~





[tex] \: \: [/tex]

Thanku ~~​

Answers

Answer:

A motherboard is the main printed circuit board in general-purpose computers and other expandable systems. It holds and allows communication between many of the crucial electronic components of a system, such as the central processing unit and memory, and provides connectors for other peripherals. 

In this exercise we have to use the knowledge about computers to define the motherboard so we can say that the main printed circuit board of a computer, which contains the central processing unit; logic board.

What is the motherboard definition?

It is the system that unites all the components of a computer, allowing them to work in an organized way. Your piece has all the paths and networks that allow the exchange of information between all the others: processors, memories, storage systems, network card and everything else.

See more about motherboard at brainly.com/question/5563113

What microphone is this

Answers

Answer:

Thats looks like a Sennheiser Pro Audio Wireless Microphone System, Black (MKE600) .  also known as Sennheiser MKE 600

Where you can get it:

https://www.amazon.com/Sennheiser-MKE600-Camcorder-Shotgun-Microphone/dp/B00B0YPAYQ

Youre welcome. (pls give brainlest thanks)

what are the main technologies that have contributed to be growth and commercialization of the Internet

Answers

hope it helps have a good day

A conditional expression is also known as what?
a) Switch Statement
b) Alternative to if-else
c) If-then-else statement
d) Immediate if​

Answers

Answer:

An if-then-else statement

Explanation:

Answer:
C
Conditionssss

Map-reduce Java code for Matrix Multiplication. It should be unique not copied from Internet

Answers

Answer:

that is an example of matrix

A strong west wind is keeping the sea breeze from moving onto Florida’s eastern
shore. How will this wind affect storm activity?
A. It will keep it offshore.
B. It will push it south.
C. It will allow it to move west.
D. It will not allow storms to form

Answers

There are different rates of temperature. The wind affect storm activity as It will allow it to move west.

What is the relationship of the sea and land breeze to the temperature?

It is better to note that the higher the temperature differences between land and sea, the much stronger the land breezes and sea breezes will become.

The Storm surges happens when strong winds push high amounts of water onto land. The Stronger west winds can hinder the sea breeze front from going onshore. Hurricanes do move from east to west.

The average hurricane moves from east to west

learn more about wind from

https://brainly.com/question/392723

Which three nodes are included in the response from the Text Moderation API?

Select all answers that apply.

1. Terms

2. IsImageAdultClassified

3. Classification

4. ReviewerResultTags

5. Expression

6. PII

Answers

Answer:

isimageadultclassified, classification and Reviewerresulttags

What is the overall purpose of the app?

Answers

Answer:

To help students with homework and their education

Explanation:

Brainly is a Polish education technology company based in Kraków, Poland, with headquarters in New York City. It provides a peer-to-peer learning platform for students, parents, and teachers to ask and answer homework questions. In an ideal world, Brainly would be a supportive group learning environment where students could teach each other what they know. ... The point system can encourage students to give valuable answers, but points (and the "Brainliest" title) are awarded by the question asker, not an expert.

It's a rapid sign-up process and, if you're looking for answers for something specific, the search function is simple to use and gives instant gratification. We also like that you can quickly scan for verified answers, which have been vetted by Brainly expert volunteers and are determined to be correct and accurate.

Hope this helped! Have a nice day!

Please give Brainliest when possible!

:3

it’s to help students with homework and questions that are quite specific and it’s also a chance for people to help others with their knowledge to benefit their learning as well as their own!

If the programmer translates the following pseudocode to an actual programming language, a syntax error is likely to occur. Can you find the error?

Declare String 1stPrize
Display "Enter the award for first prize." Input 1stPrize
Display "The first prize winner will receive ", 1stPrize

Answers

Answer:

if, then, else

Explanation:

you specified that if you enter award for 1st prize then it'll display 1st prize but you didnt specify what will happen if user does not enter 1st prize or what happens if 1st prize is not allocated. To me it looks like you got the 'if' and 'then' part correct but you dont have a 'else' part to it therefore it'll create an error when its not declared.

Answer:

begins with a number

Explanation:

The first character of the variable name begins with a number. This is an error because most programming languages do not allow variable names to begin with numbers

6.9 How is it possible for one computer with a low MIPS rating to have a better performance in practice than a computer with a high MIPS rating

Answers

The performance of systems differs. Computers with low MIPS rating to better performance then high MIPS rating  is explained below:

What is the The performance of a system about?

The Millions Instructions per Seconds (MIPS) is said to give the accurate measurements for the speed and work output of computer systems.

One computer with a low MIPS rating  often supports register-to-register operations but computer with a high MIPS rating that is complex set of instruction supports memory-to-memory operations.

Though the two systems can be similar in terms of hardware, Instruction Set Architecture (ISA) and software, the MIPS rating often differs

The performance of a system can be measured based on the amount of the time taken to perform a task and so therefore, the lower the MIPs, the   better performance in practice.

The MIPS is seen as not a good factor to show the performance of a system because not all instructions does the same amount of computation.

Example is When there is a type A processor that is known to have a MIPS rating of 1,000 (high MIPS rating ), and a type B processor that also have an MIPS rating of 500 ( low MIPS rating ).

The type A processor do appears twice as fast as the type B processor but the low MIPS rating option will operating at only half the number of MIPS and as such is faster than high MIPS rating.

Learn more about computer from

https://brainly.com/question/24540334

Write a program that reads an integer, a list of words, and a character. The integer signifies how many words are in the list. The output of the program is every word in the list that contains the character at least once. For coding simplicity, follow each output word by a comma, even the last one. Add a newline to the end of the last output. Assume at least one word in the list will contain the given character. Assume that the list of words will always contain fewer than 20 words.

Answers

The program is an illustration of lists

What are lists?

Lists are variables that are used to hold multiple values

The main program

The program written in Python, where comments are used to explain each line is as follows:

#This gets the integer

n = int(input())

#This gets the character

char = input()[0]

#This creates an empty list

MyList = []

#This following loop gets input for the list

for i in range(n):

   MyList.append(input())

#This iterates through the list    

for items in MyList:

   #This checks if the character is in a list element

   if char in items:

       #If yes, the element is printed

       print(items,end =", ")

Read more about lists at:

https://brainly.com/question/24833629

write a program to input a number and print the largest and smallest number using c++.
please help fast​

Answers

Answer:

#include<stdio.h>

#include<limits.h>

void main()

{

int min,max,i,n,num;

min = INT_MAX;

max = INT_MIN;

 

printf("How many numbers do you want to enter: ");

scanf("%d",&n);

 

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

{

 printf("Number-%d: ",i+1);

 scanf("%d",&num);

 if(num>max) max = num;

 if(num<min) min = num;

}

 

printf("Smallest number = %d\nLargest number = %d",min,max);

}

Explanation:

Chad, a computer programming student, just finished writing a computer program. In order to check whether the program performs the intended task, Chad must convert the source code to an program. Which tool would Chad need for this purpose?

Answers

Answer:

A compiler, Brainiest please

Although there are three well-known operating systems, the most common are Microsoft Windows and Mac OS. Discuss the similarities and differences between these two systems.

Answers

Answer:

There are very few similarities beyond some convergent features of their respective user interfaces. Their internal architecture is very different, differing from kernel models to shell integration to executable formats. A comprehensive list of similarities is neither possible nor useful, because it would consist mostly of obvious statements like "They are both operating systems" or "They both have graphical user interfaces, "They both include

Explanation:

How's that?

2. Discuss the advantages and disadvantages of using the Symbolic Math Toolbox to generate LTI transfer functions.

Answers

Symbolic Math Toolbox is important or organizing and visualizing the dataset.

What is Symbolic Math Toolbox?

It is a toolbox that provides the functions for solving equations, plotting graphs, and manipulating specific math equations.

This toolbox can help run and share some math code as well as different computations.

The advantages of the toolbox include,

It helps summarizes large data sets using frequency distribution Data set are presented in an organized and easy to read format. Dataset that is large can also be visualized and this helps to see the trend of the data set.

Disadvantages include,

Loss of some information on individual data while adjusting datasetSome information can also be lost while organizing data using classes

Learn more on Symbolic Math Toolbox   here,

https://brainly.com/question/17856245

the example of flash drive?​

Answers

Answer:

A data storage device

Explanation:

A data storage device that uses flash memory. ... The definition of a flash drive is a small, rewriteable data storage device that connects to a computer with a USB port. An example of a flash drive is a small memory stick that is kept on a keychain.

Which step of the problem-solving process did the farmer use in order to figure out what success would look like?

Answers

Answer:

supply and demand

Explanation:

As a farmer you rely on demand of food therefore when the market demands you supply and make profit for example during a particular season lets say grapes demand is high so you grow grapes inorder to supply and make profit therefore implementing this strategy the farmer can succeed.

A web application is configured to run on multiple servers. When a webserver goes down, the user connected to it needs to re-login to the application. What could be the likely cause for this behavior

Answers

There are different uses of the computer. The likely cause for this behavior is Browser cookies not shared between servers.

What are browser cookies?

The computer is often used for browsing or surfing the internet.  Cookies are known to be files that has been formed by websites when you visit it.

They are known to make your online experience very easy by saving your browsing information. With the advent of cookies, sites often keep you signed in, and also remember the site you visit most.

See options below

a) Session state maintained by individual servers and not shared among other servers.

b) Browser cookies not shared between servers.

c) Server IP address changes

d) The user has to re-authenticate due to security reasons.

e) Browser using sticky session cookies

Learn more about Browser cookies  from

https://brainly.com/question/14102192

Pls pls answer
I will mark the Brainlyest

Answers

Answer:

Recipient

Explanation:

The recipient is the person that the email is sent to.

Many keyboard shortcuts, such as Ctrl+C, Ctrl+X, and Ctrl+V, are universal, and can be used in a wide variety of applications.
A True
B) False

Answers

Answer: A) True

Explanation:

According to Goog|e, "Keyboard shortcuts are also universal—meaning once you learn them, you can use many of the same shortcuts in a variety of applications. For example, you can use the shortcuts that copy and paste text in a word processor application to perform the same tasks in emails, blogs, or other applications."

I hope this helps!

Explain how interactions between characters develop one of the themes in Cheboygan Day? Explain

Answers

The Cheboygan Daily Tribune is a daily newspaper published Tuesdays through Saturdays in Cheboygan, Michigan, United States. It is owned by Gannett. In addition to the daily newspaper, Gannett also publishes the Shopper's Fair pennysaver and Mackinac Journal, the "magazine of the straits".

How to add text on picture? Write the steps.​

Answers

Answer:

Here r ur steps :-

Explanation:

Download any editing application from Play Store.( nowadays these features come pre installed in ur gallery )

Then open it and tap on add text option.

And then add ur text.

Hope it helps .

Stay safe, stay healthy and blessed.

Have a great day !

Thank you

Basically you just go on the insert tab, in the text group, click text box, drag to draw a text box anywhere near the picture, and then type your text. to change the font or style of the text, highlight the text, right-click it, and then select the text formatting you want on the shortcut menu.


hopefully that helped.

Consider the following code segment.

int[] arr = {1, 2, 3, 4, 5, 6, 7};
for (int i = 1; i < arr.length; i += 2) {
arr[i] arr[i - 1];
}

Required:
What represents the contents of the array arr after the code segment is executed?

Answers

The contents of the array "arr" after the code segment is executed is [1, 1, 3, 3, 5, 5, 7].

What is an array?

An array can be defined as a set of memory locations or data structure on a computer system that comprises a single item of data with each memory location sharing the same name.

This ultimately implies that, the data (elements) contained in an array are all of the same data type such as:

StringsIntegers

From the source code, the array's length is equal to 7. Also, the first iteration of the loop (i = 1) produces the second index of the array and its elements are updated with the previous value.

In conclusion, the contents of the array "arr" after the code segment is executed is [1, 1, 3, 3, 5, 5, 7].

Read more on array here: https://brainly.com/question/19634243

lets do something new​

Answers

Do I hav to subscribe ?

Stay safe, stay healthy and blessed.

Have a great day !

Thank you

i'll subscribe if you will say :-)

Complete the steps for scheduling a meeting.
1. Open a new Meeting window.
2. Enter attendees in the
box.
3. Click Scheduling Assistant.
4. Select
5. Check free/busy time.
6. Click

Answers

Answer:

To, Attendees, Send

Explanation:

Just did it.


In your guessing game, you randomly chose a word from your word list. Complete the code to randomly choose an index found in the list.

import random
count = len(words)
wordIndex =

A. random.random(0,count)
B. random.random(0,count - 1)
C. random.randint(0,count)
D. random.randint(0,count - 1)

Answers

Answer:

the answer is D random.randint(0,count -1)

Explanation:

I took the assignment

Answer: random.randint(0,count - 1)

Explanation: Not necessarily answer D because Edge switches the order of the questions for everyone. Just know its  random.randint(0,count - 1)

Type the correct answer in the box.
What is the output of the formula
=NOT(12+12=24)?“
The output of the formula =NOT(12+12=24) is

Answers

Answer:

(24=24)

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

why is the statement if x=y not working in python

Answers

Answer:

x=1

Explanation:

Re-run your installer (e.g. in Downloads, python-3.8. 4.exe) and Select "Modify". Check all the optional features you want (likely no changes), then click [Next]. Check [x] "Add Python to environment variables", and [Install]

why are women more exposed to mass media?

Answers

Women are more exposed to mass media because their voice is of high frequency which is clear to listen to, and it's soothing and people think it is a safer app or knowledge than that provided by males.

What is mass media?

Mass media is the media responsible for broadcasting or speaking information that reaches a large number or audience. It includes radio, advertisement, movies, magazines, T.V, etc.

Women are more exposed to these mass media because of their voice, which is said to be soothing, and more generous. Their voice is technology friendly.

Thus, due to the fact that women's voices have a higher frequency, are easier to hear, are calming, and are perceived as offering a safer source of information than men's, they are more exposed to the media.

To learn more about mass media, refer to the link:

https://brainly.com/question/14974921

#SPJ2

Other Questions
please help me thank you recommend two ways in which a person should approach conflict resolution to sustain healthy relationships Solve ? (0.7 + y) times 8.7 Which of the following is a possible long-term health effect of stress?0 A. high blood pressureI B. acid refluxI C. shortness of breathD. muscle aches A roll of breakfast sausage weighing 4/5:of a pound is cut into 3 patties of the same size. What is the weight of each patty?NO LINKS!!! Describe how the flow of water changes the temperature at the beach ? What is the domain of the function y = StartRoot x 6 EndRoot minus 7?. PLease help my imma mark brainlist plsssDid the chemical reaction absorb or release energy? How do you know? What time is the green flag for the 2022 daytona 500. Bob is on his first date with mary, whom he really likes. He tries to act in a manner that will cause her to like him, too, and to want to go out with him again. This is an example of:. 6. A car traveled 30 kilometers for 2 hours, what is its speed? A. 15.0km/h B. 28.0km/h C. 30.0km/h C. 60.Okm/h answer :b Each individual outcome of an experiment is called. If you spin the spinner 7 times, what is the best prediction possible for the number of times it will land on pink or yellow? How do you evaluate 35/a. When a =7 There are many ways citizens can influence public policy today. Consider how, with the rise of radio, television, and now the internet, political communication has changed over past decades. In what ways do various forms of media make political communication easier and harder? How does the media play a role in politics?A communication platform such as social media is persuasive, and often works to change or influence opinions when it comes to political views because of the abundance of ideas, thoughts, and opinions circulating through the social media platform. give me branliesat please An image of a rectangular prism is shown below: A right rectangular prism is shown. Part A: A cross section of the prism is cut with a plane parallel to the base. What is the name of the shape created by the cross section? Explain your answer. (5 points) Part B: If a cross section of the prism is cut diagonal to the base, what would be the shape of the resulting cross section? Explain your answer. (5 points) The perimeter of square is 240.What is the length I need help............... What is the author's main claim in Source 1?AConservationists should use pandas to gain public support for their efforts.BThe limited resources available for conservation should be used to protectimportant habitats rather than pandas.CBecause pandas are less hardy than other animals, any efforts to protectthem will eventually fail.DSince extinction is unavoidable, funding should not be used to protect anyspecific species