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
nikitadnepr [17]
3 years ago
3

Write a function called 'return_list' that takes a string as a parameter and returns a list of words in the string. "Words" are

entities that are seperated by either commas (',') or spaces (' '). In case the string contains neither commas nor spaces, the string will be returned without any manipulation. Note: We are not testing for the case where both commas and spaces are present in the string so feel free to ignore that.
Computers and Technology
1 answer:
AlladinOne [14]3 years ago
8 0

jjj

hhhjjjjjjjjjjjjjj

You might be interested in
In the formula =SUM(A6:A9), which of the following best describes A6:A9
lianna [129]

Arguments are indeed the values used by <em>functions to perform computations</em>, and the further discussion can be defined as follows:

  • <em>Functions</em> in spreadsheet programs including Excel Sheets are simply built-in formulas that perform predefined calculations.
  • In this, the majority of these functions require data to be supplied, either by the user or from another source, to deliver a result.
  • It is a real value that is provided to the function, as well as the parameters, are initialized to the value of the arguments supplied.
  • In this question, a method "SUM(A6:A9)" is declared that takes value from A6 to A9, in its parameter(Argument) that <em>adds value from</em>.  

Therefore, the final answer is "Option A".

Learn more:

brainly.com/question/12269471

6 0
3 years ago
Read 2 more answers
_____ is human thinking and problem-solving by a machine, including learning, reasoning, and self-correction.
Delvig [45]
Yea, artificial intelligence :/
4 0
3 years ago
What is the output of the following program when the method is called with 4?
wolverine [178]

Answer:

C. ?????

Explanation:

Given code:

void unknown(int n)

{

if(n>0)

unkown(n-1);

System.out.print("?");  

}

Calling code: unknown(4)

This is a recursive invocation of unknown function and causes ? to be printed 5 times once each for following values of n.

  • unknown invocation with n=4
  • unknown invocation with n=3
  • unknown invocation with n=2
  • unknown invocation with n=1
  • unknown invocation with n=0

When n becomes 0, termination condition is reached and the function returns.

So the output is ?????

8 0
3 years ago
Visual Basic Help:
Cerrena [4.2K]

Answer:

See text attachment for complete source code (for the answer) where I used comments to explain each line of the program

Explanation:

First, design the form using the following tools (and the accompanying properties) :

1 Label: <em>Property: </em>Text: Score

2 Buttons

<em>Button1: Property: </em>Name: btnAdd; Text: Add

<em>Button2: Property: </em>Name: btnDisplay; Text: Display

1 ListBox: <em>Property: </em>Visible: Hidden

1 TextBox: <em>Property: </em>Name: txtNum1

First, create the following function.

The function (named typecheck) validates input from the user (i.e. integer input only)

<em>Function typecheck(ByVal input As String) As Boolean</em>

<em>        Try</em>

<em>            Convert.ToInt32(input)</em>

<em>            </em>Return\ True<em />

<em>        </em>Catch\ ex\ As\ Exception<em />

<em>            </em>Return\ False<em />

<em>        End Try</em>

<em>    End Function</em>

It returns true if the input is integer and false, if otherwise.

Next, double-click on the "Add" button and write the following lines of code:

<em>Dim num1 As String</em>

<em>        num1 = txtNum1.Text</em>

<em>        If num1 IsNot String.Empty Then</em>

<em>            If typecheck(num1) Then</em>

<em>                </em>ListBox1.Items.Add(num1)<em />

<em>                </em>txtNum1.Text = String.Empty<em />

<em>            Else</em>

<em>                </em>MsgBox("Only<em> </em>Integer<em> </em>Inpu t")<em />

<em>                </em>txtNum1.Text = String.Empty<em />

<em>            </em>End\ If<em />

<em>        Else</em>

<em>            </em>MsgBox("Box can\ not\ be\ empty")

<em>            </em>txtNum1.Text = String.Empty<em />

<em>        </em>End\ If<em />

Next, double-click on the "Display" button and write the following lines of code:

<em>If ListBox1.Items.Count > 0 Then</em>

<em>            </em>Dim\ max1, max2\ As\ Integer<em />

<em>            max1 = Convert.ToInt32(ListBox1.Items(0))</em>

<em>            max2 = Convert.ToInt32(ListBox1.Items(0))</em>

<em>            </em>For\ count\ = 0\ To\ ListBox1.Items.Count - 1<em />

<em>                If Convert.ToInt32(ListBox1.Items(</em>count<em>)) >= max1 Then</em>

<em>                    max1 = Convert.ToInt32(ListBox1.Items(</em>count<em>))</em>

<em>                </em>End\ If<em />

<em>            Next</em>

<em>            </em>For\ count\ = 0\ To\ ListBox1.Items.Count - 1<em />

<em>                If Convert.ToInt32(ListBox1.Items(</em>count<em>)) >= max2 And Convert.ToInt32(ListBox1.Items(</em>count<em>)) < max1 Then</em>

<em>                    max2 = Convert.ToInt32(ListBox1.Items(</em>count<em>))</em>

<em>                </em>End\ If<em />

<em>            Next</em>

<em>            MsgBox("Highest Scores: " + max1.ToString() + " " + max2.ToString())</em>

<em>            MsgBox("</em>Total<em>: " + ListBox1.Items.Count.ToString())</em>

<em>        </em>End\ If<em />

<em>        ListBox1.Items.Clear()</em>

3 0
3 years ago
Write an application that creates a two-dimensional array. Allow the user to input the size of the array (number of rows and num
Sindrei [870]

Answer:

Explanation:

The Program can be computed as follows:

/*********************************************************

*Program that creates a two-dimensional array and takes an*

*Input as a size of an array and generate random elements *

**********************************************************\

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace ConsoleApplication 1

{

class Program

{

static void Main(string[] args)

{

int maxi=0, maxj=0;

//Random for create a random numbers.

Random rnd = new Random();

Console.WriteLine ("Enter the number of +"rows... ");

//Take a row number as a input.

int rows=Convert .Tolnt32 (Console.ReadLine

());

Console .WriteLine ("Enter the number of +

"columns ...");

//Take a column number as a input.

int cols=Convert.Tolnt32 (Console .ReadLine

());

//Declaring a two-dimensional array.

int[,] randarray = new int[rows,cols ];

//Creating an array with the random numbers.

for (int i = 0; i < rows; i++)  

{

for (int j = 0; j < cots; j++) {

//Random numbers.

randarray[i, j] = rnd.Next(0, 100);

}

}

//Assign first element of an array to the max

//Variable

int max = randarray[0,0];

//Display the elements in two-dimensional

//array

for (int i = 0; i < rows; i++)

{

for (int j = 0; j < cols; j++)  

{

Console.Write('\n[" + i + "," +j + "]"

+"\t");

Console.Write(randarray[i, j]);

}

Console.WriteLine("\n");

}

//Checking the largest element in two-

//dimensional array.

for (int = 0; i < rows; i++)  

{  

for (int j 0; j < cols; j++)

if (randarray[i, j] > max)

{

max = randarray[i, j];  

maxi = i;

maxj = j;

}

}

}

Console.WriteLine("The largest value is stored"

+"at ["+maxi+","+maxj+"]"+max);

Console.Read();

}

}

}  

Sample Output:

Enter the number of rows.....

2

Enter the number of columns

6

[0,0] 57

[0,1] 71

[0,2] 61

[0,3] 31

[0,4] 77

[0,5] 35

[1,0] 32

[1,1] 73

[1,2] 61

[1,3] 28

[1,4] 92

[1,5] 98

The largest value is stored at [1,5] 98

4 0
3 years ago
Other questions:
  • Drivers must always yield to emergency vehicles traveling
    9·1 answer
  • Software that interprets commands from the keyboard and mouse is also known as the ​
    7·1 answer
  • Developed by ibm and refined by symantec, the __________ provides a malware detection system that will automatically capture, an
    9·1 answer
  • A baseball diamond has an area of 3,600 square feet. What is the distance between each base? How far will a runner run around th
    9·1 answer
  • A folder can contain only files? A. True B.False
    10·2 answers
  • Design state machines to control the minutes and hours of a standard 24 hour clock. Your clock should include an AM/PM indicator
    11·1 answer
  • What is an example of bias in media?​
    9·1 answer
  • I'm getting pretty desperate plz help me, I'll give brainiest, and ill make a free question worth 100 points this is for coding
    10·1 answer
  • Display ad traffic from mobile devices may appear to be unprofitable, but the ads might be profitable if
    6·1 answer
  • 3. When code tracing, why is it important to iteratively test parts of the program?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!