1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
lisabon 2012 [21]
4 years ago
11

Use a logical OR to write a more concise equivalent of the following code:

Computers and Technology
1 answer:
Ede4ka [16]4 years ago
4 0

Answer:

if(saleAmount >= 300 || areaCode == LOCAL_CODE)

cout << "Delivery available" << endl;

Explanation:

|| operator is known as the logical OR operator in C++. The logical OR operator returns True either one of the operands is True or both of them True. It returns false only when both of the operands are false. The above-written code will print Deliver available when the saleAmount is greater than or equal to 300 or the area code is equal to LOCAL_CODE.

You might be interested in
Why are businesses willing to provide more goods at higher prices
irina1246 [14]
It depends on what kinda "goods" your talking about clothes they don't have a choice cause material costs a lot overall it's their way of getting a lot of money because some people do fall for the prices and their is a lot of competition around some businesses
5 0
3 years ago
Wi-Fi is designed for medium-range transfers, up to ____ feet outdoors. Answer 100 300 500 900
Papessa [141]
Wi-Fi is designed for medium range transfers up to 900 feet out doors. ANSWER: 900 feet
6 0
4 years ago
   In the Start menu of Windows 7, you see your name listed as an option. Where does this shortcut lead if you select it?
ss7ja [257]
I do believe the answer is c. I used to own a computer with a windows 7 program.

5 0
4 years ago
The size of an array (how many elements it contains), which is accessed by .Lenth() returns (Choose the best answer)
Wewaii [24]

Answer:that creates the array, puts some values in it, and displays the values. ... assign a value to each array element and print for (int i = 0; i < anArray.length; i++) ... Array; Array Initializers; Accessing an Array Element; Getting the Size of an Array ... not create an array and does not allocate any memory to contain array elements.

Explanation:

5 0
3 years ago
Comments should
suter [353]

Answer:

Correct answer is:

communicate the purpose of the code that follows it.

Explanation:

Let have a look at each option

comment should give the reader the background of the programmer.

Comments are unable to do so.

Be written on every line

No, it is not need as comment are useful only to explain difficult or complex part of code.

communicate the purpose of the code that follows it.

yes, this option is true, as comments will give hints to programmer about the piece of code.

give information about how many hours it took to write the code

No, comments can answer it,

3 0
3 years ago
Read 2 more answers
Other questions:
  • The part of the computer that contains the brain, or the central processing unit, also knows as the
    5·1 answer
  • "assignment is to create a program that will read a value from an array, and then place this value in another array with the loc
    10·1 answer
  • What was one of the first inventions that made it possible to communicate almost instantly?
    11·1 answer
  • Elisa and Josh need to access General Help. Elisa will press the F1 key. Josh will click on ? in the upper-right corner of the W
    14·2 answers
  • Coupon collector is a classic statistic problem with many practical applications. The problem is to pick objects from a set of o
    14·1 answer
  • After a suspected identity fraud case has been resolved, you should:
    10·2 answers
  • Joe always misspells the word calendar. He types the word as calender but the correct spelling appears on the document. Which fe
    6·1 answer
  • Why are default parameters useful? *This is JavaScript*
    7·1 answer
  • Please answer fast..​
    15·1 answer
  • Read each question below. Then, using the drop-down menus, decide if it represents the purpose, construction, or support aspect
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!