subject

Create a function name Repeat() that take 2 parameters named word and repeatCount. (In the function) Create a variable named result and set it to an empty string
Create a for loop that loops for repeatCount times(in the for loop)
Add word to the result
Return the value of result(In the main code)
Create a variable name finalWord and set it equal to “ba”
Call Repeat() with values “na” and 4
Concatenate finalWord and the value returned from calling the Repeat() function
Print the finalWord

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:50
Before you enter an intersection on a green light make sure
Answers: 2
question
Computers and Technology, 22.06.2019 05:00
Modern businesses use different technologies to accomplish work tasks
Answers: 2
question
Computers and Technology, 23.06.2019 18:40
How does is make you feel when you're kind to others? what are some opportunities in your life to be more kind to your friends and loved ones? imagine a world where kindness has be outlawed. how would people act differently? would your day-to-day life change significantly? why or why not?
Answers: 2
question
Computers and Technology, 24.06.2019 10:20
Multiple choice project create a program with two multiple choice questions. 1. users have two attempts only, show attempt number each time. hint: while loop with break control. (20%) 2. only one correct answer for each question, use switch case for each question. (20%) 3. show total score after the two questions are answered. hint: . (20%) 4. user have options to answer the two questions again if first attempt score is not 100%. hint: if statment. (20%) 5. use string method .toupper() to allow users to enter with lowercase or uppercase letters. (20%) 1. where is the capital of the state of florida? a. orlando b. tallahassee c. miami d. tampa b 2. where is walt disney world park located in florida? a. orlando b. tallahassee c. miami d. tampa a
Answers: 1
You know the right answer?
Create a function name Repeat() that take 2 parameters named word and repeatCount. (In the function)...
Questions
question
Mathematics, 22.01.2021 18:20
question
English, 22.01.2021 18:20
Questions on the website: 13722367