When creating an if() statement, when are curly braces required?
A. when there is only one statement line related to the test condition
B. when there are two or more statement lines related to the test condition
C. never
D. always

Answers

Answer 1

Answer:

B. When there are two or more statements lines related to the test condition.

Sorry if I got it wrong.


Related Questions

You add a filter by condition, and set the condition to [Weight]>50. How will this affect your data? in tableau

Answers

It will only show items whose weight is over 50 is the  way it will this affect data. When the computed field is utilized in the filter, only items with a weight greater than 50 are kept.

How do the person filter by condition in Tableau?

There are five steps involved in it that are given below-

In the Filter Window, go to the 'Condition' tab.Select the 'By field' radio button.From the drop-down list, choose the name of the filtered field.Choose an aggregation type from the drop-down menu, such as Sum, Average, or Median.From the drop-down menu, select the operator.

Thus, It will only show items whose weight is over 50

For more details about person filter by condition in Tableau, click here:

https://brainly.com/question/25531734

#SPJ1

The Electronics Communications Privacy Act allows the government to have access to....?

Answers

The Electronic Communications Privacy Act allows the government to have access to a treasure trove of information regarding who you are, where you go, and what you do.

What is Electronic Communications Privacy Act?

Electronic Communications Privacy Act may be defined as a law that determines it is unlawful to wipe or apprehend communication, over wires.

This access to government is accumulated by cell phone providers, search engine operators, social networking sites, and other websites each and every day.

All such network providers track all major activities of individuals through the mode of electronic gadgets.

Therefore, it is well described above.

To learn more about The Electronics Communications Privacy Act, refer to the link:

https://brainly.com/question/14142485

#SPJ1

What is an operating system on an IBM computer?
a. GUI
b. Microsoft Windows
c. Mac OSX

Answers

Answer:

Microsoft Windows

Explanation:

What is CPU? List its major parts.​

Answers

Answer:

The central processing unit is the brain of the computer. it is the part of the computer which performs manipulations. it is also called the microprocessor.

components of the CPU: The control unit, the arithmetic and logic unit, the register and the memory unit.

I hope you understand:-):-)

Complete the sentence about bias and equity.
There is a lack of
in the field of computer science.

Answers

Answer:

diversity

Explanation:

Complete the sentence about bias and equity.

There is a lack of  

diversity

in the field of computer science.

got it right

Answer:Below

Explanation:

Suppose that you have the following definitions:
struct time Type
struct tourType
{
int hr;
double min;
int sec;
string cityName;
int distance;
timeType travelTime;
};
};
a. Declare a variable destination of type tourType.
b. Write C++ statements to store the following data in destination: cityName - Chicago, distance -- 550
miles, travelTime - 9 hours and 30 minutes.
c. Write the definition of a function to output the data stored in a variable of type tourType.
d. Write the definition of a value-returning function tat inputs data into a variable of type tourType.
e. Write the definition of a void function with a reference parameter of type tourType to input data in a
variable of type to tourType

Answers

Suppose that you have the following definitions:struct time Type struct tourTypen the variable destination of type your type are tourType input(){cout<<"Enter the city, distance and time in hr and min"<>destination.city name;

What is C++ statements?

Expression statements. These statements examine an expression for its aspect outcomes or for its go-back value. Null statements. These statements may be supplied in which a declaration is needed with the aid of using the C++ syntax however in which no motion is to be taken.

#include#includethe use of namespace std;struct timeType;struct tourType;tourType destination;tourType input(){cout<<"Enter the city, distance and time in hr and min"<>destination.cityName;cin>>destination.distance;cin>>destination.travelTime.hr;cin>>destination.travelTime.min;go back destination;}void display()cityName;d.distance = t->distance;d.travelTime.hr = t->travelTime.hr;d.travelTime.min = t->travelTime.min;">int main().

Read more about the variable :

https://brainly.com/question/2804470

#SPJ1

Write short notes on the following:
I. keyboard ii.Control unit iii.printer​

Answers

Answer:

- the Keyboard:

The keyboard is a handheld device used to input alphabet, numbers, symbols and characters to a monitor. It also houses the special manipulative and function keys.

- the Control Unit:

The control unit is a component of the CPU which directs the operation of the processor.

- the Printer:

The printer is an external hardware output device which takes electronic data stored on a device and creates a hard copy.

Briefly explain the importance of doing backup in systems administration and explain in detail any three methods for performing backup!?​

Answers

Answer:

Importance of backup in system administration:

Backups are crucial in system administrations for preserving continuity and protecting against specific types of hardware failures, service interruptions, and human mistakes. To aid a company in recovering from an unexpected catastrophe, backup copies make it possible to restore data to a previous point in time. To safeguard against primary data loss or corruption, it is essential to save a copies of data on a different media. When a system administrator create a backup, he makes a copy of the data that you can restore if your main data is lost. These errors may be the consequence of faulty hardware or software, corrupted data, or a human error like a targeted attack or an unintentional deletion. System backup and recovery is therefore a crucial skill for system administrators as well as the companies they work for.

Three methods for performing backup:

Disk image: A efficient method to back up not only the files and directories but also everything else on the system is by creating a disk image. If a user have a disk image, the user can restore everything, including the operating system, applications, data, and more, so the user won't have to worry about any difficulties. Placing the  disk image-containing DVD into the DVD-ROM to restore the backup. Additionally, just attach an external HDD to the computer if the user have a disk image that they made.External hard drive: The most common backup method is to use an external hard drive or even a USB flash drive. An HDD can be easily, quickly, and affordably backed up. It is effective since consumers may carry their portable backup with them wherever they go. Cloud backup: Cloud backup or Online backup has been around for a while, but not many people really utilize it. But the greatest backup technique by far is cloud backup. The user does not have to worry about hardware problems because their files are saved in the cloud and can be accessed from anywhere because the backups are automatically produced and everything is synchronized. It is one of the greatest methods to backup, especially when you consider that the contents are encrypted and stored securely.

2. Why do old video games have large pixels and images with jagged edges?
Because that was the style at the time.
Because it allowed for larger files.
Because it allowed for smaller files.
Because smaller pixels didn't exist.

Answers

Answer:

A

Explanation:

cuz yea

4.24 LAB: Exact change
Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type per line. The coin types are Dollars, Quarters, Dimes, Nickels, and Pennies. Use singular and plural coin names as appropriate, like 1 Penny vs. 2 Pennies.

Ex: If the input is:

0
or less than 0, the output is:

No change
Ex: If the input is:

45
the output is:

1 Quarter
2 Dimes

Answers

The Exact change program is an illustration of conditional statements;

Conditional statements are used to make decisions

The Exact change program

The Exact change program written in java programming language, where comments explain each action purposes

import java.util.*;

public class Money{

public static void main(String [] args){

Scanner input = new Scanner(System.in);

// Declare Variables

int amount, dollar, quarter, dime, nickel, penny;

// Prompt user for input

System.out.print("Amount: ");

amount = input.nextInt();

// Check if input is less than 1

if(amount<=0)  {

  System.out.print("No Change");  }

else  {

  // Convert amount to various coins

  dollar = amount/100;   amount = amount%100;

  quarter = amount/25;   amount = amount%25;

  dime = amount/10;   amount = amount%10;

  nickel = amount/5;   penny = amount%5;

  // Print results

  if(dollar>=1)    {

    if(dollar == 1) { System.out.print(dollar+" dollar\n");}

  else { System.out.print(dollar+" dollars\n"); }

}

if(quarter>=1){

if(quarter== 1){System.out.print(quarter+" quarter\n");}

else{System.out.print(quarter+" quarters\n");}

}

if(dime>=1){

if(dime == 1){System.out.print(dime+" dime\n");}

else{System.out.print(dime+" dimes\n");} }

if(nickel>=1){

if(nickel == 1){System.out.print(nickel+" nickel\n");}

else{System.out.print(nickel+" nickels\n");}}

if(penny>=1){

if(penny == 1) {System.out.print(penny+" penny\n");}

else { System.out.print(penny+" pennies\n"); }}}}}

Read more about conditional statements at:

https://brainly.com/question/11073037

#SPJ1

of
tion
TCP/IP was developed in the 1960s to enable university scientists to locate other computers on the Internet.
Select one:
O True
O False

Answers

Answer:

True

Explanation:

➪ How many types of Engineering are there in the world ?
⛄​​

Answers

Answer:

in bohot terms engineering can be divided into four main categories chemical civil electrical and mechanical enginearing each of these types of require different skills and engineer education

There are mainly five types of engineers found in the world. Each of them has a different set of skills and knowledge concerning their relative field.

Who is called an Engineer?

An Engineer may be defined as an individual who formats, designs, modifies, and creates machinery or technical equipment like software programs, construction buildings, bridges, etc.

The five types of Engineers are as follows:

Civil Engineers. Chemical Engineers.Electrical Engineers. Mechanical Engineers. Computer Engineers.

Civil engineers deal with the construction of buildings, bridges dams, airports, etc. Chemical engineers are associated with developing the products such as medicines, petrochemicals, plastics, etc.

Electrical engineers design and develop the manufacturing of electrical equipment like navigation systems, radar, communication systems, electric motors, etc.

Mechanical engineers always maintain their focus on manufacturing power-producing and power-using machines like electric generators, gas turbines, refrigerators, air-conditioners, etc.

Computer engineers deal with designing, manufacturing, and examining all software operated within an institution's computer system.

All such types of engineers work in their respective fields for designing, and manufacturing products and their delivery which makes the life of an individual easy, efficient, and reliable.

Therefore, it is well described above.

To learn more about Engineers, refer to the link:

https://brainly.com/question/17169621

#SPJ1

You get a text. It is a reminder from your dentist’s office that you have an appointment tomorrow. It says to type “1” to confirm or “2” to cancel the appointment. You accidentally type a “3” and nothing happens. How could the input validation be improved?

Answers

Answer:

Redo the one you want

Explanation:

Redo the "1" if you are confirming the appointment

Or "2", if you do not.

Do not fret over this worse, comes to worse call your dentist back and explain you hit the 3 by mistake and then tell them your decision .

The layer of the ISO/OSI responsible for source to destination delivery.

Options:
(a) transport
(b) network
(c) data-link
(d) session ​

Answers

Answer:

(b) network

Explanation:

The Network Layer is the OSI Model's third layer. It is in charge of packet transport from source to destination or host to host across various networks. The layer receives data from the transport layer, adds a header to it, and sends it to the data link layer.

What is wrong with this case statement -> case 2:
A. cases must be capitalized
B. cases must use a ; and not a :
C. nothing

Answers

Answer:

C: Nothing

Explanation:

Assuming this case is acting upon a switch on an integral value, there is nothing wrong with this case header.

var x = 10;

switch (x)

{

case 2:

     Console.WriteLine("The value of 'x' is 2!");

}

Why do we need to connect computers"​

Answers

Answer:

batteries cant last connected to nothing forever probably

Numerous engineering and scientific applications require finding solutions to a set of equations. Ex: 8x + 7y = 38 and 3x - 5y = -1 have a solution x = 3, y = 2. Given integer coefficients of two linear equations with variables x and y, use brute force to find an integer solution for x and y in the range -10 to 10.

Ex: If the input is:

8
7
38
3
-5
-1
Then the output is:

x = 3 , y = 2
Use this brute force approach:

For every value of x from -10 to 10
For every value of y from -10 to 10
Check if the current x and y satisfy both equations. If so, output the solution, and finish.
Ex: If no solution is found, output:

There is no solution
Assume the two input equations have no more than one solution.

Note: Elegant mathematical techniques exist to solve such linear equations. However, for other kinds of equations or situations, brute force can be handy.

Answers

The brute strength method determines if each x and y value satisfies both conditions. To do this, we must iterate through each result in the specified range and insert them into both models.

What are Elegant mathematical technique?

ALGORITHM :

1. Take the values of all coefficients and SET flag = FALSE

2. Run a FOR loop for x in range (-10, 11). 11 won't be included.

2a. Inside the first FOR, start the y FOR loop in range(-10,11). 11 won't be included

2b. Inside the y FOR loop, check IF for a particular value of x and y both the equations satisfied.

2c. If yes, set flag TRUE and print values of x and y.

2d. ELSE the flag stays FALSE.

END FOR Y

END FOR X

3. Check if flag = FALSE, then print NO SOLUTION

PYTHON CODE :

a=int(input()) #taking input for each coefficient

b=int(input())

c= int(input())

a1= int(input())

b1= int(input())

c1= int(input())

flag = False

for x in range(-10,11): #checking for all values of x in range -10 to 10

for y in range(-10,11): #checking for all values of x in range -10 to 10

if (a  x + b  y – c == 0) and (a1*x + b1*y - c1 == 0) : #checking if the x and y values satisfy the equation

flag = True #setting the flag if solution is found

print('Solution : x = {-10, 10}, y = {-10, 10}'.format(x,y)) #if they satisfy print x & y

if flag = False : #if flag stays false, that means there is no solution

print('No solution')

OUTPUT : The output is given below.

More about the Elegant mathematical technique link is given below.

https://brainly.com/question/27934739

#SPJ1

Question 7 * What is the default powerpoint standard layout A Blank B Title slide C Title only D. Comparison ​

Answers

Answer:

B. Title slide layout is the default PowerPoint standard layout.

When evaluating an OR operator, what is necessary for execution.
A. Only one condition can be true
B. One condition must be true
C. Both conditions must be true

Answers

Answer:

B

Explanation:

What is the result of the following code?
int x = 1;
switch(x)
{
case 1: printf( "Help" );
case 0: printf( "Me" );
break;
case 2: printf( "Hello World" );
}
A. HelpMe
B. Help
C. Help Me
D. Hello World

Answers

Answer:

B: Help

Explanation:

During the execution of this switch statement, it will print "Help" because that's the only case that matches the value of x, it will not print "Me" because that case does not match, so it will fall through that case into the break statement.

The layer of ISO/OSI model organizes bits into logical data unit

Options:
(a) transport
(b) data-link
(c) network
(d) physical ​

Answers

Answer:

Physical Layer

Explanation:

Physical Layer: It is responsible for the actual physical connection between

the devices. The physical layer contains information in the

form of bits.

work done by computer as per the instructions is called​

Answers

Answer:

The process of storing and then performing the instructions is called “running,” or “executing,” a program. By contrast, software programs and procedures that are permanently stored in a computer's memory using a read-only (ROM) technology are called firmware, or “hard software.”

Explanation:

hope it helps you and give me a brainliest

Answer: A computer obeying its orders

Explanation:

The process of storing and then performing the instructions is called “running,” or “executing,” a program. By contrast, software programs and procedures that are permanently stored in a computer's memory using a read-only (ROM) technology are called firmware, or “hard software.”

What federal law requires manufacturers to put care labels on their garments and fabrics sold by the yard?

Answers

CARE LABELING RULE which requires manufacturers and importers to attach care instructions to garments.

1.- Make a program that loops and perform powers of 5 on each loop.
In each lap the operator is asked IF YOU WISH TO CONTINUE (1 or 0) if the operator enters a zero it will no longer continue to spin. IN CODE C++

Answers

A program that loops and performs powers of 5 on each loop.In each lap the operator is asked IN CODE C++ the C++ Program for the given hassle announcement is as follows:#include the use of namespace std.

What is the energy of a variety of?

The energy of a variety of says how usually to apply the range in a multiplication. Powers also are known as Exponents or Indices. For example, eight^2 might be known as “eight to the energy 2” or “eight to the second one energy”, or simply “eight square.

C++ Program for the given hassle announcement is as follows:#include the use of namespace std;int main() > base;cout << "nEnter the exponent: ";     //asks the user for keyboard input for exponent cin>>exponent;  for (int i = 1; i <=exponent; i++)    //iterate {through|thru|via">via 1 until exponent {       num=num*base; //base is multiplied (e.g. 2*2*2.....n) until n, wherein n is exponent    } cout <<"n"<strength of "<go back 0;}Sample Output:Stdin Inputs

Read more about the loops :

https://brainly.com/question/26497128

#SPJ1

A square QR code contains 40×40 tiny squares (pixels) where each tiny square represents a 0 or a 1. Calculate how many bytes of data can be stored on the QR code​

Answers

Answer:

Explanation:

QR Codes are made of multiple rows and columns. The combination of these rows and columns makes a grid of modules (squares). There can be a maximum of 177 rows and 177 columns which means the maximum possible number of modules is 31,329. With the eye, these are just small squares and mean very little, but the exact arrangement of those modules allows the QR Code to encode its data. This means that, unlike traditional barcodes which are 1 dimensional and use 1 row of lines, QR Codes use 2 dimensions which allows them to store a lot more data in the same area of space.

Build python

Prompt the user for the length,width and height of a room.


Calculate the area of the floor. (length*width)


Calculate the volume of the room. (length*width*height)


Display the area and volume to the user.


Open a file named “roomdata.txt”.


Write the area and volume to the file.

Answers

Answer:

You'd have to create a "roomdata.txt" file before writing to it.

Explanation:

#Python Geometry

lenght = int(input("Enter lenght: "))

width = int(input("Enter width: "))

height = int(input("Enter height: "))

def floor_area(area);

area = 0

area = lenght * width

return area

def room_volume(vol);

vol = 0

vol = lenght * width * height

return vol

print ("Area of floor = ", floor_area, "/n Volume of room = ", room_volume)

f = open ("roomdata.text", "w")

f.write("Area of floor = ", floor_area, "/n Volume of room = ", room_volume)

f.close()

What are three benefits of sharing on social media?

Answers

Answer:

reach more organization

get viral to whole entire nation

it also enhance to people's knowledge and quatable understandment

what are the effects of information systems in the management of corona ?

Answers

The effects of information systems in the above are:

It is used for Remote access and working remotely.Managing supply chain issues.What is impact of information system?

Information systems is one  that has helped to lower the number of levels in an organization by giving managers with a lot of information to monitor larger numbers of workers.

Note that The effects of information systems in the above are:

It is used for Remote access and working remotely.Managing supply chain issues.

Learn more about information systems from

https://brainly.com/question/14688347

#SPJ1

What’s the main purpose of a personality test?

Answers

Answer:

Which of following is not anelectroyte

Personality tests are designed to systematically elicit information about a person's motivations, preferences, interests, emotional make-up, and style of interacting with people and situations.

If 294.00 units are made and demand is 287.00. Your fixed expenses are $1257.00. Your variable cost per unit is $2.25. Your Sales price is 6.49. The variable expenses for the day is?

Answers

If the  294.00 units are made and the cost per unit is $2.25 then variable expenses for the day is $661.5.

Given that 294.00 units are made and the variable cost per unit is $2.25

We have to find variable expenses for the day.

Total variable expenses for the day are a product of the output and the variable cost per unit.

So the variable expenses = no. of output x variable cost per unit

Variable expenses = 294 x 2.25

Variable expenses = 661.5

Hence the variable expenses for the day is $661.5

Learn more about variable expenses here: https://brainly.com/question/8225307

#SPJ10

Other Questions
2 a Which part of the human brain is responsible for controlling each of the following actions? i keeping your balance when you walk ii maintaining your breathing when you are asleep iii making your leg muscles contract when you kick a ball how is an action potential generated ? how many free passes do you get for skipping videos and getting answers Perly and Letty admire Wilson __________ loves them as playmates Which of the following statements would not translate to the equation 8 x = -4?The quotient of eight and a number equals negative four.The solution of a number divided by eight is negative four.Eight divided by a number is equal to negative four.If eight is divided by a number, the result is negative four. why should social media managers begin the budgeting process for their social marketing program well before final budget numbers are settled? How many sublevels inn the second energy level? suppose a worker quits her job in order to look for new work. after a week or two of looking, she finds a new job. during her brief job search, she experienced _____. With no trade, the equilibrium price of grapes is $2 per pound in Macroland and $4 per pound in Econoland. Government leaders in Macroland are negotiating a free trade agreement with Econoland to increase trade between the two countries. Who among consumers and producers is likely to support and who is likely to oppose the free trade agreement Square root of (-16)^2 The theme will be applicable to not all people.O TrueO False Suppose y varies inversely as x, and y = 16 when x = 1/2. Find y when x = 17. What is the difference between the answers when numbers are switched in a subtraction? Write an equation in slope intercept form with the given information.Slope = 4 and goes through point (3,0) Solve for x. Round to the nearest tenth, if necessary Answer question quickly please!!!! Identify and explain at least three factors that contribute to the emergence of primary phase civilization The number N of tree of a given species per acre is approximated by the modelN = 68(10)-0.042above the ground.Use the model to approximate the average diameter of the trees in a test plot when N = 21.7,5 x 40 where x is the average diameter of the trees (in inches) 3 feet A chamber within a bone normally filled with air is a: Need help to understand how to do this.