Book: Data Structures and Algorithm Analysis in C++ Chapter: 1 Exercise: 1.3 Wri
ID: 3648634 • Letter: B
Question
Book: Data Structures and Algorithm Analysis in C++Chapter: 1
Exercise: 1.3
Write a function to output an arbitrary double number (which might be negative) using only printDigit for I/O.
My problem(s) with this question:
1. What exactly is an arbitrary number?
2. How would it be negative unless I force it to be negative?
3. Is printDigit a function I need to use or do I make it myself?
4. Is there supposed to be an input for this to work properly?
I do have an idea on this problem, but it uses the rand() function. Am I correct?
Thanks for your time. Any answer given I will rate. Best answer will get 5 stars.
Explanation / Answer
1) a random number 2) a random negative no. 3)yes 4) yes , any negative no. will do fine