Which for loop syntax is correct?
A. for {i=0, i<10, i++}
{code block}
B. for (i=0; i<10; i++);
{code block}
C. for (i=0; i<10; i++)
{code block}

Answers

Answer 1

Answer:

C

Explanation:


Related Questions

Select the items below that are a computer
Pocket Watch
Server
Calculator
Piano
Laptop
Tablet

Answers

Answer:

Laptop is the answer.. .....

what was the first computer system that used color display?

Answers

Answer:

Year Event

1977 The Apple II, released in June 1977, allowed for colour display on a             CRT monitor.

Explanation:

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!");

}

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.

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:-):-)

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

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:

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:

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

Sorry if I got it wrong.

When an AC voltage is being measured
across a 15-ohm resistor which is carrying
a current of 12 amps,
the selector switch should be set to the AC voltage position of __volts.
A. 1000 B.2 C. 20 D. 200

Answers

Answer:

D.

200

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

True or False?
With search advertising, you should have a landing page with long content (around 2,000 words).
HELPPPPP

Answers

The given statement is True.

What is Search Advertising?

Search Advertising is also known as search engine marketing which is an marketing technique used to place the advertisement in the search engine so that customers can review it.

The Companies who runs the business of the advertising in the search engine get a small amount of pay for such one click.

There is long content on the page of the websites containing the search advertising long with it. Therefore the statement given in the question is true.

Learn more about Search Advertising here:

https://brainly.com/question/8132328

#SPJ1

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()

Why do we need to connect computers"​

Answers

Answer:

batteries cant last connected to nothing forever probably

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.

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

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.”

program that initialises a vector with the following string values: “what” “book” “is” “that” “you” “are” “reading”.

Answers

A program that initializes a vector with the following string values: “what” “book” “is” “that” “you” “are” “reading” are the usage of namespace std;int main().

What is a vector software program?

Vector images software program permits customers to layout and manages pc photos the usage of geometric and mathematical commands, instead of clicks and strokes as utilized in drawing software program. Vector photos created the usage of those applications may be scaled indefinitely with out dropping quality.

#include #include #include the usage of namespace std;int main(); vector::iterator it; for (it = vs.begin(); it != vs.end(); it++) string tmp; while (cin.get()!='n') for (it = vs.begin(); it != vs.end(); it++) }

Read more about the vector :

https://brainly.com/question/25705666

#SPJ1

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

Answers

Answer:

Microsoft Windows

Explanation:

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.

Which statement is true about the energy of electromagnetic radiation?

A.
The frequency of the emitted radiation is inversely proportional to its energy.
B.
The frequency of the emitted radiation is directly proportional to its energy.
C.
The wavelength of the emitted radiation is directly proportional to its energy.
D.
The amplitude of the emitted radiation is inversely proportional to its energy.

Answers

Answer:

b

Explanation:

b

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:

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

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.

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.

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.

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

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

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.

Other Questions
A 4. Which of the following statements is false?All squares are rectangles.All rectangles are parallelograms. All parallelograms are quadrilaterals.All rhombuses are squares A, B C, or D because im not sure How long is buttermilk good for after expiration date. What is the height of a triangle whosebase is 8.2 centimeters and whose areais 173.43 square centimeters? What feature allows the customer to edit the payment date field when viewing an online invoice?. I already worked on most of my question, although, I am just curious about how you would go about finding the fourth power of the square root of 50. Can someone please explain this in detail? Which line from president reagans adress at Moscow state university is a fact? What is the measure of the unknown angle?straight angle divided into a one hundred thirty two degree angle and an unknown angle 48 49 51 53 Use the pointslope formula to write an equation of the line that passes through(-5, -16 )and has a slope of m=3. Write the answer in slopeintercept form (if possible). As a result of hypoxemia and polycythemia, persons with chronic obstructive bronchitis are prone to: Loss of part of the Earth's cryosphere will exert a positive radiative forcing effect on climate change because Group of answer choices the overall albedo of the planet will be decreased. ocean thermal expansion will be increased. less carbon dioxide will be absorbed from the atmosphere by plants. more of the sun's radiation will be reflected into space. The total number of degrees in the center is 360. if all five vertex angles meeting at the center are congruent, what is the measure of a base angle of one of the triangles? 54 72 108 144 When the function f(x) = 3(5)x is changed to f(x) = 3(5)x + 22, what is the effect? (5 points)Group of answer choicesThere will be no change to the graph because the exponential portion of the function remains the same.The y-intercept is 22 spaces higher.The x-intercept is 22 spaces higher.All input values are moved 22 spaces to the right. dentify the method that will be used in solving for x.5 + x = three-fourthsdistributive propertymultiplication property of equalitydivision property of equalitysubtraction property of equality A childs building set contains a brick with dimensions 63 x 31 x 18mm . Assume this brick is a replica of a real brick that has a greatest side length of 23 cm, determine the surface area and volume of the real brick. (Please can someone help me ) Refer to Where Is Niagara Falls? for a complete version of this text.In the introduction to Where Is Niagara Falls? Jim agrees to allow Roger to steer the boat after they pass under the bridge.Which detail best explains why this was a bad idea at that moment?The boat was nearing a dangerous part of the river.It was Rogers first time ever in a boat.Jim grabbed some oars and began to row as fast as he could.He knew all about how to stay safe on the river. Who was a colonial-era minister known for religious tolerance? a 10.00mf parallel-plate capacitor is connected to a 24.0v battery. after the capacitor is fully charged ,the battery is disconnected without loss of any of charge on the plates.a) a voltmeter is connected across the two plates without discharging them.what does it readb)what would the voltmeter read if the plate separationwere doubled? That new techniques are faster and safer has been proved ______________.a. recentlyb. suddenlyc. dramaticallyd. decisively a cuboid has length 18.5 cm, width 9.4 cm a height 6.2 cm. Work out the area of the cuboid