Assume that ph has been assigned a float. Write an if-else-if statement
that compares ph to
7.0 and makes the following assignments (respectively) to
the variables neutral, base, and acid:
0,0,1 if ph is less than 7
0,1,0 if ph is greater than 7
1,0,0 if ph is equal to 7

Answers

Answer 1

An if-else-if statement that compares ph to 7.0 and makes the following assignments (respectively) to the variables neutral, base, and acid:

0,0,1 if ph is less than 70,1,0 if ph is greater than 71,0,0 if ph is equal to 7

The Program:

ph=int(input("Enter ph value: "))#input ph value

if ph < 7:#defining if block that checks ph value less than 7      

  neutral = 0#holding value in neutral variable    

  base = 0#holding value in base variable    

  acid = 1#holding value in acid variable

elif ph > 7:#defining elif block that checks ph value greater than 7    

  neutral = 0#holding value in neutral variable    

  base = 1#holding value in base variable    

  acid = 0#holding value in acid variable

else:#else block    

  neutral = 1#holding value in neutral variable    

  base = 0#holding value in base variable    

  acid = 0#holding value in acid variable

print(neutral, base , acid)#print value

The above program defines a variable "ph" that inputs an integer value and then follows up with the conditional statement that checks ph values that can be defined

Read more about if-else statements here:

https://brainly.com/question/18736215

#SPJ1


Related Questions

Which command prompt command will enable you to see all the files in the c:\fred folder with the extension exe?

Answers

DIR C:\FRED\*.EXE command prompt command will enable you see all the files in the c:\fred folder with the extension exe.

If you want to see all the files in a specific folder that have a certain file extension, you can use the DIR command in the Command Prompt.

To use the DIR command, you need to specify the path of the folder you want to list the contents of, and then add the file extension you're looking for. So, if you want to see all the files in the c:\fred folder that have the .exe extension, you would use the following command:

dir c:\fred\*.exe

This will list all the files in the c:\fred folder that have the .exe extension.

Learn more on command prompt here:

https://brainly.com/question/25808182

#SPJ4

​ is​ (are) used to process human body characteristics to identify and authenticate individuals for security and access control purposes.

Answers

Biometric scanners​ is​ (are) used to process human body characteristics to identify and authenticate individuals for security and access control purposes.

What are Biometric scanners?

The term Biometrics scanners are known to be a kind of a hardware that is said to be used to take in the biometric which is used  for verification of identity.

Note that they are scans match that are done against the saved database and this is often done to approve or deny access to any given system.

Therefore, Biometric scanners​ is​ (are) used to process human body characteristics to identify and authenticate individuals for security and access control purposes.


Learn more about Biometric scanners from

https://brainly.com/question/13451232

#SPJ1

An operating system is an example of which of the following?
A. Hardware
B.software
C.networking system
D.messaging system

Answers

B. Software.

Operating system is a software the supports a computer’s basic functions.

In a database context, a(n) _____ indicates the use of different names to describe the same attribute.

Answers

In a database context, a synonyms indicates the use of different names to describe the same attribute.

What is a relationship in a database ?

There are said to be three main types of relationships that tend to exist between the data a person are likely to see or find at any stage in a design:. They are:

The one-to-oneThe one-to-manyThe many-to-many.

The synonym is a database object acts by gibing or Providing another name for any database object.

Note that the above are often used to to identify the relationships and a person need to evaluate the data and have an understanding of what what  rules apply to them,

Therefore, In a database context, a synonyms indicates the use of different names to describe the same attribute.

Learn more about synonyms from

https://brainly.com/question/76433

#SPJ1

I Need help with this ASAP

Answers

Answer:It´s B. The code reults in an error

Explanation:

A. in order to calculate the market basket used for the cpi, what information is needed?

Answers

For one to be able to calculate the market basket used for the cpi, the information that is needed are:

The market prices The goods The services purchased by the any household.

What is in a Market Basket?

A market basket is known to be a kind  of a selected composition of goods and services that one can be able to use to tracks the work output or the performance of a particular market or segment.

Note that a popular market basket is seen or called the Consumer Price Index (CPI).

It is one that tends to gives an approximate value for inflation that is known to be based on the average change in regards to price paid for a particular basket of goods and services over time.

Therefore,For one to be able to calculate the market basket used for the cpi, the information that is needed are:

The market prices The goods The services purchased by the any household.

Learn more about market basket from

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

The level of the computer hierarchy that is composed of gates and wires is the ______.

Answers

The level of the computer hierarchy that is composed of gates and wires is Digital logic level.

The level of the computer hierarchy that is composed of gates and wires is the Digital logic level. This is the level where the computer's basic operations are performed. The digital logic level is made up of two main components: the control unit and the ALU.

The control unit is responsible for the management of the computer's resources and for controlling the sequence of operations within the computer. The ALU, or arithmetic logic unit, is responsible for performing the computer's arithmetic and logic operations.

All the basic operations performed by a computer, such as addition, subtraction, multiplication, and division, are implemented at the digital logic level.

Learn more on Digital logic level here:

https://brainly.com/question/8316419

#SPJ4

Activating the ______ will make the trigger stay in the operating mode even when it is released.

Answers

Answer:

Trigger lock

Explanation:

Dexter went to the university library to print history report that was printed on a ____ printer which uses low quality and heat sensitive paper

Answers

Answer:

thermal printer

Explanation:

Dexter went to the university library to print history report that was printed on a thermal printer which uses low quality and heat sensitive paper

What is a thermal printer?

A thermal printer is known to be a kind of a a printer that is said to be compose of the use of heat so that it can be able to make the image on paper.

A a result of its quality of print, speed, as well as technological advances it has said to be used a lot in  airline, banking, and others.

Therefore, when compared to others, it is of low quality and as such,  Dexter went to the university library to print history report that was printed on a thermal printer which uses low quality and heat sensitive paper

Learn more about printer from

https://brainly.com/question/14156130

#SPJ1

A variety of memory cards and flash drives can be classified as _____ storage, which stores data in a nonvolatile, erasable, low-power chip.

Answers

A variety of memory cards and flash drives can be classified as Solid state storage, which stores data in a nonvolatile, erasable, low-power chip.

What are memory cards?

A memory card is known to be  a type of storage device that is known to be used for saving media as well as data files.

Note that this is a tool that helps to give  a permanent as well as non-volatile tool to be able to save data and files from any attached device.

Therefore, A variety of memory cards and flash drives can be classified as Solid state storage, which stores data in a nonvolatile, erasable, low-power chip.

Learn more about memory cards from

https://brainly.com/question/21708725

#SPJ1

were i can use screwdriver

Answers

Answer:

On a screw

Explanation:

The total requests for a web page and are used as a measure of internet traffic are called ______. multiple choice question.

Answers

Answer:

hits

Explanation:

What is the most popular example of specialized software for managing projects?
a) project apple
b) microsoft management
c) tool pert/cpm
d) microsoft project

Answers

The most popular example of specialized software for managing projects is: D) Microsoft project.

What is a software?

A software can be defined as a set of executable instructions that is typically used to instruct a computer system on how to perform a specific task (function) and proffer solutions to a particular problem.

What is Microsoft office?

Microsoft Office can be defined as a processing software application or program that is designed and developed by Microsoft Inc.

Basically, the Microsoft Office comprises different software applications and these include the following:

Microsoft Word.Microsoft PowerPoint.Microsoft AccessMicrosoft ProjectMicrosoft Excel.

In conclusion, the most popular example of specialized software for managing projects is Microsoft project because it can be used by project managers to formulate plans, budget, distribute resources and monitor project progress.

Read more on Microsoft project here: https://brainly.com/question/2704239

#SPJ1

If using the md5 hashing algorithm, what is the length to which each message is padded?

Answers

Answer:

512 bits.

Explanation:

If using the md5 hashing algorithm, what is the length to which each message is padded?

The answer is 512 bits

hope this helps

Write a conditional that decreases the value associated with shelf_life by 4 if the value associated with outside_temperature is greater than 90.

Answers

A conditional that decreases the value associated with shelf_life by 4 if the value associated with outside_temperature is greater than 90 is: if outside_temperature > 90:

shelf_life -= 4.

What is a conditional statement?

A conditional statement can be defined as a type of statement that can be written to have both a hypothesis and conclusion. This ultimately implies that, a conditional statement typically has the form "if P then Q."

Where:

P and Q represent sentences.

Based on the information provided, a conditional which decreases the numerical value that is associated with shelf_life by 4 if the numerical value associated with outside_temperature is greater than 90 would be written as follows:

if outside_temperature > 90:

shelf_life -= 4.

Read more on conditional statement here: https://brainly.com/question/14844178

#SPJ1

When error messages indicate that the windows registry is corrupted and you cannot boot from the hard drive, what tool or method is the first best option to fix the problem?

Answers

The tool or method is the first best option to fix the problem is Use bootable media to launch Windows RE and use System Restore to apply a restore point.

What is the command about?

If  Windows 7 registry is known to be corrupted and a person is unable to boot from the hard drive, one can be able to fix the problem by the use of commands that can be obtained from the Windows Recovery Environment to be used to recover the registry from backup.

Therefore, The tool or method is the first best option to fix the problem is Use bootable media to launch Windows RE and use System Restore to apply a restore point.

Learn more about Windows registry  from

https://brainly.com/question/10621447

#SPJ1

When error messages indicate that the Windows registry is corrupted and you cannot boot from the hard drive, what tool or method is the first best option to fix the problem? The second-best option?

Use bootable media to launch Windows RE and use System Restore to apply a restore point.

Use bootable media to launch Windows RE and perform a startup repair.

Use bootable media to launch Windows RE and then use commands to recover the registry from backup.

Refresh Windows using a system image or custom refresh image.

When is the possibility of solar weather affecting terrestrial weather the highest?(1 point)

during solar minimum
during solar minimum

during the solar cycle
during the solar cycle

during solar maximum
during solar maximum

during Total Solar Irradiance
during Total Solar Irradiance

Answers

The possibility of solar weather affecting terrestrial weather the highest is option c: during solar maximum.

Does solar weather have an effect on terrestrial weather?

There are different forms of weather on Earth, this is one that ranges from the surface of the planet out unto the outer space.

Note that Space weather as well as terrestrial weather are known to be influenced by the little  alterations that the Sun undergoes during its solar cycle.

Hence, The possibility of solar weather affecting terrestrial weather the highest is option c: during solar maximum.

Learn more about solar weather from

https://brainly.com/question/15279276

#SPJ1

Since the ntfs file system enjoys more widespread compatibility with other operating systems, it is often used on removable devices such sd cards and usb flash drives.
a. true
b. false

Answers

Answer: false

Explanation:

As a technical support rep, michael is responding to a customer's question sent to him via e-mail. what should michael's first task be?

Answers

As a technical support rep, Michael's first task will be option b: Determine the purpose of the message he will send as a response.

Who is a technical support rep?

The role or duty of a Technical Support is known to be any person that tends to troubleshoot customer tech issues.

Note that they are said to be people who often resolve issues that are linked to computers, phones, tablets, and others.

Therefore, As a technical support rep, Michael's first task will be option b: Determine the purpose of the message he will send as a response.

Learn more about technical support  from

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

See option

a. conduct any necessary research

b. determine the purpose of the message he will send as a response

c. Hit the "reply" button

d. start composing his reply

1.21 lab: divide by x write a program using integers user_num and x as input, and output user_num divided by x three times. ex: if the input is:_________

Answers

A program using integers user_num and x as input, and output user_num divided by x three times is given below:

The Program

#include <stdio.h>

int main(void) {

  int userNum;

  int x;

  int ans1;

  int ans2;

  int ans3;

 

  scanf("%d", &userNum);

  scanf("%d", &x);

 

  ans1 = userNum/x;

  ans2 = ans1/x;

  ans3 = ans2/x;

 

  printf("%d %d %d\n", ans1, ans2, ans3);

  return 0;

}

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1

Which of the following is NOT a possible result of personal information being located on an unsecure network?

Answers

The option that is not a possible result of personal information being located on an unsecure network is a computer virus is downloaded to the network.

What is an unsecure network?

An unsecured network is known to be a term that connote that a given network can be compromise at any time.

Note that this is said to be one that is refers to as a free Wi-Fi (wireless) network and it is one that tells that there is no form of special login or screening process to be able to get on the network, and as such you and anyone else can use it.

Therefore, based on the above, The option that is not a possible result of personal information being located on an unsecure network is a computer virus is downloaded to the network.

Learn more about unsecure network  from

https://brainly.com/question/14806619

#SPJ1

Q.

Which of the following is NOT a possible result of personal information being located on an unsecure network?

answer choices

A computer virus is downloaded to the network

A persons financial information is downloaded to social media

A persons identity is stolen

A computer hacker breaks into the network and downloads information

In a print statement, you can set the ________ argument to a space or empty string to stop the output from advancing to a new line. newline end separator stop

Answers

In a print statement, you can set the end argument to a space or empty string to stop the output from advancing to a new line. newline end separator stop.

What is a print statement?

The print statement is known to be an element or a tool that is often used to send output to a given standard output unit.

This can be your monitor, or even your printer  of a given computer system.

Therefore, In a print statement, you can set the end argument to a space or empty string to stop the output from advancing to a new line. newline end separator stop.

Learn more about print statement from

https://brainly.com/question/27221616

#SPJ1

what are the limitations of the current thecnology​

Answers

Answer:

Disadvantages of Technology in Education

Learning Is Becoming More Expensive. Times have changed a lot in terms of education. ...

Insufficient Teaching Methods. ...

Misguiding Information. ...

Extra Distractions for Students. ...

Inefficient Learning by Students. ...

Technology Sometimes Fails. ...

Makes Cheating Easier. ...

Final Thoughts.

28-Oct-2020

Which format specifier transforms the variable pi to have only two decimal places in the output?

Answers

Console.WriteLine(pi.ToString("N2")); format specifier transforms the variable pi to have only two decimal places in the output.

Did you know that you can use the "N2" format specifier to transform the value of the pi variable to have only two decimal places in the output?

It's easy to do - simply use the Console.WriteLine method and pass in the value of pi with the "N2" format specifier.

Here's an example:

Console.WriteLine(pi.ToString("N2"));

This will output the value of pi as "3.14".

You can also use this format specifier with other numeric data types, such as floats and doubles. So if you want to limit the output of a float or double to two decimal places, you can use the "N2" format specifier.

Learn more here:

https://brainly.com/question/14425911

#SPJ4

Acute exacerbation of addison's disease can lead to ecg changes and cardiovascular collapse as a result of electrolyte imbalance secondary to:_________

Answers

Acute exacerbation of Addison's disease can lead to ECG changes and cardiovascular collapse as a result of electrolyte imbalance and also as a consequence of low blood volume due to the K retention and/or Na excretion.

What is Addison's disease?

Addison's disease is a disorder associated with the faulty secretion of several hormones, which are fundamental to maintaining the homeostasis of the body (state of equilibrium) in normal conditions.

This disease (Addison's disease) is associated with electrocardiogram (ECG) changes due to arrhythmia caused by electrolyte imbalance issues, which is a process that depends on positive ion particles such as potassium K and sodium Na in normal concentration levels

In conclusion, acute exacerbation of Addison's disease can lead to ECG changes and cardiovascular collapse as a result of electrolyte imbalance and also as a consequence of low blood volume due to the K retention and/or Na excretion.

Learn more about Addison's disease here:

https://brainly.com/question/13840401

#SPJ1

_____ are tools that track the memory usage, status, and errors of currently running software.

Answers

Process managers are tools that track the memory usage, status, and errors of currently running software.

What is a process management?

Process Management is known to be a term that is often called Business Process Management (BPM).

It is seen as  a kind of an organizational discipline that gives tools and resources that is said to be used for examining , defining, optimizing, monitoring, etc., of interdependent business processes.

Therefore, Process managers are tools that track the memory usage, status, and errors of currently running software.

Learn more about Process managers from

https://brainly.com/question/869693

#SPJ1

A student who wants to work with computers but does not have a strong aptitude for math might find a good fit by pursuing a(n)___systems degree.

Answers

A student who wants to work with computers but does not have a strong aptitude for math might find a good fit by pursuing a(n) information technology systems degree.

What is information technology meaning?

Information technology (IT) is known to be a term that connote the use of any form of computers, storage, as well as networking and other forms of physical devices, infrastructure and processes to be able to make, process, save as well as, secure and pass all kinds of electronic data.

Therefore, A student who wants to work with computers but does not have a strong aptitude for math might find a good fit by pursuing a(n) information technology systems degree.

Learn more about information technology from

https://brainly.com/question/25110079

#SPJ1

strong aptitude for math might find a good fit by pursuing a(n)____ systems degree.

reads a line of input, including leading and embedded spaces, and stores it in a string object.

Answers

A getline reads a line of input, including leading and embedded spaces, and stores it in a string object.

What is a Getline?

The term  C++ getline() is known to be a kind of  standard library function that  is known to be used by a programmer to be able to read a string or a line usually from an input stream.

It is said to be an aspect  of the <string> header. The getline() function tends to obtain or extracts characters from the input stream and attach it to the string object.

Therefore, A getline reads a line of input, including leading and embedded spaces, and stores it in a string object.

Learn more about string object from

https://brainly.com/question/17157424

#SPJ1

________ reads a line of input, including leading and embedded spaces, and stores it in a string object.

Select one:

a. cin.get

b. getline

c. cin.getline

d. get

e. None of these

In __________ write, the data are stored in the cache, and control returns to the caller.

Answers

In an asynchronous write, the data are stored in the cache, and control returns to the caller.

An asynchronous write is a write operation that does not block the caller until the data is actually written to the underlying storage. The data is instead stored in the cache, and control returns to the caller. When the data is eventually written to the underlying storage, the write is said to be "completed".

Asynchronous writes can be useful in situations where blocking the caller is not desirable, or where the time to complete the write is not known in advance. For example, an application that is writing data to a slow storage device may choose to use an asynchronous write in order to avoid blocking the caller while the data is being written.

Learn more about Asynchronous write here:

https://brainly.com/question/10057909

#SPJ4

Which new technology is a result of advances in artificial intelligence? O A. High-speed internet B. 5G networks C. Smart appliances D. Self-driving cars ​

Answers

The  new technology that is said to be a result of advances in artificial intelligence is known to be option D. Self-driving cars.

What is the artificial intelligence?

The term Artificial intelligence (AI) is known to be the ability or power of any given  computer or a robot that is said to be handled as well as controlled by a computer to be able to carry out tasks that are said to be often done by humans due to the fac that they need human intelligence and also their discernment.

Therefore, based on the above, The  new technology that is said to be a result of advances in artificial intelligence is known to be option D. Self-driving cars.

Learn more about artificial intelligence from

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

Other Questions
Solve (85)45 step by step A land plant may be most reliably distinguished from green algae by which characteristic? Which of these was a prerequisite for the large empire of Sargon of Akkad? 3/4 + 7/8 + 3/4 + 1/2 + 7/8 What attitude toward medical doctors does the following paragraph reveal? What kind of person might write such a paragraph?If I had cancer, I would not submit to chemotherapy. I watched my mom have chemotherapy, and it made her so nauseated and so weak that she often said, I cant take this anymore. I cant see why it would be beneficial to put what is obviously a strong poison into any human body. Surely, nature has better ways of curing cancer than chemotherapy. Doctors are just too tunnel-visioned to use natural herbs to help cure cancer. They think that only prescriptions you get through pharmaceutical companies can possibly be effective; yet, I know someone who was cured of breast cancer by drinking a quart of carrot juice every day. Some liquid in a jar can be separated by physical means into two separate liquids, which can then be separated no further. the liquid is a(n)? HELP ASAP!!!Evaluate the polynomial for the given value by using synthetic division.P(x) = 3x4 - x + 7x - 2 for x = 4 and x = -2A.802; 52B.-238; 32C.730; 40D.202; -44 How have courts traditionally dealt with new technologies and their evidentiary impact on the criminal trial? If taxpayers were given a tax rebate, what impact would this have on the aggregate demand curve? The graph shows the percentage of garbage that was recycled between 1991 and2013 Patient had a neutrophilia, shift to the left, toxic granulation, toxic vacuolization and dohle bodies. this is characteristic in:_________ Which reasons would be appropriate for performing a lumbar puncture (lp) on a client? one, some, or all responses may be correc Antonio is walking home late from school after football practice. He hears someone running behind him and turns, thinking it might be a teammate catching up. But it is definitely not a friend. Whoever it is hits Antonio on the head with something heavy. The blow knocks Antonio to the ground. The attacker grabs Antonios phone and demands his wallet. Head spinning, Antonio hands it over, and the assailant runs off. Antonio gets to his feet, dizzy. His teammate, Javier, runs forward to help. Did you see the person who attacked you? I was too far away to tell who it was. I got a good look at his face, Antonio replies, but it wasnt someone I know. He was really tall and wearing a dark hoodie, Javier says. Maybe that will help. If you were the police officer working with Antonino and Javier, how would you help them remember what they saw and identify a suspect? After you write your initial response, read through those of your peers and see if you can come up with other suggestions or ideas for how to improve their answers. Why is Act III considered the climax of Julius Caesar? Brutus makes the decision to kill Caesar. Caesar makes the decision to go to the Senate. Calpurnia makes the decision to allow Caesar to leave. Cassius makes the decision to include Antony in the conspiracy. Find the next item in thepattern:-3, 6, -12, 24, ... If tina had mentioned that she was just diagnosed with pneumonia, what would you have expected to find during percussion? The nurse expects to find which pathologic change in a patient with pulmonary arterial hypertension (pah)? You are a stakeholder who has just designated a business function as critical. what must you do now? Is a process that helps managers identify desired outcomes and formulate feasible plans to achieve their objectives? An instructor gives a short quiz involving 10 true-false questions. To test the hypothesis that the student is guessing the following decision rule is adopted :