When writing code, how can printing be useful?

Answers

Answer 1

Answer:

See Explanation

Explanation:

Printing while writing code can be useful in several ways.

One of which is to determine the progress of your code. Many a times when you write a code and some parts of your codes are not working as expected, you can use the print statement to track where the program stopped working properly.

Take for instance, you write a program of 50 lines of code and you suspect that the program stops working at line 30, you can use the print statement to track this program.

Please note that: the statement to be printed is not specific but you should make use of something unique that you can easily spot.

E.g

print("It worked up till this point")


Related Questions

only evansandre2007 and elizabetharnold84 can answer

Answers

Answer:

Explanation:

Okie dokie

Have a nice day

Write down the pseudo code for a brute-force algorithm to compare elements in array A with elements in array B.

Answers

Answer:

def brute_force(array1, array2):

   for item in array1:

       for element in array 2:

           if element == item:

               print(f"{element} and {item} are a match")

Explanation:

A brute-force algorithm is a direct-to-solution algorithm that searches and compares variables. It is like trying to unlock a safe but not knowing its four-digit combination, brute-force starts from 0000 through 9999 to get a match.

The python program implements the algorithm using two nested for loops. The first loop iterates over array1 while the second, over array2. For every item in the first array, the program loops through the length of the second array. For every match, the items are printed on the screen.

Melissa has expanded her Cell class further. In which method is she using a special keyword to help distinguish instance variables in the class and print the results?
public class Cell B. public int getchromosomes) if (this.chromosomes<1) private int chromosomes, rna public double time, h2o, mCount private static int cellCount0; throw new llegalArgumentException("chromosomes is less than 1"); return this.chromosomes public Cell(O chromosomes 23; C. public void grow(double x) rna - 1; inc mCount(this,x); return; mCountrna/h2o cellCount++; System.out.printin("There are now" + cellCount +"cells"; public void inc mCount(Cell cell, double factor) this.mCount mCount factor return public Cell(int a chromosomes, int a rna, double a h20) this) chromosomes a chromosomes; rna -a_rna; h2o-a h20 mCount- rna/h2o; D. public double get mCount) return this.mCount; public staic Cell getLargerCell_mCount(Cell cell_1, Cell cell_2) cellCount++ System.out.printin("There are now"+cellCount +"cells"); if(cell_1.get mCount)cell_2.get mCount)) return cell 1; else return cell 2;
A. public void printinfoo System.out.printin("chromosomes:" + this.chromosomes); System.out.printin("rna:" + this.rna); System.out.printin("h2o:"+this.h20);

Answers

Answer:

A. public void printinfoo(){

   System.out.printin("chromosomes:" + this.chromosomes);

   System.out.printin("rna:" + this.rna);

   System.out.printin("h2o:"+this.h20);

Explanation:

The System.out.printin() function is used in Java to print out the output of a program. The first option prints out its output while the other options return the result of their function.

Write a 200 word essay about how a computer is made.

Good luck.​

Answers

Answer:

Essay about how a computer is made is written below in detailed explanation.

Explanation:

After so many discoveries and inventions, Humans ultimately made the computer. And, today some personalities in the world can't exist a bit without a computer.

The computer is an electric device that is utilized for collecting and processing data. The hard work can be completed in a shorter time with the guidance of computers. With the assistance of the computer, we can do all the stuff in today's world.. Because of this, the computer performs a vital purpose in this contemporary life.

what are major classification of computer software​

Answers

Answer:

Application Software.

System Software.

Programming Software.

While application software is designed for end-users, and system software is designed for computers or mobile devices, programming software is for computer programmers and developers who are writing code.

Driver Software.

Explanation:

Typically, there are two major classifications of software, namely System Software and Application Software.

1. System Software

A system software aids the user and the hardware to function and interact with each other. Basically, it is a software to manage computer hardware behavior so as to provide basic functionalities that are required by the user. In simple words, we can say that system software is an intermediator or a middle layer between the user and the hardware. These computer software sanction a platform or environment for the other software to work in. This is the reason why system software is very important in managing the entire computer system. When you first turn on the computer, it is the system software that gets initialized and gets loaded in the memory of the system. The system software runs in the background and is not used by the end-users. This is the reason why system software is also known as ‘low-level software’.Some common system software examples are:

Operating SystemDevice DriversFirmwareProgramming Language TranslatorsUtility

2. Application Software

Application Software, also known as end-user programs or productivity programs are software that helps the user in completing tasks such as doing online research, jotting down notes, setting an alarm, designing graphics, keeping an account log, doing calculations or even playing games. They lie above the system software. Unlike system software, they are used by the end-user and are specific in their functionality or tasks and do the job that they are designed to do. For example, a browser is an application designed specifically for browsing the internet or MS Powerpoint is an application used specifically for making presentations. Application Software or simply apps can also be referred to as non-essential software as their requirement is highly subjective and their absence does not affect the functioning of the system. All the apps that we see on our mobile phones are also examples of Application Software. There is certain software that is exclusively made for app development like Meteor and Flutter. These are examples of Application software too.There are various types of application software:

Word ProcessorsDatabase SoftwareMultimedia SoftwareEducation and Reference SoftwareGraphics SoftwareWeb Browsers

Other than these, all the software that serves a specific purpose fall under the category of Application Software.

However, there exists one more classification of the software. The software can also be classified based on their availability and sharability.

HOPE IT HELPS

PLEASE MARK ME BRAINLIEST ☺️

explain atleast 5 areas where computer applied for the social economic development in society​

Answers

Answer:

The answer is below

Explanation:

Given that socio-economic development has to do with continual positive changes in the socio-economic conditions of individuals, organizations, and society at large.

Hence, the five areas in which computer applied for the social-economic development in society​ are:

1. Capital resources or market: computer has greatly influenced the development of the capital market through various forms including data sharing, CRM software, Online customer service, Video conferencing, customer application development, cloud management services, etc

2. Government activities: computers over the years have improved the efficient operations of government and their activities through various means including the creation of a database, tracking of policies such as building permits, distribution of payments such as aids and palliatives, etc.

3. Business: computer is known to have tremendous influence in business operations including activities of firms in the area of research, marketing, advertisement, production, distribution, data storage, etc.

4. ICT world: computer generally has improved humans' approach and understanding of the ICT and better ways to maximize its usage. This includes the area of electronic information capture, storing, processing, and transfer.

5. Society: computer typically has its huge and direct impact on our society, this includes the development of human and social capital in terms of education, continuous obtainment of knowledge, skills, and mastery of skills that facilitate personal development and satisfaction, economic success and community prosperity.

Your organization uses a federated identity provider to login to your Oracle Cloud Infrastructure (OCI) environment. As a developer, you are writing a script to automate some operation and want to use OCI CLI to do that. Your security team doesn't allow storing private keys on local machines. How can you authenticate with OCI CLI?

Answers

Answer:

Run OCI session authenticate and provide your credentials

Explanation:

The OCI CLI when in combination with a shell script can be fastly used in the creation of shareable scripts. It uses API keys, private and public scheme as it's default authentication. The command to use is the oci set up keys, to create these keys. Since you cannot store private keys, you run OCI authentication and then you give your credentials

g Write a general-purpose program with a loop and indexed addressing that calculates sum of the values of elements of a DWORD array that are located at multiple of 4 location. For example for the array 1,2,3,4,5,6,7,8,9,10,11,12,13,14

Answers

Answer:

def sumD4th(dword):

   select = dword[3::4]

   print(sum(select))

mylist = [1,2,3,4,5,6,7,8,9,10,11,12,13,14]

sumD4th(mylist)

Explanation:

The python program above defines a function called "sumD4th" that accepts a list as its argument. The variable "select" is created which is the subset of the list argument "mylist" containing the index items that is a sum of four. The output of the function is the sum of the items in the "select" list.

__________ often causes overactive eye movement.

A. Alcohol

B. Nicotine

C. Morphine

D. Xanax

Answers

the answer is ; D , xanax
the answer is d :)..

A group of students is performing an investigation to measure how much liquid water is produced from a 10 L sample of snow. What must occur in order for the students to perform this investigation?

Answers

Answer:

the temperature of the sample must change

Explanation:

Write the definition of a function that evaluates three double numbers and returns true if the floor of the product of the first two numbers equals the floor of the third number; otherwise it returns false.

Answers

Answer:

The function is written in C++

bool products(double num1, double num2, double num3) {

if(floor(num1 * num2) == floor(num3)){

    return true;

}

else

{

    return false;

}

}

Explanation:

I answered this question using C++ programming language.

This line defines the function with three parameters; num1 to num3

bool products(double num1, double num2, double num3) {

This checks if the floor of num1 * num2 equals floor of num3

if(floor(num1 * num2) == floor(num3)){

If yes, this returns true

    return true;

}

else {

If otherwise, this returns true

    return false;

}

The method ends here

}

I added the full program as an attachment that include the main method

Fill in the blanks, so the print statement displays the result of the function call in order.

1 # This function compares two numbers and returns them
2 # in increasing order.
3 - def order_numbers(number1, number2):
4. if number2 > number1:
5 return numberi, number2
6 else:
7 return number2, number1
8
9 Run # 1) Fill in the blanks so the print statement displays the result # of the function call
10 ---, --- = order_numbers(100, 99) print(smaller, bigger)

Answers

Answer:

Rep;ace the blank with

smaller, bigger

So, the complete line is:

smaller,bigger=order_numbers(100,99)

Explanation:

From the question, we understand that the program is to return the order of a number from least to highest

This has been well implemented in order_numbers function

Because the order function returns two values, the order_function must be called in order to accept two values and the syntax is:

value1,value2 = function(return-value1,return-value2)

In this case, the statement is:

smaller,bigger=order_numbers(100,99)

So, in the next line of the main, the values of smaller and bigger are printed:

print(smaller,bigger)

See attachment

Question 2: Describe and Discuss the concepts of Higher order functions and currying in a functional programming language such as Haskell (or Standard ML) and describe why these concepts are important.

Answers

Answer:

A higher-order function is a type of function in programming that can either accept a function as its parameter or return a function or both. Curring is a process used by functions to accept and access multiple arguments.  

Explanation:

Functional programming languages like Hasket, Javascript, Python, etc,  use the concept of higher-order functions and Curring to accept multiple arguments and functions as parameters and can also return a function.  

g A peer-to-peer PLC network: has no master PLC. uses the token passing access control scheme. each device is identified by an address. all of these.

Answers

Answer:

All of these

Explanation:

A peer-to-peer network is a type of computer network that computer devices directly to each other, sharing information and other resources on the network.

It does not have a centralized database, there are no master or slave as each device in the network is a master on its own, and the devices all have unique addresses assigned statically for identification.

Which web browser was created by Microsoft?
Chrome
Edge
Firefox
Safari

Answers

Answer:

firefox

Explanation:

Answer:

Edge was created by Microsoft.

Explanation:

3. A year contains 365 days normally, so on
what number day does Christmas fall on?

Answers

Answer:

359 is December 25 in a 365 day year.

Explanation:

Answer:

For western christian churches, Christmas day always occurs on December 25, though some cultures observe the main celebration on the night prior, Christmas Eve.

Which situation would benefit most from a Watch window?
A B C D
the answer is: D. A 3-D formula causes cells in a worksheet to change when edits are made to other worksheets.

Answers

Answer:

yeah i agree with your answer

Answer:

D) A 3-D formula causes cells in a worksheet to change when edits are made to other worksheet  

Explanation:

;)

3. Which property provided the labels in the list below?
1. List item
II. List item
III. List item
IV. List item
O list-style-type: numerals
list-style-type:decimal
O list-style-type: upper-roman
O list-style-type: upper-alpha

Answers

Answer:

this doesnt make sense

Explanation:

The property that provided the labels in the list is the "list-style-type" property. The options given are the different values that can be assigned to the "list-style-type" property. The value "numerals" refers to using Arabic numerals (1, 2, 3, etc.) as the labels, while "decimal" is similar but includes a period after each numeral (1., 2., 3., etc.).

What is list-style-type? Property?

The 'list-style-type' property is a CSS property that is used to define the style of the marker or bullet of a list item. It specifies the appearance of the marker for unordered lists (like bullet points) and ordered lists (like numbered lists) on a web page.

The value "upper-roman" refers to using uppercase Roman numerals (I, II, III, etc.) as the labels, and "upper-alpha" refers to using uppercase letters (A, B, C, etc.) as the labels.

So, in summary, the "list-style-type" property determines the style of the labels used in a list.

To know more about CSS property:

https://brainly.com/question/30116889

#SPJ2

In reviewed assignment, you will use an array to calculate an average from raw data.

a. True
b. False

Answers

Answer:

a. True

Explanation:

In C, an array is a data structure used to hold a collection of similar data types. It is ordered and indexed, which means that it can be accessed using the index value of the target item in the array.

A loop statement can be used to iterate over all the items in the array. For example, you can get the average of all the items in an integer array by iterating over it, summing its total and dividing it by the length of the array.

Consider the following relational database that stores information about bars and customers: Drinker (name, address) Bar (name, address) Beer (name, brewer) Frequents (drinker, bar, times a week) Likes (drinker, beer) Serves (bar, beer, price) Write the following queries in relational algebra: 1. Find all drinkers who frequent only those bars that serve some beers they like. 2. Find all drinkers who frequent every bar that serves some beers they like.3. Find those drinkers who enjoy exactly the same set of beers as Amy.

Answers

Answer:

simeso  

le

Explanation:

_______ are the best visual aids for showing the relationship between ideas in a presentation.

Answers

Answer:

A graphic organizers

Explanation:

Graphic users are the best visual aids for showing the relationship between ideas in a presentation.

What are Graphic user?

By the use of menus, icons, and other visual cues or representations, a user interacts with electronic devices like computers and smartphones using a graphical user interface (GUI) (graphics).

Unlike text-based interfaces, where data and commands are purely in text, GUIs graphically show information and related user controls. A pointing device, such as a mouse, trackball, stylus, or a finger on a touch screen, is used to manipulate GUI representations.

The first keyboard input and prompt system was used for the human-computer text interaction (or DOS prompt). At the DOS prompt, commands were entered to request responses from a computer.

Therefore, Graphic users are the best visual aids for showing the relationship between ideas in a presentation.

To learn more about Graphic user, refer to the link:

https://brainly.com/question/14758410

#SPJ6

The physical layer of the OSI model is not foundational to any of the other layers. True or False

Answers

Answer:

False.

Explanation:

OSI model stands for Open Systems Interconnection. The seven layers of OSI model architecture starts from the Hardware Layers (Layers in Hardware Systems) to Software Layers (Layers in Software Systems) and includes the following;

1. Physical Layer

2. Data link Layer

3. Network Layer

4. Transport Layer

5. Session Layer

6. Presentation Layer

7. Application Layer

Each layer has its unique functionality which is responsible for the proper functioning of the communication services.

The physical layer of the OSI model is the first layer of the OSI model and it is foundational to any of the other layers because it determines the means of transmitting (sending) raw bits from one network node to another and the electrical specification of network equipments.

What do search engines use to trust that a local business is an appropriate place for which users are looking?​

Answers

Answer:

To build trust among search engines, authority needs to be demonstrated not just in a website's content, but how the site is perceived by other authoritative sites. ... Garnering links from authoritative sites like social networks, directories and other sources will improve trust.

You are given two sorted arrays, A and B, and A has a large enough buffer at the end to hold B. Write a method to merge B into A in sorted order without using any other array space.Implementation instruction:1) Define one array of size 18 for A and the other array of size 5 for B.2) Initialize A by inputting 13 integers in the ascending order, and Initialize B by inputting 5 integers in the ascending order.

Answers

Answer:

#include <iostream>

using namespace std;

int main(){

   int arrayA[18] = {1,2,3,4,5,6,7,8,9,10,11,12,13};

   int n = arrayA.length();

   int arrayB[5] = {14,15,16,17,18};

   for (int i = 0; i < arrayB.length(); i++){

       arrayA[n] = array[i];

       n++;

   }

}

Explanation:

The C++ program defines two arrays namely; "arrayA" and "arrayB". The first array has a space size of 18 while the second array has a size of 5. In the program, the second array is merged into the first array

Describe your WGU program, including two specific requirements that this degree has for completion.

Answers

Answer:

WGU program, including two specific requirements that this degree has for completion is explained below in details.

Explanation:

WGU is an online academy with profession joined bachelor's and master's degrees in—IT, education, marketing, and healthcare—intended to support working professionals fit an online academy learning into their hard-working lives.

As a scholars, graduate pupils must register in at least eight competency units every term, and undergraduate pupils must register in at least twelve competency units respectively term.

It should be noted that WGU program simply refers to an online school where students can have degrees when they complete their courses.

WGU is simply an online school that has career-aligned bachelor degrees and masters degree.

It's designed in order to help working professionals fit an online education into the busy lives that they've. In this case, the students have to register for their courses and pass the required units.

Learn more about programs on:

https://brainly.com/question/13171394

What is the BEST reason for storing people's credit card information as part of most commercial software applications?

a
It's expensive to store that much data.

b
You're liable if someone commits credit card fraud.

c
It's a high security risk to store that kind of data.

d
It's illegal to store that kind of data.

Answers

Answer:

c. It's a high security risk to store that kind of data.

Explanation:

A credit card has a lot of important and personal data of the user, for this reason, allowing software, even commercial software to have access to this information, can promote a high security risk, because frauds can occur that promote damage to the user. For this reason, it is important that before providing the data, the user knows the software very well.

Project 1-1: Set Up a Small Network

5. Answer the following questions:
a. Does your network use a client-server or peer-to-peer model?
b. What is the topology of your network?
c. If the lights on the switch ports were not lit or blinking, what is the best theory of
probable cause? At what layer of the OSI model would this theory be?
As you work your way through this book, you will continue to build your small network and its resources.

Answers

Answer:

a. peer-to-peer

b star topology

Explanation:

A software is made from​

Answers

Answer:

Two or more languages are used for making one particular software.

nd
Assume you have already imported the time module.
Which line of code will pause the program for 6 seconds?
time.pause(6)
time sleep()
O time.pause()
O time sleep(6)

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

Time Module:  

Python's time module has a function to pause a program to the given time in seconds called sleep(). Essentially, as the name implies, it pauses your Python program.

The syntax of the sleep() function is given below:

time.sleep(second)

So, the given options for this question are :

time.pause(6) time.sleep() time.pause() time.sleep(6)

To pause a program for 6 seconds, option 4 is correct:

time.sleep(6)

While the other remaining options are not correct because to pause a program in python for 6 seconds, the correct statement is given in option 4.

Define a new class Fighter that inherits from Spaceship. Add a variable property weapon that defaults to an empty string and a variable property remainingFirePower that defaults to 5.

Answers

Answer:

class Fighter(Spaceship):

   weapon = ""

   remain_fire_power = 5

Explanation:

The class "Fighter" is a python class that inherits all the variables and methods from the Spaceship class. The Fighter class is considered the child class while the Spaceship class is known as the parent class. The weapon and remain_fire_power variables are class variables unique to the fighter class and defaulted to an empty string and 5 respectively.

Other Questions
Kendra just bought a new house and needs to buy new sod for her backyard. If the dimensions of her yard are 24.6 feet by 14.8 feet, what is the area of her yard? Do not include units (ft2) in your answer. Scientists think that being kind to yourself gives you the support you need to try your best.WHY do they think this?Abecause scientists are always self-compassionate to themselvesBbecause they studied how self-compassionate students did on testsCbecause some people think self-compassion makes you smartDbecause many people who are self-compassionate try and fail Convert the decimal to a fraction.0.5 =Repeating -5x-4y=2a 4x-5y=2 which of the following choices of A will results in a system of linear equations with exactly one solution Express 8+11+14+17+20 using sigma notation? GIVING BRAINLIEST 5 STARS AND HEART!Answer in your OWN WORDS!A gardener discovers that her prize hydrangeas have turned from pink to blue. What can you say about the soil in which the flowers are growing? Why did Europeans colonize in Africa ? Which might you use to observe the properties of matter?smelltastesightall of the above Which natural forces can weather and erode rock? The vertex of this parabola is at -5, -2. when the x-value is 4, the y-value is 2. What is the coefficient of the squared expression in the parabola's equation PLZ HELP /The India rule of Maurya consisted of all the following EXCEPT for:government owned factoriesorganized governmentno tax systemharsh rule In trying to control fall armyworms in crops, an Agriculture extension officer applied cypermethrin which was prepared by dissolving 200g of the cypermethrin , C22H19Cl2NO3 in 1000g of water H2O . Calculate the mole fraction of cypermethrin in the solution. Part BEnter the numerical coordinates of the vertices of quadrilateral ABCD in the table. (Point A has been done for you.) Then predict the numericalcoordinates of the vertices of quadrilateral A'B'C'D' as the figure translates four different ways: 7 units up, 1 unit down, 4 units to the right, and 3units to the left. HELP ME PLZ !! 8 grade history! alpha and beta rays origin is same A triangle has sides with lengths of 13 yards, 34 yards, and 36 yards. Is it a right triangle? What is the difference between an RRSP and an RESP? Solve:-(x -8) =2X= work out the answer to 2.6882*14.71728 and give your answer correct to 2 decimal places Help WiTh tHis ThIng PleAsE *dies* lol Steam Workshop Downloader