Write an if-else statement to describe an integer. Print positive even number if iseven and ispositive are both true. Print positive number if iseven is false and ispositive is true. Print not a positive number otherwise. End with newline.

Answers

Answer 1

The positive number if is even is false and the positive is true. Print, not a positive number otherwise. End with a newline. C code is the answer.

How, support your answer?

#include <stdio.h>

#include <stdbool.h>

int main(void) {

int userNum;

bool is Positive;

bool is Even;

scanf("%d", &userNum);

isPositive = (userNum > 0);

isEven = ((userNum % 2) == 0);

if(isPositive && isEven){  printf("Positive even number");}

else if(isPositive && !isEven){

 printf("Positive number");}

else{ printf("Not a positive number");

}printf("\n");

return 0;

Thus, this could be the answer.

To learn more about integer. click here:

https://brainly.com/question/2114800

#SPJ1


Related Questions

________ is malware that hijacks a user's computer and demands payment in return for giving back access.

Answers

Ransom  malware that hijacks a user's computer and demands payment in return for giving back access.

What is Ransom malware?

This is known to be a kind of  malware that hinders users from gaining in or access to their system or personal files and it is one that often demands ransom payment so as to get access.

Therefore, Ransom  malware that hijacks a user's computer and demands payment in return for giving back access.

Learn more about Ransom  malware from

https://brainly.com/question/27312662

#SPJ12

How do you set form control properties?
A. Right-click the form in the Navigation pane, and then select Edit Controls.
B. Open in Design or Layout view, click the Design tab and then select Tools group.
C. Open in Form view, click the Design tab and then select Tools group.
D. Open in Design or Layout view, click the Arrange tab, and then select Tools group.

Answers

Answer:

Answer : B. open design tab

what is the size of the rc.conf file in bytes

Answers

Answer:

It is 281 bytes.

In the case above, the size of the rc.conf file in bytes is said to be 281 bytes.

What is rc conf file?

The rc. conf file is known to be a file that often specifies the kind of services that needs to  be enabled in course of system startup by the startup scripts that was invoked by /etc/rc (see rc(8)), and that also ashutdown scripts that is said to be invoked by /etc/rc. shutdown.

Note that In the case above, the size of the rc.conf file in bytes is said to be 281 bytes.

Learn more about bytes from

https://brainly.com/question/6835146

#SPJ11

an estimated _____ percent of all college students suffer from ptsd.

Answers

An estimated amount of nine (9) percent of all college students suffers from PTSD.

What is the meaning of Post Traumatic Stress Disorder (PTSD)?

Post-traumatic stress disorder (PTSD) is a mental health disorder caused by experiencing a traumatic incident.

It can emerge after experiencing or witnessing a traumatic incident from symptoms includes from such as:

Flashbacks from accidents or war,Nightmares,Acute anxiety, as well as Uncontrolled thoughts from abuse.

According to statistics, it is estimated that nine (9) percent of all college students suffer from PTSD.

Learn more about Post Traumatic Stress Disorder here:

https://brainly.com/question/13097232

#SPJ12

8. When “arc rated” clothing is worn it must allow for what

Answers

When "arc rated" clothing is worn by a worker it must allow for movement and visibility.

What is an arc rated" clothing?

An arc rated" clothing can be defined as a type of personal protective equipment (PPE) that is worn by a worker, so as to protect him or her from arc flash injuries when working on energized equipment and de-energizing equipment.

According to the Occupational Safety and Health Administration (OSHA), when "arc rated" clothing is worn by a worker it must allow for movement and visibility.

Read more on OSHA here: brainly.com/question/17199752

#SPJ1

30 POINTS FOR THE ANSWER FAST
For this discussion, you are going to walk through the process of completing an estimate to come up with a budget and timeline for a logo, letterhead, envelope, and invoice. Your client is a pet sitter who operates out of her home. She walks, boards, and grooms dogs. What would you charge your client? How long do you think it will take you? What programs will you use? Where will you print it?

Answers

Answer:

Sorry I don't know the answer.

Mrs. Ferrar is an older woman with a limited income. Which programs and services may assist her with obtaining healthy meals and becoming more physically active? check all that apply

Answers

The programs and services that may assist her with obtaining healthy meals and becoming more physically active are:

1. food stamps or SNAP

2. food banks

5. community parks

6. community gardens

What are food stamps?

A food stamps is known to be a kind of voucher that is often issued very cheap by the state for low income and it is often exchangeable for food.

Note that The programs and services that may assist her with obtaining healthy meals and becoming more physically active are:

1. food stamps or SNAP

2. food banks

5. community parks

6. community gardens

See options below

food stamps or SNAP

food banks

WIC

NSLP

community parks

community gardens

Learn more about food stamps from

https://brainly.com/question/1085704

#SPJ12

Which network lets its users send and receive data as if their devices were connected to the private network even if they are not?

Answers

Answer:

Virtual Private Network, also known as VPN

Explanation:

A VPN connects a private network to a public network like the Internet. It lets users to send and receive data over public network systems as if their electronic systems were directly linked to the private network, benefits from the private network's capabilities, encryption, and administrative rules. A VPN is built by using dedicated connections, virtual tunneling technologies, or data encryption to construct a virtual point-to-point connectivity.

VPNs securely link a company's geographically disparate locations, forming one unified network. Individual Internet users also utilize VPN technology to safeguard their wireless activities, evade geo-restrictions and censorship, and link to proxy servers to secure their personal identity and location. VPN is a security mechanism that is best suited for individual user connections rather than secure connections of a variety of embedded devices.

An 802. 11 frame contains a number of fields. Which field describes the version of 802. 11 that is being used?

Answers

The field that describes the version of 802.11 that is being used is the frame control.

What is frame contol?

It should be noted that the frame contol field contains a number of subfields used to describe the frame and processing.

In this case, the field that describes the version of 802.11 that is being used is the frame control.

Learn more about frame on:

brainly.com/question/10428184

#SPJ12

how often does windows automatically defragment a hard drive or trim a solid-state drive?

Answers

The duration that windows automatically defragment a hard drive or trim a solid-state drive is once a week.

What is windows?

It should be noted that Windows is a separate viewing area on a computer display screen in a system.

In this case, the duration that windows automatically defragment a hard drive or trim a solid-state drive is once a week.

Learn more about windows on:

brainly.com/question/25243683

#SPJ12

what methods could you use to set up printing in an organization?

Answers

The used to set up printing in an organisation are as follows;

Connecting directly to the printer setting up a print serverusing a cloud service to set up printers.

Method for printing in organisation.

There are different method for setting up printing in an organisation.

They include the following;

Connecting directly to the printer : directly connecting a printer; From small to large organizations, you have lots of ways to set up a printer.setting up a print serverusing a cloud service to set up printers. There are numerous cloud service that could render this service like goggle.

learn more on printing here: https://brainly.com/question/14668983

#SPJ11

at the data link layer, which type of network address is used to identify the receiving node?

Answers

Answer:

MAC address

Explanation:

The MAC address is a local 48 bit address that is unique to every device. It is found at the Data link layer unlike IP address that is found at the Network layer, the MAC address will not change.

The MAC address, type of network address is used to identify the receiving node.

What is A MAC address?

This is known to be a kind of physical address that is often given to each network adapter in a computer, or any kind of mobile device.

This is made up of twelve hexadecimal characters and as such, The MAC address, type of network address is used to identify the receiving node.

Learn more about MAC address  from

https://brainly.com/question/13267309

#SPJ11

Cisco cyber security would classify this email?

Answers

Cisco cyber security would classify this email as security threats.

How do Cisco cyber security classify email security threats?

They classify them as:

Malware Delivery via Spam. Credential TheftBusiness Email Compromise, etc.

Note that in the case above, Cisco cyber security would classify this email as security threats

Learn more about Cisco from

https://brainly.com/question/23388335

#SPJ12

which would you use to get the number of elements in a dictionary?

Answers

The function use to get the number of element in a dictionary is len.

What is a dictionary?

Dictionaries are used to store data values in key-value pairs. Dictionary are ordered.

Dictionary in python are express as follows:

my_dict = {"name": "Michael", "age": 28, "school": "Oxford"}

Therefore, the length of the element of the dictionary can be gotten using the len() function.

Hence,

print(len(my_dict)) will give you the length of the element.

learn more on dictionary here: https://brainly.com/question/14120893

#SPJ11

What are the main differences between openldap and microsoft's active directory (ad)? check all that apply

Answers

The main differences between openldap and microsoft's active directory are:

Open LDAP works on any OS, AD does not.Open LDAP is open-source, AD is not.

What is the openldap and microsoft's active directory?

The LDAP is known to be a kind of an open, vendor-agnostic that functions  with a lot of directory services, such as AD. AD but Microsoft's proprietary directory service is known to often put together a lot of IT assets like computers and its users.

Therefore, The main differences between openldap and microsoft's active directory are:

Open LDAP works on any OS, AD does not.Open LDAP is open-source, AD is not.

Learn more about  active directory from

https://brainly.com/question/24215126

#SPJ12

When did Microsoft released MS-Word 2016? S When did Microsoft released MS - Word 2016​

Answers

Answer:

July 9, 2015

Explanation:

It was released on macOS on July 9, 2015, and on Microsoft Windows on September 22, 2015, for Office 365 subscribers. Mainstream support ended on October 13, 2020, and extended support for most editions of Office 2016 will end on October 14, 2025, the same day as Windows 10.

Which component of a decision support system (dss) enables the dss to perform analysis operations on the information stored in the system?

Answers

A user interface component helps a decision support system (DSS) to analyze information.

What is user interface?

The user interface (UI) is known to be a kind of point of human-computer workings that often show screens, keyboards, a mouse and the depiction of a desktop.

Note that in the case above, A user interface component helps a decision support system (DSS) to analyze information.

Learn more about user interface From

https://brainly.com/question/21287500

#SPJ12

let the value of the variable x be 2, the value of the variable y be 2, and the value of the variable r be 1. which of the following code segments can be used to draw the figure?

Answers

To draw the figure, follow the steps:

drawCircle(x, y, r)drawCircle(x, y + 3, r)drawCircle(x + 3, y, r)drawCircle(x + 3, y + 3, r)

What is the code segment?

A text segment is known to be a code segment that is said to be part of the sections of a program in an object file or in memory, that has executable instructions.

Note that a code segment can be seen as text which is said to be a part of an object file of the program's virtual address system that has a kind of executable instructions.

Therefore, To draw the figure, follow the steps:

drawCircle(x, y, r)drawCircle(x, y + 3, r)drawCircle(x + 3, y, r)drawCircle(x + 3, y + 3, r)

Learn more about code segments from

https://brainly.com/question/25781514

#SPJ11

what is microprocessor ? Why does a computer need microprocessor? Why does a computer need microprocessor ?​

Answers

Answer:

A microprocessor is a computer processor where the data processing logic and control is included on a single integrated circuit. A computer need microprocessors to perform the functions of a computer's central processing unit.

Assume the int variables i, lo, hi, and result have been declared and that lo and hi have been initialized. Write a for loop that adds the integers between lo and hi (inclusive), and stores the result in result. Your code should not change the values of lo and hi. Also, do not declare any additional variables -- use only i, lo, hi, and result. 1 Enter your code

Answers

The loop will be:

int lo, hi, result;

result = 0;

//the loop will be as follows:

for(i = lo; i <= hi; i++)

{

result = i++;

}

What is a loop?

A loop is a sequence of instruction s that is continually repeated until a certain condition is reached.

The above loop means that the integer (i) will start from the value of lo, and stop when the value of i is equal to hi

Learn more about loop on:

https://brainly.com/question/26568485

#SPJ12

why blu rays store more data than dvd

Answers

A Blu-ray disk stores more data than DVD because it uses a blue laser that has a shorter wavelength (405 nm) rather than a red laser (650 nm).

What is a Blu-ray disk?

A Blu-ray disk can be defined as a high-capacity optical disk storage medium that is designed and developed by Sony, Blu-ray Disc Association, so as to record (store), rewrite and play back high definition (HD) video formats.

Based on scientific information, the reason why a Blu-ray disk stores more data than DVD is simply because it uses a blue laser that has a shorter wavelength (405 nm) rather than a red laser with a wavelength of 650 nm used on DVDs.

Read more on Blu-ray disk here: https://brainly.com/question/26699008

#SPJ12

what methods could you use to set up printing in an organization?

Answers

The methods could you use to set up printing in an organization?

One can connect directly to a printer.One can set up a print server.One can use cloud service to set up printers.

What is the aim of printing?

Printing is the act of reproducing text and images  in a lot of quantities through the use of a master form or template.

Therefore, The methods could you use to set up printing in an organization?

One can connect directly to a printer.One can set up a print server.One can use cloud service to set up printers.

Learn more about printing from

https://brainly.com/question/145385

#SP11

Select all the correct answers.
which two statements about network segmentation are true?

can be done at no additional cost

managing segments can be tedious

can add security at each level

ideal for smaller networks

faults are easier to detect

Answers

Answer:

can add security at each levelfaults are easier to detect

The two statements that are true about the market segmentation is that it  can add security at each level and faults are easier to detect. Options C and E are correct.

What is the network segmentation?

Network segmentation is a network security technique that divides a network into smaller, distinct subnetworks that enable network teams to compartmentalize the subnetworks and deliver unique security controls and services to each subnetwork.

Typically, segmentation is done through a combination of firewalls, Virtual Local Area Networks (VLANs), and Software Defined Networking (SDN). VLAN segmentation: Networks are typically segmented with VLANs or subnets. VLANs create smaller network segments that connect hosts virtually.

To implement network segmentation, network teams should start by creating security policies for each type of data and asset they need to protect. The policies should identify each resource, the users and systems that access it, and the type of access that should be provided.

Therefore, option C and E are correct.

Learn more about market segmentation, refer to:

https://brainly.com/question/27993208

#SPJ2

What built-in function should you use in python to prompt a user for data input?

Answers

Answer:

Input( )

Look at the image for how it works.

The built-in function you use in python to prompt a user for data input is the input function.

What is an input function?

An input function is a function used to prompt a user for data input.

The data input may be a string, integer, float, and many more.

Let's use an example of an input function in python.

x = input("what is your name: ")

y = int(input("How old are you: "))

Hence, the first input will prompt the user for the name and the second input will ask the user for his age. It can only accept integers.

learn more on input function here: https://brainly.com/question/17623507

#SPJ12

Assume you have a button control named btndisplaylist. Which is the default name for an event procedure that will be executed when the user clicks on the control?

Answers

The default name for an event procedure that will be executed when the user clicks on the control will be btnDisplayListclick.

What is a default name?

It should be noted that a default name means a name that's assigned to a folder that's created in a computer.

In this case, the default name for an event procedure that will be executed when the user clicks on the control will be btnDisplayListclick.

Learn more about default on:

brainly.com/question/23976472

#SPJ12

What command will prevent all unencrypted passwords from displaying in plain text in a configuration file?.

Answers

Answer:

The service password-encryption command

Explanation:

To prevent all configured passwords from appearing in plain text in configuration files, an administrator can execute the service password-encryption command. This command encrypts all configured passwords in the configuration file

you have a windows server 2016 system that you want to use as a dhcp relay agent. which windows server 2016 service would you use to do this?

Answers

You should use Routing and Remote access of the Windows server 2016 service to make the computer system act as a DHCP relay agent.

What is a server?

A server can be defined as a dedicated computer system that is designed and developed to provide specific services to other computer devices or programs, which are commonly referred to as the clients.

In this scenario, you should use Routing and Remote access of the Windows server 2016 service to make the computer system act as a Dynamic Host Configuration Protocol (DHCP) relay agent.

Read more on Windows server 2016 here: https://brainly.com/question/14584088

#SPJ11

Write an algorithm to calculate the cube of a number

Answers

Explanation:

step 1 - Start

step 2 - Input l

step 3 - Cube =l×l×l

step 4 - Print the cube

step 5 - End

when connecting to a wireless local area network (wlan), what is the most important fact about the service set identifier (ssid)?

Answers

The most important fact about the service set identifier (SSID) is that all the end users and all access points (AP) must be configured with matching SSIDs.

What is SSID?

SSID is an acronym for service set identifier and it can be defined as the generic name given to a wireless local area network (WLAN) connection.

In Computer networking, the most important fact about the service set identifier (SSID) is that all the end users and all access points (AP) must be configured with matching SSIDs.

Read more on wireless local area network here: https://brainly.com/question/13697151

#SPJ11

The iso 14001:2004 standards require documentation of a firm's environmental program. Which component requires a plan to improve performance in resource use and pollutant output?

Answers

The component that requires a plan to improve performance in resource use and pollutant output is the environmental management system.

What is a pollutant?

Pollutant simply means a substance that is harmful to the environment.

In this case, the component that requires a plan to improve performance in resource use and pollutant output is the environmental management system.

Learn more about pollutant on:

brainly.com/question/25537936

#SPJ12

Other Questions
bundling products makes sense for the seller when: According to the tree, which primates share the most recent common ancestor with humans? gorillas chimpanzees bonobos and chimpanzees bonobos and gorillas Fill in the blank. In the triangle below, x=?. Round your answer to two decimal places. Find a the shortest distance from d to b f(x) = 3x + 5; find f(x + 3) - [f(x) + 3] How does water enable substances to pass through a cell membrane? How does water enable substances to pass through a cell membrane ? According to paragraph 4, what efforts have the American colonists already made to negotiate with Britain? Were those efforts successful? Support your answer with evidence from the text. Lee y escoge la opcin con la forma correcta del verbo para completar la frase. Read and choose the option with the correct form of the verb to complete the sentence.Los doctores alientan a que los pacientes ________ sus inmunizaciones para prevenir un brote.O recibanO recibenO reciebanO recibieron can someone pleasee Determine whether it is a function In the meanwhile the little child at Troezen on the other side of the sea had grown to be a man. His name, Theseus, was in everybody's mouth, for he had done great deeds of daring; and at last he had come to Athens to find his father, King Aegeus, who had never heard whether he was alive or dead; and when the youth had made himself known, the king had welcomed him to his home and all the people were glad because so noble a prince had come to dwell among them and, in time, to rule over their city.The springtime came again. The black-sailed ship was rigged for another voyage. The rude Cretan soldiers paraded the streets; and the herald of King Minos stood at the gates and shouted:"Yet three days, O Athenians, and your tribute will be due and must be paid!"Then in every street the doors of the houses were shut and no man went in or out, but every one sat silent with pale cheeks, and wondered whose lot it would be to be chosen this year.The Cruel Tribute,James BaldwinWhat directly causes the Athenians to hide in their homes?the return of springthe arrival of the Cretan soldiersthe arrival of Theseuthe oppressive rule of King Aegeus Read the passage. People need to be careful when shopping online. Now people can buy just about anything they need without having to leave home. People can save time because they no longer need to drive from store to store. People can also save money because they can quickly check the prices on the same products at many different online stores. Then they can buy what they need from the online store with the lowest prices. What do you notice about the structure and organization of the paragraph? The topic sentence does not state the paragraphs main idea. There are many misspelled words. There is no topic sentence. The supporting details are not in a logical order. categorize the following events as part of g1, g0, g2, or s phase of interphase. Give the fact that connects the look below there is image two angles labelled below.Use this fact to find the value of c in degrees ().C74Not to scale Which of the following is a method to preserve both photographs and artworks created with charcoal?O Fixative sprayO Frame with glass and matO Print on glossy paperVarnish (x + ) / (x - y)Do not include parentheses in your answer. What is the area of a regular octagonhaving an apothem of 6 meters and aside length of 7 meters? I have a geometry question thank you! x(x+3)-2(-5x+1)x=x^2-3(4-2x) Courts look at the parties' outward manifestations of intent as a requirement to enforce a contract. This is called the __________ standard of intent.