Q&A Discussions
IBM WATSON
-2 Votes
2 AnswersC++ Output question
1 Vote
1 AnswerPython Course Progression
0 Votes
2 AnswersDynamic DataType
1 Vote
1 AnswerWHY DOESNāT IT PLOT
0 Votes
1 AnswerJDBC , JDO, Hybernate, JPA,
0 Votes
1 AnswerJava script
-1 Vote
3 AnswersAdditional course
0 Votes
2 AnswersI need to design a recursive function called replicate recurĀ which will receive two arguments:Ā timesĀ which is the number of times to repeat and dataĀ which is theĀ number or stringĀ to be repeated.
The function should return an array containing repetitions of the data argument.
For instance,Ā replicate_recur (3, 5)Ā should return [5,5,5].
If the timesĀ argument is negative or zero, return an empty array. If the argument is invalid,Ā raise ValueError.
0 Votes
4 AnswersĀ Write a C++ program that retrieves all the numbers stored in a data file named LAB1.TXT. As each number is retrieved, it is displayed on the screen. After the end of file is reached, the numbers should be sorted into numerical order and then the result should be displayed
EXAMPLE:Ā Assuming LAB1.TXT has the following numbers: 7Ā 4Ā 12Ā 3Ā Ā Ā Ā Ā Ā The output would be Original order:7Ā 4Ā 12Ā 3Numerical order:3Ā 4Ā 7Ā 12
0 Votes
2 AnswersHot today
Functions in python
2 Votes
How to make a playground
1 Votes
For Mobile app
0 Votes
I need advice
1 Votes
Html 5 document question
1 Votes
Learning Python - Question
1 Votes
Python
0 Votes