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
balu736 [363]
3 years ago
5

The sameNumber method checks to see if the number of words in the phrase, numwords, is the same number of words contained in the

myWords array. The method returns true of the array and phrase have the same number of words and false if they do not. Write the sameNumber method.
Computers and Technology
1 answer:
Eduardwww [97]3 years ago
6 0

Answer:

Answered below.

Explanation:

//Program is written in Kotlin programming language.

fun sameNumber(numWords: String, myWords: List<String>) : Boolean{

//Split words in phrase into list

val str: List<String> = numWords.split(" ")

//Convert to mutable list.

val phrase = str.toMutableList()

val words = myWords.toMutableList()

//Compare the number of items in each list.

if( phrase.size == words.size){

return true

}else{

return false

}

}

You might be interested in
Which of the mis systems uses both informal and formal information-gathering procedures?
Troyanec [42]

A management information system (MIS) which uses both informal and formal information-gathering procedures is: a. Marketing intelligence system.

<h3>What is an information system?</h3>

An information system (IS) can be defined as a collection of computer systems and Human Resources (HR) that is used by a business organization or manager to obtain, store, compute, and process data, as well as the dissemination (communication) of information, knowledge, and the distribution of digital products from one location to another.

In Business management, marketing intelligence system is a type of information system (IS)  which is designed and developed to uses both informal and formal information-gathering procedures to obtain strategic information from the marketplace.

Read more on marketing intelligence system here: brainly.com/question/14951861

#SPJ1

Complete Question:

Which of the MIS systems uses both informal and formal information-gathering procedures?

a. Marketing intelligence system

b. External environment reports system

c. Internal reports system

d. Consumer information support system

7 0
2 years ago
The vertical and horizontal scroll bars can be used to aid in navigation throughout the document. true or false
Triss [41]

Answer: True

Hope this helps :)

7 0
3 years ago
Read 2 more answers
What is communication ?? ​
maksim [4K]

Answer:

Communication is the act of giving, receiving, and sharing information

3 0
2 years ago
Read 2 more answers
What is the error in the following line: (1)<br><br> age=int(input("Enter your age:")
Ainat [17]

Answer:

14

Explanation:

6 0
3 years ago
Multiple Choice
earnstyle [38]
1 )  B ) I<span>ntersections.
2 ) A ) Freeways ( i believe )
Matchmaking
-</span><span>Retractable STOP sign arm ( school bus ) 
-Jaywalking ( d</span><span>angerous pedestrian practice ) 
- Moped ( </span><span>cross between bicycle and motorcyble ) 
1 ) I would say the </span><span>major cause of collisions between cars and motorcycles is due to motorcycles driving into lane/places cars can not get into. - lane splitting, traffic jam - 
2 )When there is a yeild sign or a crossing sign, it's </span><span>legal for a pedestrian to cross a roadway. ( I believe )
3)</span><span> Motorists must keep a constant lookout for pedestrians crossing and at intersections. 
4) I know when trucks are driving up or anything similar they get faster and sometimes cant control, so there are certian stops that trucks go up to make them slow down. I honeslty don't know if you should go around or not. But i hope this helps.
</span>
7 0
3 years ago
Other questions:
  • Design the below using an array// Sunrise Freight charges standard// per-pound shipping prices to the five states they serve// –
    6·1 answer
  • You are designing a web application that stores static assets in an amazon simple storage service (s3) bucket. you expect this b
    12·1 answer
  • The ? Tool removes blemishes and imperfections by sampling pixels around the spot and then paints withh matching texture, transp
    10·1 answer
  • On dynamic disks, the term partition is not used to define the space where a file system is installed. what term is used?
    6·1 answer
  • The functions of forums
    15·1 answer
  • The operation:
    8·1 answer
  • The write-ahead logging (WAL) protocol simply means that Select one: a. the log record for an operation should be written before
    7·1 answer
  • WILL GIVE BRAINLIST Which statements accurately describe electronic tools? Check all that apply. Electronic tools collect large
    12·1 answer
  • What initialization vector (IV) do most weak implementations of the Wireless Equivalency Protocol (WEP) use
    11·1 answer
  • What are two reasons why a switch port would have a status of errdisable? (choose two. )
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!