Discussioni Q&A
Illegal Declaration
0 Voti
2 RisposteIBM WATSON
-2 Voti
2 RisposteC++ Output question
1 Voto
1 RispostaDynamic DataType
1 Voto
1 RispostaWHY DOESN’T IT PLOT
0 Voti
1 RispostaHello!
0 Voti
2 RisposteJava script
-1 Voto
3 RisposteAdditional course
0 Voti
2 RisposteHelp me
-2 Voti
2 RisposteI 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 Voti
4 Risposte 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 Voti
2 RispostePopolare oggi
Pointers cpp
3 Votes
Is pro worth the money ?
1 Votes
Coding for Cybersecurity
0 Votes
Drawing images in java
2 Votes
Pointers in c#
0 Votes