if ordertotal has a value of 50 and quantity has a value of 10, what is the value of discount after these statements are executed? if (quantity

Answers

Answer 1

In order to answer this question, we need to know what the statements following "if (quantity" are. Without knowing the full condition and subsequent action in the if statement, it is not possible to determine the value of discount.

Please provide the full code for us to accurately answer your question.

In general, if statements are used to execute a specific action or set of actions when a certain condition is met. The condition is typically a comparison of two values, and the action is a statement or set of statements that are executed when the condition is true.

For example, if we have the following if statement:

if (quantity > 5) {
 discount = ordertotal * 0.1;
}

This would set the value of discount to 10% of the ordertotal if the quantity is greater than 5. However, without knowing the full if statement in your question, we cannot accurately determine the value of discount.

Learn more about programming: https://brainly.com/question/26134656

#SPJ11


Related Questions

B. State True or False: 1. 'Date within' option allows you to search an email within a specified date range.​

Answers

Answer + Explanation:

his topic describes the email and document properties that you can search for in email items in Exchange Online and documents stored on SharePoint and OneDrive for Business sites by using the Content Search feature in the Security & Compliance Center. You can also use the *-Compliance Search cmdlets in Security & Compliance Center PowerShell to search for these properties

Please have a great day <3

3. write a while loop that sums the values 1 through end, inclusive. end is a variable that we define for you. so, for example, if we define end to be 6, your code should print out the result:

Answers

This while loop adds the value of i to the total each time the loop runs. It starts at i = 1 and adds 1 to i each time until it reaches the value of end (6). The final result is printed, which in this case is 21.

total = 0
end = 6
i = 1
while i <= end:
 total += i
 i += 1
 print(total)

What is loop?

Looping is the process of repeating a set of instructions or statements within a program. It involves running the same code multiple times, with the output of one iteration becoming the input for the next. Loops are an incredibly powerful tool that allow us to iterate over data sets, automate processes, and create complex algorithms. Loops can be used to simplify solutions to complex problems, increase efficiency, and reduce code redundancy.

To learn more about loop
https://brainly.com/question/26667067
#SPJ4

Which part holds the "brains" of the computer?
Monitor

Computer Case

Hard Drive (HDD)

Keyboard

Answers

Computer case holds the brains of the computer.

The latent image in a flat-panel detector is formed by which of the following?A. Trapped electronsB. Charged capacitorsC. Electrical resistanceD. Detector elements

Answers

The latent image in a flat-panel detector is formed by a) Trapped electrons.

In a flat-panel detector, the latent image is formed by a. trapped electrons. When the detector is exposed to radiation, it interacts with the detector material, creating electron-hole pairs. These electrons are trapped in the detector's pixels, and this pattern of trapped electrons represents the latent image. The detector's readout system then processes this information to create a visible image. There are two main types of digital flat-panel x-ray detectors that are based on: - Direct detection that incorporate a photoconductor to produce electrical charges on detection of an x-ray, - Indirect detection that incorporate a phosphor to produce visible photons on detection of an x-ray.

There are two kinds of radiation: non-ionizing radiation and ionizing radiation. Non-ionizing radiation has enough energy to move atoms in a molecule around or cause them to vibrate, but not enough to remove electrons from atoms. Examples of this kind of radiation are radio waves, visible light and microwaves.

Learn more about Radiation: https://brainly.com/question/13934832

#SPJ11

What is your favorite comedy show?

Answers

Answer:

Saturday Night Live or The Tonight Show

Explanation:

What is used by the CPU to execute instructions in a program?

Answers

The CPU uses a combination of hardware and software components to execute instructions in a program.

What is CPU?

CPU stands for Central Processing Unit and it is the brain of the computer. It is responsible for taking instructions from the user and executing them. The CPU processes data and executes instructions to carry out functions such as calculation, data processing, and controlling peripherals.

The hardware components include the central processing unit (CPU) itself, which is responsible for carrying out basic instructions, and other specialized components such as arithmetic logic units (ALUs) and control units (CUs) that perform more complex tasks. The software components include the operating system and compiler, which are responsible for translating instructions into machine code and providing a platform for running programs.

To learn more about CPU

https://brainly.com/question/474553

#SPJ4

how academic skills for teachers help students at the university​

Answers

Academic skills for teachers has help students at the university​ because  with its use,  students are able to have test-taking strategies and understands their courses more better.

Why are academic skills vital for university?

The use of Academic skills is one that act to encourage students so they can be able to be more efficient and better learners.

Conclusively, It is one that give students the power or confidence to be involved fully in any courses that  are useful for them outside of the classroom.

Learn more about skills from

https://brainly.com/question/1233807

what is the difference between moderate and high complexity testing

Answers

The main difference between moderate and high complexity testing lies in the level of intricacy and sophistication involved in the testing process.

Moderate complexity testing refers to testing activities that involve a moderate level of complexity, typically requiring a moderate level of technical expertise and effort. It may involve testing individual components or features of a system, ensuring their functionality and integration with other components. Moderate complexity testing focuses on verifying the expected behavior and functionality of the system within specific boundaries and requirements.

On the other hand, high complexity testing involves more intricate and sophisticated testing scenarios. It may encompass comprehensive end-to-end testing of complex systems or software, simulating real-world usage scenarios, and validating system behavior under various conditions. High complexity testing requires advanced technical skills, extensive test coverage, and meticulous analysis to uncover potential issues, defects, or vulnerabilities in the system.

In summary, moderate complexity testing involves testing at a moderate level of intricacy, while high complexity testing involves more sophisticated and comprehensive testing scenarios.

You can learn more about testing process at

https://brainly.com/question/18763847

#SPJ11

What is one way that cell merging is used?

apply formatting to all cells
center the title
sort data in all cells
make the font larger

Answers

One way that cell merging is commonly used is to A) apply formatting to all cells.

Cell merging allows multiple adjacent cells to be combined into a single larger cell, creating a visually distinct area.

By merging cells and applying formatting to the merged cell, the formatting is automatically extended to all the individual cells that are part of the merged range.

For example, if you have a table with a header row and want to emphasize the title, you can merge the cells of the header row and apply formatting to the merged cell to make it stand out.

This could include applying bold or italic font, changing the background color, or adding borders to the merged cell.

Since the merged cell encompasses the individual cells within the range, the formatting will be automatically applied to all those cells, creating a consistent and visually appealing design.

By merging cells, you can also center the title within the merged cell.

This helps in aligning the title text in a visually pleasing and easily readable manner, ensuring it stands out as the central element of the merged range.

For more questions on cell merging

https://brainly.com/question/1685332

#SPJ8

State one criteria that makes a piece of malware a virus.

Answers

Answer: Self replication

Explanation: Malware is a catch-all term for any type of malicious software, regardless of how it works, its intent, or how it's distributed. A virus is a specific type of malware that self-replicates by inserting its code into other programs.

Which of the following fields are placeholders where users customize content such as enter text, select a date, or check a box?
a.Building Block
b. Document property fields
c. Fill-in field
d. Content control fields

Answers

Content control fields are the placeholders where users can customize content, such as entering text, selecting a date, or checking a box.

So, the correct answer is D.

These fields allow for the creation of interactive and dynamic documents in which users can input their own information. Document property fields store metadata about the document, while fill-in fields enable users to enter specific text during printing or document updates.

Building blocks are reusable document elements, such as text, graphics, or tables. In summary, content control fields provide the functionality to customize content according to user input, making them the most suitable option among the listed fields.

Hence, the answer of the question is D.

Learn more about placeholders at https://brainly.com/question/16920998

#SPJ11

Precisez la nature de l'information logique ou analogique pour chaque exaple ci dessous

Answers

Answer:

Bonjour pourriez vous m'aider svp ?

Précisez la nature de l'information (logique ou analogique pour chaque exemple ci dessous:

a) poids

b) conformité d'une pièce de monnaie

c) niveau d'eau dans une bouteille

d)porte ouverte ou fermée

e) force de pression

f) présence d'une personne dans une pièce

g)position angulaire

h) température inférieur ou supérieur à 15°C

i) vitesse du vent

j) présence de matériaux métallique à proximité

A _______ is a collection of software routines that can be used by other software. Licensing terms for this type of software are important for programmers who use the software.

Answers

Answer: library

Explanation:

A library refers to the collection of software routines that can be used by other software. Licensing terms for this type of software are important for programmers who use the software.

It is the collection of non-volatile resources that is used by computer programs, usually for the development of software.

Why does an annular eclipse occur when the moon is between the sun and Earth, but is too far from Earth for a total eclipse?

Answers

Answer:

Moon Is Far from Earth

Explanation:

The reason we can see the glowing outer edge of the Sun at the maximum point of an annular eclipse is that it happens while the Moon is near its farthest point from Earth, called apogee, when the Moon is smaller than the Sun when viewed from Earth.

Unity can import this transfer file format for models with all them fancy bells and whistles: ___.

Answers

Unity can import the transfer file format for models with all the fancy bells and whistles: FBX.

FBX (Filmbox) is a file format used for the exchange of 3D models, animations, and other digital assets between different software applications. It is widely supported and commonly used in the game development and animation industries. Unity, being a versatile game development engine, supports the import of FBX files. FBX files can contain various elements of a 3D model, such as meshes, materials, textures, animations, and rigging information. By importing FBX files into Unity, developers can leverage the advanced features and capabilities of the format to bring in complex and detailed 3D models with all their associated attributes, allowing for visually appealing and immersive experiences in Unity projects.

You can learn more about 3D models at

https://brainly.com/question/29488125

#SPJ11

To declare other variable types use the same syntax with...

Answers

To declare other variable types, you can use the same syntax with the appropriate data type.

Variable declaration:

1. Identify the data type you want to use for your variable (e.g., int, float, char, string, etc.).
2. Declare the variable by writing the data type, followed by the variable name.
3. (Optional) Assign an initial value to the variable.

Example

For example, if you want to declare an integer variable called "age" and a float variable called "height," you would write:

```c
int age;
float height;
```

If you want to assign initial values to these variables, you can do it like this:

```c
int age = 25;
float height = 5.9;
```

To know more about data type visit:
https://brainly.com/question/30615321

#SPJ11

Helllppppppp plzzzzzzzz

Helllppppppp plzzzzzzzz

Answers

Answer:

i help you

ife ifrt ksd

its a study meeting of girls i am also girl here we only study boy were not allowed because he disturb here we only study its safe meeting of girl

Which organization serves as the principal operations.

Answers

The North Atlantic Treaty Organization (NATO) is the primary organization that serves as the principal operations.

The organization was formed in 1949 and is headquartered in Brussels, Belgium. The main goal of NATO is to provide collective defense to its member countries, which are located in North America and Europe. The organization has 30 member countries and has a military alliance that serves as a deterrent to any potential threats or attacks on its members.NATO's operations are guided by the principle of collective defense, which is enshrined in Article 5 of the organization's founding treaty.

This principle requires that if one member is attacked, then all other members will respond with force to defend that member. This principle has helped to deter any potential threats or attacks on NATO member countries since its founding. NATO has also engaged in various other operations, including humanitarian aid, crisis management, and peacekeeping operations.NATO has played a significant role in maintaining security and stability in Europe since the end of World War II. The organization has also expanded its role in recent years, engaging in operations outside of Europe.

Learn more about NATO: https://brainly.com/question/29553298

#SPJ11

how to fix your account has been disabled in the app store and itunes

Answers

If your account has been disabled in the App Store and iTunes, there are a few things you can do to try and resolve the issue:

How to resolve the issue

Contact Apple Support: They will be able to help you determine the reason for the account disablement and guide you through the necessary steps to regain access.

Check your payment information: Make sure your payment information is up-to-date and accurate. Sometimes, disabled accounts can be the result of payment issues.

Reset your password: If you suspect your account has been compromised, reset your password immediately to prevent further unauthorized access.

Read more about account reset here:

https://brainly.com/question/30249656

#SPJ1

__________ is designed to render a target unreachable by legitimate users, not to provide the attacker access to the site.

Answers

Answer: Denial of Service or DDoS

Explanation: Denial of Service or DDoS attack is designed to render a target unreachable by legitimate users, not to provide the attacker access to the site.

Focusing on the career cluster "Arts, Audio/Video Technology & Communications", which of the following careers is NOT part of this cluster? (Choose all that apply.)

Landscaper
News Reporter
CEO
Actress
Graphic Design Artist
I will give brainliest to right answer

Answers

Answer:

Landscaper

CEO

Explanation:

Arts, Audio/Video Technology & Communications:

Careers including performing arts, acting, dance, visual arts such as animation and graphic design. Includes audio and video careers, such as news reporters, television technicians, and film editors.

difference between cell address and cell pointer​

Answers

A cell is the basic unit in Microsoft excel, which is the space created due to the intersection of the row and column, whereas, a cell pointer is the big black boundary that surrounds the active sale.

Mary Grossman has been selling cupcakes for the past few years. She keeps meticulous record of every cupcake that she has ever made and sold. She has also kept records of customers’ comments on all her cupcakes. These have been entered into a computerized accounting information system that her accountant refers to as a "data warehouse." Mary is considering rebranding her cupcake business and has asked her accountant to identify the top-selling cupcakes for the past few years. Mary wants her accountant to engage in:______.

Answers

Answer:

Data mining

Explanation:

Based on the information given we were told that she is considering the rebranding of her cupcake business in which she asked her accountant to help her identify her top selling cupcakes for the past few years which means Mary want to make use of the large information recorded into the Data warehouse to improve her business.

Hence we can say that she wants her accountant to engage in DATA MINING.

DATA MINING can be defined as the process of making use of information collected or data collected to help know business lapses for the sole aim of improving the business and to help use the data collected to make goods business choices.

Therefore Mary wants her accountant to engage in DATA MINING

is wireless or wired network faster??

Answers

Answer:

Wired

Explanation:

Answer:

Wired!

Explanation:

According to askleo.com, wired connections are almost always faster than wireless! This is of course not talking about wired connections that are old, outdated, in a bad environment, and/or ruined.

Hope this helps! :]

14. A film's rated speed is a measure of its ____ to light.​

Answers

A film's rated speed, also known as ISO or ASA, is a measure of its sensitivity to light.

What is a Film's Rated Speed?

The sensitivity of a film to light can be measured by its rated speed, which is also referred to as ISO or ASA. It is a standardized system used to determine how much light is required to produce a usable image on the film.

A higher ISO or ASA rating means the film is more sensitive to light and will require less light to produce a well-exposed image. This can be useful in low-light situations or when using fast shutter speeds.

However, a higher rating can also result in more visible grain or noise in the final image, so photographers must balance their need for sensitivity with the desired quality of the final image.

Learn more about rated speed of films on:

https://brainly.com/question/30454862

#SPJ1

What properties can be standardized when a theme is applied to a document? check all that apply.

Answers

The properties that can be standardized when a theme is applied to a document, are:

The font styles used in a document.The colors of the text in a document.The color of the pages in a document.

The Benefits of Standardizing Document Themes

Standardizing document themes can be a great way to ensure that documents look professional and consistent. By applying a theme to a document, you can give it a unified look and feel, without having to manually customize each element. This can help save time and energy when creating documents, while also creating a more polished and professional appearance.

One of the main benefits of standardizing document themes is that it allows for greater consistency in formatting. By selecting a theme, you ensure that all elements in the document use the same font styles, colors, and page layout. This eliminates the need to manually adjust each element, as it is already in place. This makes it much easier to create documents quickly and consistently.

Learn more about The Document Themes:

https://brainly.com/question/8565860

#SPJ4

What is malicious code and its types?

Answers

Unwanted files or programmes that can harm a computer or compromise data saved on a computer are known as malicious code. Malicious code can be divided into a number of categories, including viruses, worms, and Trojan horses.

A specific kind of destructive computer code or web script intended to introduce system weaknesses that could lead to back doors, security failures, information and data theft, and other potential harm to files and computing systems is referred to as "malicious code" in this context. Antivirus software might not be able to stop the risk on its own. Computer viruses, worms, Trojan horses, logic bombs, spyware, adware, and backdoor programmes are a few examples of malicious programming that prey on common system weaknesses. By accessing infected websites or clicking on a suspicious email link or file, malicious software might infiltrate a machine.

Learn more about  malicious from

brainly.com/question/29549959

#SPJ4

Which of the following best defines a nested IF statement?

A. formatting that applies to a cell if specific conditions are met

B. a function used to test if a specific condition is true or false

C. an IF function within an IF function

D. specifications to prevent modifications to data

Answers

Answer:

an IF function within an IF function (c)

Explanation:

Magsulat ng ilang mga paalala sa paggawa ng proyektong Series Circuit
1._______________________________________________

2.______________________________________________

3.______________________________________________

4.______________________________________________

5.______________________________________________

PLEASE HELP ME​

Answers

Answer:

mag ingat,dapat d basa ang kamay,ayusin ang posive at negative na hindi maghalo,kong may electric tape mas safe..

Explanation:

yun yung tips ko kasi nakagawa na kami non ay yop 1 yung samin

Find values of $a$, $b$, and $c$ so that the program: 1 a = # fill in 2 b = # fill in 3 c = # fill in 4 for i in range(a,b,c): 5 print(i, end=' ') outputs: 6 10 14 18 22 26 30 In the boxes below, put your value for $a$ in the first box, your value for $b$ in the middle box, and your value for $c$ in the bottom box.

Answers

Answer:

To find the values of $a$, $b$, and $c$ that satisfy the given program and output, we need to determine the pattern in the printed numbers and derive the corresponding values.

The program uses a for loop with a range that starts at $a$, ends at $b$ (exclusive), and increments by $c$. It then prints each value of $i$ in the range.

From the given output (6 10 14 18 22 26 30), we can observe that the numbers are increasing by 4 in each iteration.

Therefore, we can deduce the values of $a$, $b$, and $c$ as follows:

$a = 6$ (the first printed number)

$b = 31$ (the next number after the last printed number, which is 30, plus the increment of 4)

$c = 4$ (the constant difference between the numbers)

So, the values of $a$, $b$, and $c$ are:

$a = 6$

$b = 31$

$c = 4$

Other Questions
How is death perceived in the poem full fathom five thy father lies? explain the type of relationship, direct or indirect, that exists between the parent nuclide, headsium, and time. please answer! What is the product of -2x^3+x-5 and x^3-3x-4?(A) Show your work.(B) Is the product of -2x^3+x-5 and x^3-3x-4 equal to the product of x^3-3x-4 and -2x^3+x-5? Explain your answer. Read and match each incomplete sentence with the correct word or phrase tocomplete it1.el semforoEl peatn pasa cuandoest verde.2.la esquinaLa maestra para con sus estudiantesen3.el peatonLos carros esperan mientrassigue por el cruce decalles.la seal de alto4La oficina de Elena est ende la calle Mar y la calle Sur. Discuss with your peers the similarities as well as the differences you've discovered between Mac OS X and Linux OS.a. Based on your research, discuss the similarities among the Mac OS X and Linux OS hardware requirements. Make sure to include RAM, hard disk space, and graphic card requirements.b. Discuss the hardware incompatibilities between the two. Why does working with Apple hardware eliminates hardware compatibility issues?c. Discuss similar elements between the operating systems of MAC OS X and Linux. Based on your research, why do think the two operating systems share these similarities?d. Discuss some of the similar utility software that Mac OS X and Linux have in common. About how many miles did the Choctaw walk towards the Oklahoma Territory? cardio and strength 9. discuss/explain how strength and conditioning activities impact the cardiovascular system? as the value of the american dollar increases relative to the mexican peso, we expect that international demand for american corn output relative to mexican corn may a. increase b. decrease c. stay the same as international corn demand is independent of the exchange rates d. we cannot tell write the unit of acceleration How do you convert a proton into an electron. Answer in words and math. Find sets of parametric equations and symmetric equations of the line that passes through the two points. (For the line, write the direction numbers as integers.) (1,6,3),(10,11,8) Find sets of parametric equations. (Enter your answer as a comma-separated list of equations in terms of x,y,z, and t.) A 1018in. beam of Douglas-fir larch, dense No. I grade, is used for a 16ft[4.88 m] span. The beam supports a uniformly distributed dead load of 160lb/ft[2.33kN/m] and three concentrated live loads of 4kips [17.8kN] each at the quarter points of the span ( 4ft[1.22 m] on center). Is the beam safe with respect to shear? help, please answer this!! which choice has prokaryotic cells? human blood, E. Coli, Cows liver , or onion root. don quixote and sancho panza have some strange adventures QUESTION:does Don Quixote take revenge on the fallen horsemanwhen he has a chance? why not? what does he do instead?please help me answer it! How many times bigger is 315 compared to 312?Do not include units (times bigger) in your answer. An inserted graphic is excel is What systems were put into place during the creation of our nation? Caring for the children?A. ManB. Woman C. Both How would the brain trust be useful to FDR ?