Question

Can you explain ? It's in python. 

while( i<number):
j=0
while (j<number):
print( sign, end="")
if( sign == "X"):
sign ="0"
else:
sign ="X"
j += 1
i += 1
Expand
Transcribed Image Text

while( i<number): j=0 while (j<number): print( sign, end="") if( sign == "X"): sign ="0" else: sign ="X" j += 1 i += 1

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Engineering

Programing

Related Computer Engineering Q&A

Find answers to questions asked by students like you.

Q: Show that x = xy + xy′ Q. Using truth tables

A: The truth table of xy + xy′.

Q: , explain the potential pipeline hazards (if any) in each of the following code segments. X = R2 + Y...

A: The instruction pipeline with conditional branch will be: S1 will be the fetching the instruction. ...

Q: Explain this program code , In python .

A: Python is a deciphered, object-situated, significant level programming language with dynamic semanti...

Q: What is the result of giving the which utility the name of a command that resides in a directory tha...

A: Utility command  Utility commands can be used to run from the operating system command prompt. Thes...

Q: Write a c++  program to print the values from 0, 1, 2 ….. N, where N is defined as a macro with valu...

A: #include&lt;iostream&gt; using namespace std; #define N 10            //defining macro of name N and...

Q: Suppose we have just found yet another representation for floating-point numbers. Using this represe...

A: Floating-Point Arithmetic: Floating-point arithmetic is the process of adding two decimal numbers e...

Q: Name some advantages of server consolidation. Is server consolidation a good idea for every enterpri...

A: Server Consolidation: Server consolidation is creating logical partitions containing numerous virtua...

Q: A system implements a paged virtual address space for each process using a one-level page table. The...

A: The maximum number of entries in a page table is computed as follows, Maximum number of entries in a...

Q: Write a class Box having three private data members (width, depth, height) The class has three const...

A: public class Box{   //declaring data members private double width; private double depth; private dou...

Q: Q2: A positive integer is entered through the keyboard, write a function to display the Fibonacci se...

A: The program is written in c

Q: Write tests performed on the vertices of polygon edges by Sutherland Hodgeman Polygon Clipping algor...

A: Sutherland Hodgeman Polygon Clipping Algorithm: By calculating its limit overall against the other w...

Q: Q)You are given R function below: TestFunction &lt;- function(df){ M &lt;- rep(0,ncol(df)) for(i in ...

A: There are 2 functions in the given code: 1. TestFunction 2. colMax TestFunction takes the argument d...

Q: 4. using python code use Nevilles method to compute y at x= pi/4 from the data points X=     0     0...

A: Nevilles algorithm: This gives an efficient and simple way of finding the interpolated value of y.If...

Q: Which protocol can provide VoIP services over a Metro Ethernet connection?

A: Voice communication over internet is called as VoIP (Voice over Internet Protocol) or internet telep...

Q: Which option to the rpm command can be used to remove a package from the system?a. –rb. –ec. –ud. –U

A: RPM Package Manager (RPM) is a free and open-source package management framework It alludes to .rpm ...

Q: What do you feel are the limitations of a computer that has no operating system? How would a user lo...

A: In today's world the computer without an operating system is too difficult and the execution of the ...

Q: Assignment #2 Juan and Jose are candidates for the president position in the government election. Ma...

A: juan=int(input('\nNumber of votes recieved by Juan:\t')) jose = int(input('Number of votes recieved ...

Q: Microprocessor development cycle

A: Microprocessor: It is an IC(Integrated circuit) which will process the core functions of the CPU(ce...

Q: Explain the challenges of embedded software development. How do designers answer these challenges?

A: Embedded Software Development Challenges: Some of challenges faced by embedded software development...

Q: Please do completely. Thanks  . A hypothetical computer stores 12 bits of information. The first bit...

A: Actually, the answer has given below:

Q: What memory blocks will be in the cache after the last address has been accessed?

A: There are  4 memory blocks namely : Block 0 Block 1 Block 2 Block 3 Each block has the different t...

Q: Q: Internet is made up of large number of networks. These arrangements determine the topology of the...

A: Network Topology: A network topology is a solution that links computer systems or network devices. P...

Q: Python program please quickly

A: print('\nCalculation\n\n1.\tSum\n2.\tMultiplication\n3.\tDisplay prime number in the limit\n4.\tExit...

Q: Write a heart-rate calculator in C# with the following requirements: While exercising, you can use a...

A: main.cs   using System; class Program {     static void Main(string[] args)     {         Console.Wr...

Q: In each example, when would you use a hash and when would you use an array? Counting the number of ...

A: We have a better choice-hash, so we will use hash to count the number of occurrences of  an IP addre...

Q: Using the priority list T1, T3, T6, T5, T7, T2, T4, schedule the project below with two processors. ...

A: The Task Scheduling Chart is given below for the set of task keeping in mind tasks priorities:- The...

Q: HTML is considered as a. Security-side scripting language b. High-level programming language c. ...

A: The most common security side programming language will be PHP. The most common high level programmi...

Q: Using chapter 1 to 7 from the book C how to program 8 edition Call the user input to accept user inp...

A: Answer: #include &lt;stdio.h&gt;#include&lt;string.h&gt;#include&lt;stdlib.h&gt;//function used to m...

Q: The incomplete box plot and table show some information about some marks.   Use the information in ...

A: The given table information are  Minimum mark is 16 and lower quartile is 24 and median is 24. The m...

Q: 16 Consider a paging system that uses the "Not Recently Used" (NRU) page replacement algorithm. What...

A: 21. FAT stands for File Allocation Table. The size of file BB is 2200 bytes. Each block is of 1024 b...

Q: Given a nonempty unsorted singly linked list with a list_pointer first pointing to the first node in...

A: typedef struct list_node *list_pointer;struct list_node{    int data;    list_pointer link;}; void d...

Q: Please before you start this program should be written on python program    A prime number is a numb...

A: A required Python program is as follows, File name: "main.py" '''Define the function which takes an ...

Q: Explaining the following concepts of Object Oriented Programming with some sample codes using the py...

A: Note:-As per our policy we are only entitled to answer the first three parts of the question at a ti...

Q: Please help me with both questions. 1) You have to specify which of the following parameters before ...

A: Density-based spatial clustering of applications with commotion is an information bunching calculati...

Q: What is the importance of curl of a vector with an application

A: Curl is a measure of how many fields of force can spin you about its axis. This ability depends upon...

Q: Explain transistor.

A: Transistor: A transistor is a semiconductor device used to pass a weak signal from a circuit with a...

Q: Why are CDs especially useful for long-term data storage?

A: A CD (Compact disc) is a portable storage medium that is used for storing data.

Q: 2. Design a simple database application using Python GUI that stores the records of an employee (emp...

A: The program is written in python

Q: Explain why modern computers consist of multiple levels ofvirtual machines.

A: Modern computers having multiple levels of virtual machines Virtual machines divides the tasks to e...

Q: Lists. Create the List.h header file for the following C++ program, and trace showing all output in ...

A: -&gt; For better understanding , created 3 seperate files and inserted in below steps. -&gt; Files :...