New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
Illegal Declaration
0 Votes
2 AnswersC++ Output question
1 Vote
1 AnswerPython Course Progression
0 Votes
2 AnswersIBM WATSON
-2 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
Python Question
3 Votes
How to learn fast C?
0 Votes
Initials of name
1 Votes
Forever loop pls help
0 Votes
Css In python
0 Votes